Cargo Features
[dependencies]
tricolor = { version = "0.1.2", default-features = false, features = ["extra_debug_asserts", "extra_asserts", "bytemuck", "cint", "color-hex", "document-features", "serde"] }
- default = cint, document-features
-
These default features are set whenever
tricolor
is added without
somewhere in the dependency tree.default-features = false - extra_debug_asserts
-
Enable additional checks if debug assertions are enabled (debug builds).
- extra_asserts
-
Always enable additional checks.
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.
- bytemuck implicit feature
-
Enables bytemuck
Optional dependencies
bytemuck
enables you to castecolor
types to&[u8]
. - cint default
-
Enables cint
cint
enables interoperability with other color libraries. - color-hex implicit feature
-
Enables color-hex
Enable the
hex_color
macro. - document-features default
- serde implicit feature
-
Enables serde
Allow serialization using
serde
.