This repository contains a Rust implementation of the bzip2 file format that is compatible with the libbzip2 API.
This repository contains the following public crate:
- libbz2-rs-sys, a libbzip2-compatible C API.
libbzip2-rs can be used in both Rust and C projects.
For the time being using the C api exported by the libbz2-rs-sys
crate is the only way to use it from Rust. There is an open PR for the bzip2-rs crate to make usage significantly easier.
libbzip2-rs can be built as a shared object file for usage by C programs that dynamically link to libbzip2. Please see the example in libbz2-rs-sys-cdylib.
This project is based on a c2rust translation of the original libbzip2.
libbzip2-rs is part of Trifecta Tech Foundation's Data compression initiative.
This project is funded through NGI Zero Core, a fund established by NLnet with financial support from the European Commission's Next Generation Internet program. Learn more at the NLnet project page.