Crate features / generic-array
Feature flags · generic-array 1.4.5 · from crates.io 2026-10-24
generic-array features: what each one does, and the line to copy
Short answergeneric-array 1.4.5 has 9 features. Nothing is on by default: turn on what you use. It needs Rust 1.65 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
alloc | nothing else (a switch the code checks) | |
as_slice | dep:as-slice | |
bitvec | dep:bitvec, const-default | |
bytecheck-0_8 | dep:bytecheck-0_8 | |
compat-0_14 | dep:generic_array-0_14 | |
internals | nothing else (a switch the code checks) | |
rkyv-0_8 | dep:rkyv-0_8 | |
rkyv-0_8-full | rkyv-0_8, bytecheck-0_8 | |
serde | dep:serde_core |
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 generic-array declares (rust-version), and the release that changed it:
- 1.2.0 (2025-01-12): Rust 1.83
- 1.3.1 (2025-10-12): Rust 1.65
- 0.14.8 (2025-10-12): no rust-version declared
- 1.3.3 (2025-10-12): Rust 1.65
- 0.14.9 (2025-10-13): no rust-version declared
- 1.3.5 (2025-10-24): Rust 1.65
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p generic-array --precise <version>, or use resolver 3, which picks compatible versions for you.
More on generic-array
Real downloads, dependents and alternatives: generic-array crate data (2.8M real downloads a day, 542 dependents).
Security record: generic-array advisories.
docs.rs feature list · crates.io · license MIT · edition 2021
Up next
Before you depend on itgeneric-array crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?