Cargo Features

[dependencies]
ufotofu_codec = { version = "0.1.0", default-features = false, features = ["std", "alloc", "dev"] }
default = std

The std feature is set by default whenever ufotofu_codec is added without default-features = false somewhere in the dependency tree.

std default dev? = alloc

Provide functionality that relies on the std library. Enabled by default.

alloc std

Provide functionality that relies on dynamic memory allocation.

Affects encode::Encodable.encode_into_vec, encode::EncodableKnownSize.encode_into_boxed_slice, encode::EncodableSync.sync_encode_into_vec, encode::EncodableSync.sync_encode_into_boxed_slice, relative_encode::RelativeEncodable.relative_encode_into_vec, relative_encode::RelativeEncodableKnownSize.relative_encode_into_boxed_slice, relative_encode::RelativeEncodableSync.sync_relative_encode_into_vec, relative_encode::RelativeEncodableSync.sync_relative_encode_into_boxed_slice

dev = std

Provide test helpers.

Affects ufotofu_codec::proptest