NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io · #611 most downloaded on crates.io
Bindings to libbzip2 for bzip2 compression and decompression exposed as Reader/Writer streams.
Last release 11 months ago
16 Oct 2025
Release timing varies
gaps range from 2 weeks to 2.2 years
Rarely documented
notes for 4 of 25 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
25 releases · first in 2014
Nothing published for this version
This release switches to libbz2-rs-sys as the default bzip2 backend. It is written in rust, making it much easier to cross-compile. The new implementa
This release switches to libbz2-rs-sys as the default bzip2 backend. It is written in rust, making it much easier to cross-compile. The new implementation is also more performant.
The rust implementation does not export C symbols by default. An explicit dependency on libbz2-rs-sys and setting the export-symbols feature flag will fix that if needed.
The bzip2-sys feature flag can be used to continue to use the C backend (either the system library of a C version built from source).
This is a breaking release, given that we want this update to be opt-in. We've used the occasion to perform an MSRV bump to 1.82.0. The libbz2-rs-sys crate has the bzip2-1.0.6 license. Arguably, that is the license that bzip2-sys should have had too, given that it is just a wrapper of the original bzip2 (and libbz2-rs-sys is a derivative work). You may need to allow this license when using cargo-deny.
Full Changelog: v0.5.2...v0.6.0
One column per quarter.
make bz_internal_error an extern fn by @folkertdev in #135 fixes a soundness issue. This is technically a semver-breaking change, but major versions f…
Some minor fixes this time
bz_internal_error an extern fn by @folkertdev in #135 fixes a soundness issue. This is technically a semver-breaking change, but major versions for -sys crates create a lot of churn. We don't expect users to run into thiswasm32-wasip2 by @folkertdev in #132bzip2-sys by @folkertdev in #133bz_internal_error an extern fn by @folkertdev in #135Full Changelog: v0.5.1...v0.5.2
deprecate Compression::new by @folkertdev in #124
Most changes relate to libbz2-rs-sys: we no longer enable the static feature, and now including different versions, that use either the C or the rust -sys crate, all work together in the same build.
static feature when using libbz2-rs-sys by @folkertdev in #122core::ffi::{c_int, c_uint} in favor of libc by @folkertdev in #126Compression::new by @folkertdev in #124Full Changelog: v0.5.0...v0.5.1
The 0.5.0 release is the first release in ~2 years. It sets an msrv of 1.65.0 and pins the 2021 edition. If the msrv or edition are a problem for your
The 0.5.0 release is the first release in ~2 years. It sets an msrv of 1.65.0 and pins the 2021 edition. If the msrv or edition are a problem for your project: just stick with the 0.4.4 release.
The repository has moved from @alexcrichton to @trifectatechfoundation, which takes on its maintainership from this point forward.
The main new feature of this release is the libbz2-rs-sys feature flag, which uses the pure rust https://github.com/trifectatechfoundation/libbzip2-rs implementation of bzip2. Being all rust, and using (by default) the rust allocator infrastructure, cross-compilation (e.g. to webassembly) should be much easier.
Besides that, the documentation was modernized (we can cross-link now) and several bugs were fixed.
partial_io to version 0.5.4 by @folkertdev in #108libbz2-rs-sys by @folkertdev in #110Full Changelog: 0.4.4...v0.5.0
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →