#compression

minilzo

A wrapper around the portable lossless data compression library

4 releases

0.2.0 May 9, 2017
0.1.2 May 8, 2017
0.1.1 Jan 26, 2017
0.1.0 Feb 10, 2016

#98 in Compression

Download history 9/week @ 2020-03-12 21/week @ 2020-03-19 5/week @ 2020-03-26 6/week @ 2020-04-02 36/week @ 2020-04-09 25/week @ 2020-04-16 12/week @ 2020-04-23 9/week @ 2020-04-30 9/week @ 2020-05-07 5/week @ 2020-05-14 21/week @ 2020-05-21 18/week @ 2020-05-28 13/week @ 2020-06-04 12/week @ 2020-06-11 7/week @ 2020-06-18 9/week @ 2020-06-25

68 downloads per month
Used in 8 crates (3 directly)

MIT license

26KB
487 lines

minilzo-rs - A wrapper around minilzo, the lightweight subset of the LZO library

Build Status crates.io

LZO is a compression library with focus on decompression speed. originally implemented by Markus F.X.J. Oberhumer. minilzo is a lightweight subset of the full LZO library.

It is available online as a C library.

This rust library is a wrapper around the minilzo library and is fully compatible with LZO/minilzo compressed data.

Build

cargo build --release

Usage

use minilzo;

fn main() {
    let data = b"foobar";

    let compressed = minilzo::compress(&data[..]).unwrap();

    let decompressed = minilzo::decompress(&compressed, data.len()).unwrap();
}

Tests

Run tests with:

cargo test

Run benchmarks with:

cargo bench

License

The minilzo-rs wrapper library is licensed under the terms of the MIT License.
LZO itself is licensed under the terms of the GNU General Public License (GPL v2+).

Dependencies

~26KB