#data #decompression #lossless #portable #lzo #subset

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

#359 in Compression

Download history 33/week @ 2024-07-22 91/week @ 2024-07-29 56/week @ 2024-08-05 56/week @ 2024-08-12 30/week @ 2024-08-19 68/week @ 2024-08-26 22/week @ 2024-09-02 24/week @ 2024-09-09 32/week @ 2024-09-16 66/week @ 2024-09-23 30/week @ 2024-09-30 1/week @ 2024-10-07 26/week @ 2024-10-14 39/week @ 2024-10-21 26/week @ 2024-10-28 28/week @ 2024-11-04

119 downloads per month
Used in 10 crates (5 directly)

MIT license

26KB
487 lines

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

Build Status

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

~44KB