#bindings #liblzma #xz #stream #high-level #lzma #xz2

sys lzma-sys

Raw bindings to liblzma which contains an implementation of LZMA and xz stream encoding/decoding. High level Rust bindings are available in the xz2 crate

20 releases

0.1.20 Oct 31, 2022
0.1.19 Jun 6, 2022
0.1.17 Oct 11, 2020
0.1.16 May 15, 2020
0.1.0 Mar 21, 2016

#55 in Compression

Download history 95177/week @ 2024-01-03 92366/week @ 2024-01-10 95308/week @ 2024-01-17 100513/week @ 2024-01-24 122636/week @ 2024-01-31 118293/week @ 2024-02-07 128273/week @ 2024-02-14 131800/week @ 2024-02-21 151651/week @ 2024-02-28 137200/week @ 2024-03-06 133827/week @ 2024-03-13 134387/week @ 2024-03-20 124622/week @ 2024-03-27 124389/week @ 2024-04-03 121724/week @ 2024-04-10 85572/week @ 2024-04-17

477,942 downloads per month
Used in 349 crates (7 directly)

MIT/Apache

1MB
24K SLoC

C 18K SLoC // 0.2% comments Visual Studio Project 2K SLoC M4 728 SLoC // 0.4% comments Automake 562 SLoC // 0.2% comments Rust 400 SLoC // 0.0% comments Shell 334 SLoC // 0.3% comments GNU Style Assembly 295 SLoC // 0.4% comments BASH 245 SLoC // 0.3% comments Bitbake 222 SLoC // 0.2% comments Visual Studio Solution 147 SLoC

Contains (obscure autoconf code, 30KB) xz-5.2/configure.ac, (ELF exe/lib, 2KB) xz-5.2/tests/compress_prepared_bcj_sparc, (ELF exe/lib, 2KB) xz-5.2/tests/compress_prepared_bcj_x86

xz2

Documentation

Bindings to the liblzma implementation in Rust, also provides types to read/write xz streams.

# Cargo.toml
[dependencies]
xz2 = "0.1"

License

This project is licensed under either of

at your option.

Contribution

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

Dependencies