#bzip2 #bindings #stream #streaming #exposed #reader-writer #libbzip2

sys bzip2-sys

Bindings to libbzip2 for bzip2 compression and decompression exposed as Reader/Writer streams

13 releases

Uses old Rust 2015

0.1.11+1.0.8 Jun 9, 2021
0.1.10+1.0.8 Feb 1, 2021
0.1.9+1.0.8 May 27, 2020
0.1.8+1.0.8 Feb 24, 2020
0.0.1 Nov 13, 2014

#179 in Compression

Download history 537011/week @ 2024-09-19 565768/week @ 2024-09-26 603062/week @ 2024-10-03 595350/week @ 2024-10-10 618302/week @ 2024-10-17 627877/week @ 2024-10-24 578443/week @ 2024-10-31 592376/week @ 2024-11-07 625780/week @ 2024-11-14 557612/week @ 2024-11-21 502814/week @ 2024-11-28 627754/week @ 2024-12-05 623191/week @ 2024-12-12 366382/week @ 2024-12-19 269310/week @ 2024-12-26 445245/week @ 2025-01-02

1,833,193 downloads per month
Used in 2,188 crates (14 directly)

MIT/Apache

635KB
6K SLoC

C 5.5K SLoC // 0.2% comments XSL 283 SLoC // 0.1% comments Rust 104 SLoC Shell 74 SLoC // 0.3% comments Perl 39 SLoC // 0.4% comments

bzip2

Documentation

A streaming compression/decompression library for rust with bindings to libbz2.

Features

By default, bzip2-rs attempts to use the system libbz2. When libbz2 is not available, the library is built from source. A from source build requires a functional C toolchain for your target, and may not work for all targets (in particular webassembly).

libbz2-rs-sys

Since version 0.5.0, this crate also supports using libbz2-rs-sys, a drop-in compatible rust implementation of libbz2. With this feature enabled, cross-compilation should work like any other rust code, and no C toolchain is needed to compile this crate or its dependencies.

bzip2 = { version = "0.5.0", default-features = false, features = ["libbz2-rs-sys"] }

static

Always build libbz2 from source, and statically link it. When libbz2-rs-sys is enabled, static mode is always used.

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this repository by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies