Cargo Features
[dependencies]
musli = { version = "0.0.149", default-features = false, features = ["std", "alloc", "verbose", "wire", "descriptive", "json", "parse-full", "value", "serde", "test", "simdutf8"] }
- default = alloc, std
-
These default features are set whenever
musliis added withoutsomewhere in the dependency tree.default-features = false - std default
-
Enables std of musli-core, optional serde, and optional simdutf8
serde:
Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library. - alloc default
-
Enables alloc of musli-core and optional serde
serde:
Provide impls for types in the Rust core allocation and collections library including String, Box<T>, Vec<T>, and Cow<T>. This is a subset of std but may be enabled without depending on all of std.
Affects
alloc::System,alloc::SystemAlloc,context::new,descriptive::Result,encoding::to_string,encoding::from_str,json::Result,test::support,packed::Result,storage::Result,value::Result,value::encode,value::encode_text,value::decode,value::decode_text,wire::Result… - verbose
-
Enables verbose of musli-core
- storage wire test?
- descriptive test? = value
- json test? = value
- parse-full test?
- value descriptive? json? test?
- serde test?
-
Enables serde
- test = descriptive, json, parse-full, serde, storage, value, wire
-
Affects
descriptive::test,json::test,packed::test,storage::test,wire::test…