bzip2-rs
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
Blog and news
-
bzip2 crate switches from C to 100% rust
Today we published bzip2 version 0.6.0, which uses our rust implementation of the bzip2 algorithm, libbz2-rs-sys, by default. The bzip2 crate is now faster and easier to cross-compile.
Read more ... -
Translating bzip2 with c2rust
Over the past couple of months we've been hard at work on libbzip2-rs, a 100% Rust drop-in compatible implementation the bzip2 compression and decompression functionality.
Read more ...