1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
# liblzma-sys
[](https://github.com/Portable-Network-Archive/liblzma-rs/actions/workflows/main.yml)
[![Crates.io][crates-badge]][crates-url]
[crates-badge]: https://img.shields.io/crates/v/liblzma-sys.svg
[crates-url]: https://crates.io/crates/liblzma-sys
[Documentation](https://docs.rs/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](https://crates.io/crates/liblzma) crate.
**This crate is forked from [lzma-sys](https://crates.io/crates/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
```diff
# Cargo.toml
[dependencies]
-lzma-sys = "0.1.20"
+liblzma-sys = "0.1.20"
```
```diff
// *.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
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or
http://opensource.org/licenses/MIT)
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.
|