Cargo Features

ZeroVec has no features set by default.

[dependencies]
zerovec = { version = "0.11.6", features = ["alloc", "derive", "hashmap", "yoke", "serde", "schemars", "databake", "std"] }
alloc hashmap? schemars?

Enables alloc of optional serde

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.

Affects zerovec::maps, encode::encode_varule_to_box, ule::VarULE.to_boxed, components::IntegerULE.iule_from_bytes_unchecked_mut, components::get_serializable_bytes_non_empty

derive

Enables zerovec-derive

hashmap = alloc

Enables twox-hash

Affects zerovec::hashmap

yoke

Enables yoke

serde

Enables serde

schemars = alloc

Enables schemars

databake

Enables databake

std

No longer does anything