1 unstable release
Uses old Rust 2015
0.1.1 | Jan 17, 2016 |
---|
#23 in #xz
Used in 2 crates
(via xz-decom)
110KB
2.5K
SLoC
xz-decom
XZ Decompression using xz-embedded
This crate provides XZ decompression using the xz-embedded library. This means that compression and perhaps some advanced features are not supported.
Tested on rust stable (1.5), beta (1.6) and nightly (1.7).
Tested on OSX and Linux
Usage
Add the following to your Cargo.toml file:
[dependencies]
xz-decom = "0.2"
Example:
extern crate xz_decom;
use xz_decom::decompress;
let data = include_bytes!("data/hello.xz");
let result = decompress(data).unwrap();
assert_eq!(result, "hello".as_bytes());
Documentation
Available here : https://eminence.github.io/xz-decom/doc/xz_decom/index.html
License
Licensed under either of Apache License, Version 2.0 or MIT, at your option
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
lib.rs
:
xz-embedded-sys
FFI Bindings to the xz-embedded library, which is a simple xz decompression library
The documentation in this crate is copied almost verbatim from the xz-embedded header file, and so there might be some C-isms that aren't applicable to this rust crate. Please read carefully.