This is a simple file compression and decompression tool that uses Huffman coding to compress files. The tool supports two primary operations:
- Compression: Compresses an input file and stores the result in an output file.
- Decompression: Decompresses a compressed file and stores the result in an output file.
The tool is used through the command line with the following commands:
cczip
for compressionccunzip
for decompression
First, build the program by running the following command:
cargo build --release
To make the tool accessible from anywhere in your terminal, move the compiled executables to a directory that is included in your system's PATH.
sudo cp target/release/cczip /usr/local/bin/
sudo cp target/release/ccunzip /usr/local/bin/
To verify the installation, check if the executables are accessible from anywhere in your terminal:
which cczip
which ccunzip
cczip test.txt [test.zip]
cczip test.dat [test.txt]
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Feel free to open issues or submit pull requests to improve the tool. To contribute:
- Fork the repository.
- Create a new branch.
- Make your changes.
- Submit a pull request.