Tiny lz4 decoding wrapper package built specifically for lod package manager and Unix systems. If you need complete box of lz4, consider using lz4.

Adding lib to the project

In your Cargo.toml:

toml [dependencies] tiny-lz4-decoder-sys = "1.0"

In build.rs of your binary crate: ```rust use std::{env, path::Path};

fn main() { let homepath = env::var("HOME").expect("HOME environment variable is not set."); let lz4so = Path::new(&homepath).join(".local/share/tinylz4decodersys");

println!("cargo:rustc-link-arg=-Wl,-rpath={}", lz4_so.display());

} ```

Usage

Simple usage:

```rust use std::fs::File;

use tinylz4decoder_sys::Decoder;

fn main() { let inputfile = File::open("compressedlz4").unwrap(); let mut decoder = Decoder::new(inputfile).unwrap(); let mut outputfile = File::create("decompressedoutput").unwrap(); std::io::copy(&mut decoder, &mut outputfile).unwrap(); } ```

License

This package is covered under the MIT license. See the LICENSE file for more info.