Cargo Features

Zerocopy has no features set by default.

[dependencies]
zerocopy = { version = "0.8.0-alpha.8", features = ["alloc", "derive", "simd", "simd-nightly"] }
alloc

Affects zerocopy::FromZeros.new_box_slice_zeroed, zerocopy::FromZeros.new_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