#xz #lzma #wasm #encoding #high-level

sys liblzma-sys

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

17 releases

0.3.9 Oct 2, 2024
0.3.7 Aug 7, 2024
0.3.6 Jul 30, 2024
0.3.1 Mar 12, 2024
0.2.4 Nov 23, 2023

#490 in Compression

Download history 1154/week @ 2024-07-07 1401/week @ 2024-07-14 2768/week @ 2024-07-21 2878/week @ 2024-07-28 3007/week @ 2024-08-04 2709/week @ 2024-08-11 2414/week @ 2024-08-18 2351/week @ 2024-08-25 2136/week @ 2024-09-01 2161/week @ 2024-09-08 2185/week @ 2024-09-15 4151/week @ 2024-09-22 4604/week @ 2024-09-29 6930/week @ 2024-10-06 7415/week @ 2024-10-13 5267/week @ 2024-10-20

24,850 downloads per month
Used in 18 crates (via liblzma)

MIT/Apache

3.5MB
55K SLoC

C 26K SLoC // 0.3% comments PO File 23K SLoC // 0.4% comments Rust 3K SLoC // 0.0% comments M4 735 SLoC // 0.4% comments Automake 649 SLoC // 0.1% comments Shell 576 SLoC // 0.3% comments BASH 456 SLoC // 0.3% comments GNU Style Assembly 307 SLoC // 0.4% comments Bitbake 247 SLoC // 0.1% comments Batch 31 SLoC

Contains (obscure autoconf code, 44KB) xz/configure.ac

liblzma-sys

CI Crates.io

Documentation

Raw bindings to liblzma which contains an implementation of LZMA and xz stream encoding/decoding.

High level Rust bindings are available in the liblzma crate.

This crate is forked from lzma-sys and liblzma-sys = "0.1.x" is fully compatible with lzma-sys = "0.1.20", so you can migrate simply.

Migrate from lzma-sys

# Cargo.toml
[dependencies]
-lzma-sys = "0.1.20"
+liblzma-sys = "0.1.20"
// *.rs
-use lzma_sys;
+use liblzma_sys;

Version 0.2.x breaking changes

  • XZ upgraded to 5.4
  • Multithreading is disabled by default. This feature is available by enabling the parallel feature
  • Support compile to webassembly

Version 0.3.x breaking changes

  • XZ upgraded to 5.6

License

This project is licensed under either of

at your option.

Contribution

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

Dependencies