lz4-compression

Crates.iolz4-compression
lib.rslz4-compression
version0.7.0
sourcesrc
created_at2019-02-18 15:36:48.884474
updated_at2020-06-09 12:11:12.063029
descriptionPure Rust implementation of LZ4 compression and decompression as a library
homepage
repositoryhttps://github.com/johannesvollmer/lz4-compression-rs
max_upload_size
id115584
size27,552
Johannes Vollmer (johannesvollmer)

documentation

README

Crate Documentation

LZ4-compression

A pure Rust implementation of LZ4 compression and decompression. Currently, this implementation is not 100% compatible with the reference implementation. Pull requests are welcome though! This is based on redox-os' LZ4 compression, but has been gradually improved since then.

As this is only a passively maintained crate, consider using lz-fear instead, which also aims to be compatible with the reference implementation of LZ4.

Usage:

use lz4_compression::prelude::{ decompress, compress };

fn main(){
    let uncompressed_data: &[u8] = b"Hello world, what's up?";

    let compressed_data = compress(uncompressed_data);
    let decompressed_data = decompress(&compressed_data).unwrap();

    assert_eq!(uncompressed_data, decompressed_data.as_slice());
}

Thanks to all contributors

Commit count: 20

cargo fmt