Crate features / zerocopy
Feature flags · zerocopy 0.8.63 · from crates.io 2026-10-24
zerocopy features: what each one does, and the line to copy
Short answerzerocopy 0.8.63 has 7 features. Nothing is on by default: turn on what you use. It needs Rust 1.56.0 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
__internal_use_only_features_that_work_on_stable | alloc, derive, simd, std | |
alloc | nothing else (a switch the code checks) | |
derive | zerocopy-derive | |
float-nightly | nothing else (a switch the code checks) | |
simd | nothing else (a switch the code checks) | |
simd-nightly | simd | |
std | alloc |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version zerocopy declares (rust-version), and the release that changed it:
- 0.6.6 (2023-12-14): Rust 1.61.0
- 0.7.31 (2023-12-14): Rust 1.60.0
- 0.8.0-alpha.3 (2024-02-03): Rust 1.59.0
- 0.8.0-alpha.4 (2024-02-07): Rust 1.58.0
- 0.8.0-alpha.5 (2024-02-12): Rust 1.56.0
- 0.7.33 (2024-05-04): Rust 1.60.0
- 0.8.0-alpha.10 (2024-05-10): Rust 1.56.0
- 0.7.35 (2024-07-02): Rust 1.60.0
- 0.8.0-alpha.17 (2024-08-21): Rust 1.56.0
- 0.9.0-alpha.0 (2024-10-12): Rust 1.65.0
- 0.8.6 (2024-10-16): Rust 1.56.0
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p zerocopy --precise <version>, or use resolver 3, which picks compatible versions for you.
More on zerocopy
Real downloads, dependents and alternatives: zerocopy crate data (3.2M real downloads a day, 878 dependents).
Security record: zerocopy advisories.
docs.rs feature list · crates.io · license BSD-2-Clause OR Apache-2.0 OR MIT · edition 2021
Up next
Before you depend on itzerocopy crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?