Bzip2 is a file compression program that is widely deployed and supported e.g. as part of zip.

bzip2-rs is available as a drop-in compatible C library and via the bzip2 crate. The implementation was created using c2rust, and it is now faster than the C original.

bzip2-rs is part of our Data compression initiative.

About

The development of bzip2, started Oct 2024. We used c2rust to translate the original bzip2 C code to Rust.

In June of 2025 we released version 0.6.0 of the bzip2 crate, that uses our 100% Rust implementation, see the blog post bzip2 crate switches from C to 100% rust.

Releases are available on GitHub, and also through the bzip2 crate we now maintain.

Roadmap

No feature development is currently planned. See the workplan.

Support us

Please get in touch with us, if you are interested in financially supporting the data compression initiative.

Past supporters & funders