This crate includes a pure rust port of lzokay, which is a C++ implementation of the LZO compression format.
It reads and writes raw LZO1X streams, compatible with miniLZO and liblzo, not the .lzo files of the lzop tool, which wrap the stream in a header and checksums of their own.
The documentation includes some examples.
Add following lines to your Cargo.toml:
# Cargo.toml
[dependencies]
lzokay-native = "0.2"This feature includes everything for compression.
This feature includes everything for decompression