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

Using a c2rust translation of the original bzip2 C code as the starting point, we created a mature pure Rust implemenation that is now available as a drop-in replacement, and in the bzip2 crate.

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