Cargo Features

minicbor has no features set by default.

[dependencies]
minicbor = { version = "0.25.1", features = ["std", "alloc", "full", "derive"] }
std full? = alloc

Enables std of optional minicbor-derive

Affects write::Writer

Required by the cbor-display binary

alloc std?

Enables alloc of optional minicbor-derive

Affects bytes::ByteVec, minicbor::to_vec, minicbor::to_vec_with, minicbor::display

full = derive, half, std
derive full? = minicbor-derive

Affects bytes::EncodeBytes, bytes::DecodeBytes, bytes::CborLenBytes, bytes::decode, bytes::nil, bytes::encode, bytes::is_nil, bytes::cbor_len

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.

minicbor-derive derive?
half full?

Affects decode::Token, minicbor::display

Required by the cbor-display binary