#bzip2 #compatible #data #part #api #following

no-std libbz2-rs-sys

a drop-in compatible rust bzip2 implementation

2 releases

0.1.1 Dec 11, 2024
0.1.0 Dec 4, 2024

#269 in Compression

Download history 64/week @ 2024-11-28 268/week @ 2024-12-05 392/week @ 2024-12-12 58/week @ 2024-12-19 62/week @ 2024-12-26 360/week @ 2025-01-02

1,076 downloads per month
Used in 2 crates

bzip2-1.0.6

250KB
6K 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

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.

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.

Dependencies