Crate features / zlib-rs
Feature flags · zlib-rs 0.6.8 · from crates.io 2026-10-24
zlib-rs features: what each one does, and the line to copy
Short answerzlib-rs 0.6.8 has 11 features. By default it turns on std, c-allocator; add default-features = false to start from nothing. It needs Rust 1.75 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
ZLIB_DEBUG | nothing else (a switch the code checks) | |
__internal-api | nothing else (a switch the code checks) | |
__internal-fuzz | arbitrary | |
__internal-fuzz-disable-checksum | nothing else (a switch the code checks) | |
__internal-test | quickcheck | |
avx512 | vpclmulqdq | |
c-allocator | yes | nothing else (a switch the code checks) |
lsx | nothing else (a switch the code checks) | |
rust-allocator | nothing else (a switch the code checks) | |
std | yes | rust-allocator |
vpclmulqdq | 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 zlib-rs declares (rust-version), and the release that changed it:
- 0.0.1 (2024-02-23): Rust 1.70
- 0.2.0 (2024-06-12): Rust 1.75
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p zlib-rs --precise <version>, or use resolver 3, which picks compatible versions for you.
More on zlib-rs
Real downloads, dependents and alternatives: zlib-rs crate data (1M real downloads a day, 42 dependents).
Security record: zlib-rs advisories.
docs.rs feature list · crates.io · license Zlib · edition 2021
Up next
Before you depend on itzlib-rs crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?