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 whenever serde_cbor is added without default-features = false somewhere in the dependency tree.

alloc

Uses alloc library and adds support for vector functions with no_std.

Enables alloc of serde

Affects de::from_slice, read::SliceRead, ser::to_vec

std default

Enables std of serde

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

tags