Crate features / flate2
Feature flags · flate2 1.1.10 · from crates.io 2026-10-24
flate2 features: what each one does, and the line to copy
Short answerflate2 1.1.10 has 13 features. By default it turns on rust_backend, runtime_detection; add default-features = false to start from nothing. It needs Rust 1.67.0 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
any_c_zlib | any_zlib | |
any_impl | nothing else (a switch the code checks) | |
any_zlib | any_impl | |
cloudflare_zlib | zlib | |
miniz-sys | rust_backend | |
miniz_oxide | any_impl, dep:miniz_oxide, dep:crc32fast | |
runtime_detection | yes | zlib-rs?/std, crc32fast?/std |
rust_backend | yes | miniz_oxide, any_impl |
zlib | any_c_zlib, libz-sys, dep:crc32fast | |
zlib-default | any_c_zlib, libz-sys/default, dep:crc32fast | |
zlib-ng | any_c_zlib, libz-ng-sys, dep:crc32fast | |
zlib-ng-compat | zlib, libz-sys/zlib-ng, dep:crc32fast | |
zlib-rs | any_zlib, dep:zlib-rs |
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 flate2 declares (rust-version), and the release that changed it:
- 1.0.32 (2024-08-20): Rust 1.56.1
- 1.1.0 (2025-02-24): Rust 1.67.0
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p flate2 --precise <version>, or use resolver 3, which picks compatible versions for you.
More on flate2
Real downloads, dependents and alternatives: flate2 crate data (2.1M real downloads a day, 7,758 dependents).
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2018
Up next
Before you depend on itflate2 crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?