#huffman-coding #huffman #codec #decoding #dead #encoding

simple_huffman

Dead simple Huffman encoding and decoding library

4 releases

0.1.3 Sep 27, 2023
0.1.2 Sep 27, 2023
0.1.1 Sep 27, 2023
0.1.0 Sep 27, 2023

#550 in Compression

BSD-2-Clause

7KB
156 lines

Crates.io docs.rs

funnsam's Huffman coding library

Dead simple Huffman encoding and decoding library in Rust.


lib.rs:

Dead simple Huffman encoding and decoding library

Example

let (encoded, tree) = huffman_encode(data);
let decoded = huffman_decode(encoded, tree);

No runtime deps