Cargo Features
Serde-Brief has no features set by default.
[dependencies]
serde-brief = { version = "0.1.0", features = ["std", "alloc", "tracing", "heapless"] }
- std = alloc
-
Enables std of serde and optional tracing
serde:
Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.Affects
serde-brief::to_writer_with_config
,serde-brief::to_writer
,serde-brief::from_reader_with_config
,serde-brief::from_reader
,tests::init_tracing
… - alloc std?
-
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
serde-brief::value
,serde-brief::to_vec_with_config
,serde-brief::to_vec
… - tracing
-
Enables tracing
Affects
tests::init_tracing
… - heapless
-
Enables heapless
Affects
serde-brief::to_heapless_vec_with_config
,serde-brief::to_heapless_vec
…