| Crates.io | hfmn |
| lib.rs | hfmn |
| version | 0.1.1 |
| created_at | 2024-11-13 22:24:28.619505+00 |
| updated_at | 2024-11-13 22:55:59.143682+00 |
| description | A flexible Huffman coding implementation |
| homepage | |
| repository | https://gitlab.com/PirateSands2/hfmn |
| max_upload_size | |
| id | 1447174 |
| size | 68,550 |
hfmn is a flexible Huffman coding implementation
Add this to your Cargo.toml:
[dependencies]
hfmn = "0.15"
Then:
use hfmn::Coding;
let data = "An arbitrary test string";
let coding = Coding::from_data(data).unwrap();
let encoded = coding.encode(data);
println!("{:?}", encoded);