This site is being rebuilt and some pages are out of date. For current details, write to [email protected]. This notice goes away when the rebuild is done.

No analytics unless you allow it, no tracking. This site keeps in your browser the language you pick, the theme, its colour, which site you chose, the currency on the pricing page and that you closed this notice; signing in adds session cookies. The legal page has the details.

Sign in

Radar · Rust · Archive · Week 25 · Jun 16 – 22, 2025

bzip2 Crate Switches from C to 100% Rust

Worth knowingecosystem

What changed
The bzip2 crate has been rewritten entirely in Rust, removing the C dependency.
Production impact
The source does not say.
Try it
Add bzip2 = "0.4" to your Cargo.toml and build a small program that compresses a string.
Source
this-week-in-rust.org/blog/2025/06/18/this-week-in-rust-604/

Understand it, then run it

The bzip2 crate used to rely on a C library to compress and decompress data. That meant you had to have a C compiler and the library installed on the machine where you built your Rust program. The crate has been rewritten entirely in Rust, so it no longer needs any external C code. You can now add bzip2 to your Cargo.toml and build on any platform that supports Rust without worrying about C toolchains.

Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed