Cargo Features
[dependencies]
diamond-types = { version = "1.0.0", default-features = false, features = ["inlinerope", "lz4", "serde", "dot_export", "wchar_conversion"] }
- default = lz4
-
The
lz4
feature is set by default wheneverdiamond-types
is added without
somewhere in the dependency tree.default-features = false - inlinerope
- lz4 default = lz4_flex
- serde = serde_crate
-
Enables serde of smallvec and smartstring
- dot_export
- wchar_conversion
-
Enables wchar_conversion of jumprope
jumprope:
wchar_conversion adds support for converting wchar positions (eg from JS or ObjC) into local unicode offsets.
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- serde_crate serde?
-
Enables serde
- lz4_flex lz4
-
Enables lz4_flex ^0.9.2