#lzma #wasm #xz #encoding

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

22 releases

new 0.4.0 Mar 27, 2025
0.3.12 Jan 24, 2025
0.3.11 Dec 12, 2024
0.3.9 Oct 2, 2024
0.2.4 Nov 23, 2023

#655 in Compression

Download history 7105/week @ 2024-12-05 8063/week @ 2024-12-12 4909/week @ 2024-12-19 5876/week @ 2024-12-26 9101/week @ 2025-01-02 9473/week @ 2025-01-09 7973/week @ 2025-01-16 10119/week @ 2025-01-23 9184/week @ 2025-01-30 10589/week @ 2025-02-06 8473/week @ 2025-02-13 10416/week @ 2025-02-20 11820/week @ 2025-02-27 11937/week @ 2025-03-06 13138/week @ 2025-03-13 10425/week @ 2025-03-20

49,311 downloads per month
Used in 49 crates (via liblzma)

MIT/Apache

5MB
57K SLoC

C 26K SLoC // 0.3% comments PO File 26K SLoC // 0.5% comments Rust 2.5K SLoC // 0.0% comments M4 734 SLoC // 0.4% comments Automake 671 SLoC // 0.1% comments Shell 668 SLoC // 0.3% comments BASH 451 SLoC // 0.3% comments GNU Style Assembly 303 SLoC // 0.4% comments Bitbake 236 SLoC // 0.1% comments Batch 31 SLoC

Contains (obscure autoconf code, 47KB) 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