# hfmn


**hfmn is a flexible Huffman coding implementation**
# Usage
Add this to your Cargo.toml:
```toml
[dependencies]
hfmn = "0.15"
```
Then:
```rust
use hfmn::Coding;
let data = "An arbitrary test string";
let coding = Coding::from_data(data).unwrap();
let encoded = coding.encode(data);
println!("{:?}", encoded);
```
# Flags
hfmn has the following features:
- `fast-decoding`: (Default) Uses a faster, more memory-consuming decoding algorithm.
- `mem-efficient-decoding`: Uses a more memory efficient (but slower) decoding algorithm.