#adler32 #minilzo #lzo

minilzo-rs

A pure rust implementation bound to the C version of minilzo

4 releases (2 breaking)

0.6.1 Dec 7, 2023
0.6.0 Jun 15, 2021
0.5.0 May 22, 2020
0.3.0 May 14, 2020
0.1.0 May 13, 2020

#178 in Compression

Download history 16/week @ 2024-01-01 1/week @ 2024-01-08 7/week @ 2024-02-05 36/week @ 2024-02-19 37/week @ 2024-02-26 18/week @ 2024-03-04 18/week @ 2024-03-11 33/week @ 2024-03-18 22/week @ 2024-03-25 59/week @ 2024-04-01

135 downloads per month
Used in 3 crates

GPL-3.0-or-later

225KB
6.5K SLoC

C 6K SLoC // 0.0% comments Rust 257 SLoC // 0.0% comments

minilzo-rs

A pure rust implementation bound to the C version of minilzo.

Crates.io Documentation License Actions Status

Functions

  • compress
  • decompress
  • adler32

Example

    // test compress
    let mut lzo = minilzo_rs::LZO::init().unwrap();
    let input = [0x00u8; 1024];
    let out = lzo.compress(&input).unwrap();

    // test decompress
    let input = lzo.decompress_safe(&out[..], 1024);
    let input = input.unwrap();
    assert_eq!(input.len(), 1024);

License

This project's source code and documentation is licensed under the GNU General Public License (GPL v3).

LZO itself is licensed under the terms of the GNU General Public License (GPL v2+).

No runtime deps

~175KB