Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/badboy/minilzo-rs
A wrapper for minilzo, a lightweight subset of the LZO library
https://github.com/badboy/minilzo-rs
Last synced: 24 days ago
JSON representation
A wrapper for minilzo, a lightweight subset of the LZO library
- Host: GitHub
- URL: https://github.com/badboy/minilzo-rs
- Owner: badboy
- License: mit
- Created: 2015-11-28T17:02:28.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-09T13:41:52.000Z (over 7 years ago)
- Last Synced: 2024-12-24T02:01:29.123Z (27 days ago)
- Language: Rust
- Homepage: http://badboy.github.io/minilzo-rs/
- Size: 4.98 MB
- Stars: 4
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# minilzo-rs - A wrapper around minilzo, the lightweight subset of the LZO library
[![Build Status](https://travis-ci.org/badboy/minilzo-rs.svg?branch=master)](https://travis-ci.org/badboy/minilzo-rs)
[![crates.io](http://meritbadge.herokuapp.com/minilzo)](https://crates.io/crates/minilzo)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](http://www.oberhumer.com/opensource/lzo/#minilzo).
This rust library is a wrapper around the minilzo library
and is fully compatible with LZO/minilzo compressed data.## Build
```
cargo build --release
```## Usage
```rust
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](LICENSE).
LZO itself is licensed under the terms of the [GNU General Public License](http://www.oberhumer.com/opensource/gpl.html) (GPL v2+).