Cargo Features
[dependencies]
serde_cbor = { version = "0.11.2", default-features = false, features = ["alloc", "std", "unsealed_read_write", "tags"] }
- default = std
-
The
std
feature is set by default wheneverserde_cbor
is added without
somewhere in the dependency tree.default-features = false - alloc
-
Uses
alloc
library and adds support for vector functions withno_std
.Affects
de::from_slice
,read::SliceRead
,ser::to_vec
… - std default
-
serde:
Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.Affects
de::from_reader
,serde_cbor::value
,read::IoRead
,ser::to_vec_packed
,ser::to_writer
,write::IoWrite
,de::from_slice
,read::SliceRead
,ser::to_vec
… - unsealed_read_write
-
Affects
read::Read
,write::Write
…