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