This project provides functionality to compress and decompress files using the Gzip format in Rust.
- Compress a file
- Decompress a file
To compress a file, pass the compress
command with the source file and target file as arguments:
cargo run compress <source_file> <target_file>
This will compress the source file and save the compressed data to target file.
To decompress a file, call the uncompress
command with the source file and target file as arguments:
cargo run uncompress <source_file> <target_file>
This will uncompress the source file and save the uncompressed data to target file.
This project uses the flate2 crate for compression and decompression. Make sure to add it to your Cargo.toml file:
[dependencies]
flate2 = "1.0.24"