Crates.io | huff-tree-tap |
lib.rs | huff-tree-tap |
version | |
source | src |
created_at | 2021-05-12 13:01:04.0316 |
updated_at | 2024-12-24 14:43:04.41534 |
description | Huffman Encoder and Decoder Library |
homepage | |
repository | https://github.com/chimbosonic/huff-tree-tap/ |
max_upload_size | |
id | 396513 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Huffman Encoder and Decoder Library
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);