Crate features / libz-sys
Feature flags · libz-sys 1.1.30 · from crates.io 2026-10-24
libz-sys features: what each one does, and the line to copy
Short answerlibz-sys 1.1.30 has 5 features. By default it turns on libc, stock-zlib; add default-features = false to start from nothing.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
asm | nothing else (a switch the code checks) | |
static | nothing else (a switch the code checks) | |
stock-zlib | yes | nothing else (a switch the code checks) |
zlib-ng | libc, cmake | |
zlib-ng-no-cmake-experimental-community-maintained | libc |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
More on libz-sys
Real downloads, dependents and alternatives: libz-sys crate data (455.9K real downloads a day, 144 dependents).
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2018
Up next
Before you depend on itlibz-sys crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?