Cargo Features

[dependencies]
embedded-msgpack = { version = "0.3.1", default-features = false, features = ["std", "alloc", "u64", "i64", "bin16", "bin32", "map32", "array16", "array32", "str16", "str32", "ext", "fixext", "ext8", "ext32", "timestamp", "timestamp96", "compliant", "custom-error-messages", "derive-debug"] }
default = bin16, ext8, i64, serde, serde_bytes, timestamp, u64

These default features are set whenever embedded-msgpack is added without default-features = false somewhere in the dependency tree.

std = derive-debug

Enables std of byteorder, num-traits, serde, and serde_bytes

serde:

Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.

alloc

Enables alloc of serde and serde_bytes

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.

u64 default compliant?

Affects decode::read_raw_u64, encode::serialize_u64

i64 default compliant?

Affects decode::read_sint, encode::serialize_i64

bin16 default bin32?
bin32 compliant? = bin16
map32 compliant?
array16 array32?
array32 compliant? = array16
str16 str32?
str32 compliant? = str16
ext compliant? ext16? ext32? ext8 fixext? timestamp

Affects embedded-msgpack::ext

fixext compliant? timestamp = ext
ext8 default compliant? timestamp96? = ext
ext16 ext32 compliant? = ext
timestamp default compliant? timestamp96? = ext, fixext

Affects ext::timestamp

timestamp96 compliant? = ext8, timestamp
compliant = array32, bin32, ext, ext16, ext32, ext8, fixext, i64, map32, str32, timestamp, timestamp96, u64
custom-error-messages = heapless
derive-debug std?

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.

serde default alloc? std?

Affects decode::from_slice, encode::serde

serde_bytes default alloc? std?
heapless custom-error-messages?

Enables heapless ^0.7