Huffman
A simple Huffman coding implementation in Rust for file compression.
Description
This project provides two command-line utilities, encode and decode, which use Huffman coding to compress and decompress files, respectively.
Usage
To use the application, you first need to build it.
Building
cargo build --release
The executable will be located at target/release/huffman.
Git LFS Setup
This project uses Git LFS to manage large image files (e.g., .png, .raw).
1. Install Git LFS
Ensure Git LFS is installed on your machine.
2. Initialize and Pull
Run the following commands to set up LFS and download the image assets:
git lfs install
git lfs pull
Encoding a file
To encode a file, use the encode command with the input and output file paths.
./target/release/huffman encode <input_file> <output_file>
For example:
./target/release/huffman encode my_document.txt my_document.huff
Decoding a file
To decode a file that was previously encoded, use the decode command.
./target/release/huffman decode <input_file> <output_file>
For example:
./target/release/huffman decode my_document.huff my_document.txt
Languages
Rust
100%