7 releases

0.2.0 Dec 24, 2024
0.1.0 Dec 16, 2024
0.0.5 Aug 27, 2024
0.0.4 Feb 16, 2023
0.0.2 May 12, 2021

#207 in Compression

Download history 11/week @ 2024-09-12 7/week @ 2024-09-19 5/week @ 2024-09-26 1/week @ 2024-10-03 9/week @ 2024-12-05 125/week @ 2024-12-12 121/week @ 2024-12-19 25/week @ 2024-12-26

280 downloads per month

MIT license

26KB
571 lines

Crate License Crate Downloads Crate Size Build

huff-tree-tap

Huffman Encoder and Decoder Library

Example usage

Cargo.toml:

[dependencies]
huff_tree_tap = "*" # You can specify a version here if you want
extern crate huff_tree_tap;
use  huff_tree_tap::*;
use std::collections::HashMap;

let data: Vec<u8> = Vec::from("this is a test string!");
let huffman_data: HuffmanData = HuffmanData::new(&data).unwrap();
let decoded_data: Vec<u8> = huffman_data.decode().unwrap();
assert_eq!(decoded_data,data);

No runtime deps