#compression

minilzo

A wrapper around the portable lossless data compression library

4 releases

Uses old Rust 2015

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

#65 in #compression

Download history 36/week @ 2021-07-03 41/week @ 2021-07-10 39/week @ 2021-07-17 41/week @ 2021-07-24 37/week @ 2021-07-31 54/week @ 2021-08-07 26/week @ 2021-08-14 39/week @ 2021-08-21 7/week @ 2021-08-28 6/week @ 2021-09-04 34/week @ 2021-09-11 19/week @ 2021-09-18 7/week @ 2021-09-25 11/week @ 2021-10-02 19/week @ 2021-10-09 22/week @ 2021-10-16

141 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

~30KB