Add the following line to the dependencies
section in your Cargo.toml
file:
lz77 = "0.1"
Then you are able to compress/decompress lz77 data:
use lz77::{lz77_compress, lz77_decompress};
let compressed = ... // read your data here
let decompressed = lz77_decompress(compressed, &mut decompressed);
let recompressed = lz77_compress(decompressed, &mut recompressed);
You can also run cargo doc
to get a local copy of documentation.
A simple description of algorithms and basic ideas can be found here.
MIT