DevKER
Exemple
- Easy to use.
use ;
let mut cache = new;
let v = String from;
let v_in = v.into_bytes;
// Encode.
let encoded = deflate;
// Decode.
let decoded = inflate.unwrap;
assert_eq!;
- Reusable cache.
use ;
let mut cache = new;
// First try.
let v = String from;
let v_in = v.into_bytes;
let encoded = deflate;
let decoded = inflate.unwrap;
assert_eq!;
// Another try.
let v = String from;
let v_in = v.into_bytes;
let encoded = deflate;
let decoded = inflate.unwrap;
assert_eq!;
Support
- Deflate/Inflate (Only fixed is supported for deflate)
- Zlib (Dictionaries isn't supported)
Note
For the moment, this crate is inspired by libflate.
Documentation
Installation
Add following lines to your Cargo.toml
:
[]
= "0"
Goal
In the future, this crate gathers most of the algorithms that I use for my projects.
The goal is to have performance and no dependency, in order to fully control the source code.