Cargo Features
[dependencies]
dsi-bitstream = { version = "0.5.0", default-features = false, features = ["std", "alloc", "fuzz", "checks", "no_copy_impls", "offset_of_enum", "mem_dbg"] }
- default = mem_dbg, std
-
These default features are set whenever
dsi-bitstream
is added without
somewhere in the dependency tree.default-features = false - std default = alloc
- alloc std
-
Affects
mem_word_writer::MemWordWriterVec
… - fuzz
-
Enables arbitrary
Affects
dsi-bitstream::fuzz
… - checks
-
Enable additional checks on the argument of some methods; in particular, the value of words to be written must fit the provided bit width
- no_copy_impls
-
Disable copy_from/copy_to implementations so to test the default methods
- offset_of_enum
-
This is necessary to avoid warnings from MemDbg and to use the offset_of_enum MemDbg feature gate if needed
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.
- mem_dbg default