Cargo Features

Zerocopy has no features set by default.

[dependencies]
zerocopy = { version = "0.9.0-alpha.0", features = ["std", "alloc", "derive", "simd", "simd-nightly"] }
std = alloc
alloc std?

Affects zerocopy::FromZeros.new_box_zeroed_with_elems, zerocopy::FromZeros.new_box_slice_zeroed, zerocopy::FromZeros.new_vec_zeroed, zerocopy::FromZeros.extend_vec_zeroed, zerocopy::FromZeros.insert_vec_zeroed

derive = zerocopy-derive
simd simd-nightly?
simd-nightly = simd

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.

zerocopy-derive derive?

Enables zerocopy-derive

In tests, unlike in production, zerocopy-derive is not optional