Crate features / zstd
Feature flags · zstd 0.14.3 · from crates.io 2026-10-24
zstd features: what each one does, and the line to copy
Short answerzstd 0.14.3 has 17 features. By default it turns on legacy, arrays, zdict_builder; add default-features = false to start from nothing. It needs Rust 1.64 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
arrays | yes | zstd-safe/arrays |
bindgen | zstd-safe/bindgen | |
cmake | zstd-safe/cmake | |
debug | zstd-safe/debug | |
doc-cfg | nothing else (a switch the code checks) | |
experimental | zstd-safe/experimental | |
fat-lto | zstd-safe/fat-lto | |
legacy | yes | zstd-safe/legacy |
no_asm | zstd-safe/no_asm | |
pkg-config | zstd-safe/pkg-config | |
thin | zstd-safe/thin | |
thin-lto | zstd-safe/thin-lto | |
vendored | zstd-safe/vendored | |
wasm | nothing else (a switch the code checks) | |
with-rust-allocator | zstd-safe/with-rust-allocator | |
zdict_builder | yes | zstd-safe/zdict_builder |
zstdmt | zstd-safe/zstdmt |
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 zstd declares (rust-version), and the release that changed it:
- 0.12.1+zstd.1.5.2 (2022-12-06): Rust 1.51
- 0.12.2+zstd.1.5.2 (2023-01-11): Rust 1.43
- 0.13.0 (2023-10-11): Rust 1.64
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p zstd --precise <version>, or use resolver 3, which picks compatible versions for you.
More on zstd
Real downloads, dependents and alternatives: zstd crate data (1.1M real downloads a day, 2,614 dependents).
docs.rs feature list · crates.io · license BSD-3-Clause · edition 2018
Up next
Before you depend on itzstd crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?