Crate features / zstd-sys
Feature flags · zstd-sys 2.1.2+zstd.1.5.7 · from crates.io 2026-10-24
zstd-sys features: what each one does, and the line to copy
Short answerzstd-sys 2.1.2+zstd.1.5.7 has 16 features. By default it turns on legacy, 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 |
|---|---|---|
cmake | dep:cmake | |
debug | nothing else (a switch the code checks) | |
experimental | nothing else (a switch the code checks) | |
fat-lto | nothing else (a switch the code checks) | |
legacy | yes | nothing else (a switch the code checks) |
no_asm | nothing else (a switch the code checks) | |
no_wasm_shim | nothing else (a switch the code checks) | |
non-cargo | nothing else (a switch the code checks) | |
pkg-config | nothing else (a switch the code checks) | |
seekable | nothing else (a switch the code checks) | |
std | nothing else (a switch the code checks) | |
thin | nothing else (a switch the code checks) | |
thin-lto | nothing else (a switch the code checks) | |
vendored | nothing else (a switch the code checks) | |
zdict_builder | yes | nothing else (a switch the code checks) |
zstdmt | nothing else (a switch the code checks) |
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-sys declares (rust-version), and the release that changed it:
- 2.0.4+zstd.1.5.2 (2022-11-28): Rust 1.43
- 2.0.9+zstd.1.5.5 (2023-10-11): Rust 1.64
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p zstd-sys --precise <version>, or use resolver 3, which picks compatible versions for you.
More on zstd-sys
Real downloads, dependents and alternatives: zstd-sys crate data (1.1M real downloads a day, 57 dependents).
docs.rs feature list · crates.io · license BSD-3-Clause · edition 2018
Up next
Before you depend on itzstd-sys crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?