Crate features / bzip2
Feature flags · bzip2 0.6.1 · from crates.io 2026-10-24
bzip2 features: what each one does, and the line to copy
Short answerbzip2 0.6.1 has 2 features. By default it turns on dep:libbz2-rs-sys; add default-features = false to start from nothing. It needs Rust 1.82.0 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
bzip2-sys | dep:bzip2-sys | |
static | bzip2-sys?/static |
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 bzip2 declares (rust-version), and the release that changed it:
- 0.5.0 (2024-12-11): Rust 1.65.0
- 0.6.0 (2025-06-17): Rust 1.82.0
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p bzip2 --precise <version>, or use resolver 3, which picks compatible versions for you.
More on bzip2
Real downloads, dependents and alternatives: bzip2 crate data (435.4K real downloads a day, 580 dependents).
Security record: bzip2 advisories.
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2021
Up next
Before you depend on itbzip2 crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?