#stream #verbosity #libbz2 #libbzip

no-std libbz2-rs-sys

a drop-in compatible rust bzip2 implementation

4 releases

0.2.0 Apr 16, 2025
0.1.3 Feb 11, 2025
0.1.2 Feb 10, 2025
0.1.1 Dec 11, 2024
0.1.0 Dec 4, 2024

#98 in Compression

Download history 411/week @ 2025-01-07 303/week @ 2025-01-14 92/week @ 2025-01-21 220/week @ 2025-01-28 676/week @ 2025-02-04 1332/week @ 2025-02-11 748/week @ 2025-02-18 1473/week @ 2025-02-25 2707/week @ 2025-03-04 3176/week @ 2025-03-11 3619/week @ 2025-03-18 4367/week @ 2025-03-25 3035/week @ 2025-04-01 4082/week @ 2025-04-08 3399/week @ 2025-04-15 2651/week @ 2025-04-22

13,655 downloads per month
Used in 29 crates (2 directly)

bzip2-1.0.6

230KB
5.5K SLoC

checks codecov Crates.io

libbzip2-rs: a safer libbzip

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:

How to use libbzip2-rs in your project

libbzip2-rs can be used in both Rust and C projects.

Rust projects

By far the easiest way to use libbzip2-rs is through the bzip2 crate, by simply enabling the libbz2-rs-sys feature gate. This will enable the libbz2-rs-sys backend.

You can also directly use the C api exported by the libbz2-rs-sys crate.

C projects

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.

Acknowledgment

This project is based on a c2rust translation of the original libbzip2.

About

libbzip2-rs is part of Trifecta Tech Foundation's Data compression initiative.

Funding

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.

NLnet foundation logo
NGI Zero Logo

Dependencies