#xz #lzma #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

11 releases

0.3.3 Apr 10, 2024
0.3.2 Apr 6, 2024
0.3.1 Mar 12, 2024
0.3.0 Feb 26, 2024
0.1.24 Sep 28, 2023

#418 in WebAssembly

Download history 163/week @ 2023-12-24 195/week @ 2023-12-31 549/week @ 2024-01-07 606/week @ 2024-01-14 634/week @ 2024-01-21 212/week @ 2024-01-28 656/week @ 2024-02-04 1037/week @ 2024-02-11 1585/week @ 2024-02-18 1020/week @ 2024-02-25 1024/week @ 2024-03-03 553/week @ 2024-03-10 1093/week @ 2024-03-17 559/week @ 2024-03-24 1398/week @ 2024-03-31 1768/week @ 2024-04-07

5,041 downloads per month
Used in 5 crates (via liblzma)

MIT/Apache

1.5MB
33K SLoC

C 25K SLoC // 0.3% comments Rust 4K SLoC // 0.0% comments Shell 770 SLoC // 0.3% comments M4 735 SLoC // 0.4% comments Automake 640 SLoC // 0.1% comments GNU Style Assembly 307 SLoC // 0.4% comments BASH 262 SLoC // 0.3% comments Bitbake 247 SLoC // 0.1% comments Batch 31 SLoC

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

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