Crate features / zstd-safe
Feature flags · zstd-safe 8.2.0 · from crates.io 2026-10-24
zstd-safe features: what each one does, and the line to copy
Short answerzstd-safe 8.2.0 has 18 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 | nothing else (a switch the code checks) |
bindgen | zstd-sys/bindgen | |
cmake | zstd-sys/cmake | |
debug | zstd-sys/debug | |
doc-cfg | nothing else (a switch the code checks) | |
experimental | zstd-sys/experimental | |
fat-lto | zstd-sys/fat-lto | |
legacy | yes | zstd-sys/legacy |
no_asm | zstd-sys/no_asm | |
pkg-config | zstd-sys/pkg-config | |
seekable | zstd-sys/seekable | |
std | zstd-sys/std | |
thin | zstd-sys/thin | |
thin-lto | zstd-sys/thin-lto | |
vendored | zstd-sys/vendored | |
with-rust-allocator | experimental | |
zdict_builder | yes | zstd-sys/zdict_builder |
zstdmt | zstd-sys/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-safe declares (rust-version), and the release that changed it:
- 6.0.3+zstd.1.5.2 (2023-01-31): Rust 1.43
- 7.0.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-safe --precise <version>, or use resolver 3, which picks compatible versions for you.
More on zstd-safe
Real downloads, dependents and alternatives: zstd-safe crate data (1.1M real downloads a day, 55 dependents).
docs.rs feature list · crates.io · license BSD-3-Clause · edition 2018
Up next
Before you depend on itzstd-safe crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?