huffman_coding
Small library for pure huffman coding in Rust.
This library exposes a reader for decoding encoded data and a writer for encoding data.
Usage
First add this library as dependency to your cargo manifest
= "0.1.0"
Then, import the library at the start of your main/library
extern crate huffman_coding;
Finally you can use the exported structs as you please
use Write;
let pseudo_data = vec!;
let tree = new;
let mut vec = Vec new;
Binaries
There are two small example binaries, one for encoding a file, the other for decoding a file.
As these require command line parsing, they are gated behind the feature flag bin
. To build them, use
cargo build --features "bin"