A simple command-line utility written in Rust for compressing files using Gzip compression.
Ensure you have Rust installed, and then run the following command to build the project:
cargo build --release
After building, you can use the utility as follows:
./gzip-compressor source_file target_file
Replace source_file
with the path to the file you want to compress and target_file
with the desired output path.
./gzip-compressor input.txt compressed_output.gz
- Reads the contents of the source file.
- Compresses the data using Gzip compression.
- Writes the compressed data to the specified target file.
The utility provides information about the source and target file lengths, as well as the elapsed time during compression.
Source len: <source_file_length>
Target len: <compressed_output_length>
Elapsed: <elapsed_time>
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to contribute, report issues, or suggest improvements! 🤝