docs.rs failed to build lzma-rs-perf-exp-0.2.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
lzma-rs-perf-exp
This project is a decoder for LZMA and its variants written in pure Rust, with focus on clarity.
It already supports LZMA, LZMA2 and a subset of the .xz
file format.
This fork provides some (API-unstable) performance experiments for use in chd-rs, which may gradually be upstreamed. The API is subject to change without a corresponding SemVer-compatible version bump.
Usage
Decompress a .xz
file.
let filename = "foo.xz";
let mut f = new;
// "decomp" can be anything that implements "std::io::Write"
let mut decomp: = Vec new;
xz_decompress.unwrap;
// Decompressed content is now in "decomp"
Encoder
For now, there is also a dumb encoder that only uses byte literals, with many hard-coded constants for code simplicity. Better encoders are welcome!
Contributing
Pull-requests are welcome, to improve the decoder, add better encoders, or more tests. Ultimately, this project should also implement .xz and .7z files.
License
MIT