This Rust project is a command-line application that compresses files using the flate2
crate. It reads an input file, compresses it using Gzip
, and writes the compressed data to an output file.
Compress Files
: Compress any file using Gzip compression.Time Measurement
: Records and displays the time taken to compress the file.CLI Usage
: Simple command-line interface for easy usage.
Before running this project, ensure you have the following installed:
Rust
git clone
: https://github.com/yourusername/rust-file-compressor.git
cd rust-file-compressor
cargo build --release
cargo run --release -- <input_file> <compressed_file>
For example
:
cargo run --release -- input.txt compressed.txt
Contributions are welcome! Please create a pull request with a clear description of your changes.
This project is licensed under the MIT License. See the LICENSE file for details.