RustCompressor is a high-performance command-line tool for compressing and decompressing files in multiple formats, including gzip
, zstd
, lz4
, and zip
. It is designed for speed, efficiency, and ease of use.
- Multi-threaded processing for fast compression and decompression.
- Progress tracking with real-time progress bars.
- Support for multiple compression formats:
gzip
,zstd
,lz4
, andzip
. - Adjustable compression levels for balancing speed and compression ratio.
- Pre-built binaries so users can run the tool without installing Rust.
You can download the pre-built binaries from the Releases page.
- Download
RustCompressor.exe
and run it from the command line.
- Download the binary for your platform.
- Make it executable:
chmod +x RustCompressor
- Move it to a directory in your
PATH
for easy access:sudo mv RustCompressor /usr/local/bin/
To build the project from source, ensure you have Rust installed, then run:
git clone https://github.com/haripatel07/RustCompressor.git
cd RustCompressor
cargo build --release
The compiled binary will be located in target/release/
.
RustCompressor compress <input_file> <output_file> --format <compression_format> --compression_level <level>
Example:
RustCompressor compress example.txt data_compressed --format lz4 --compression_level 10
RustCompressor decompress <input_file> <output_file> --format <compression_format>
Example:
RustCompressor decompress data_compressed.lz4 data_decompressed --format lz4
- gzip (
.gz
) - zstd (
.zst
) - lz4 (
.lz4
) - zip (
.zip
)
RustCompressor includes a live progress bar that shows:
- Elapsed time
- Bytes processed
- Estimated time remaining
- Detects invalid file paths and unsupported formats.
- Provides user-friendly error messages for troubleshooting.
This project is licensed under the MIT License. See LICENSE for details.
Contributions are welcome! Feel free to open an issue or submit a pull request.
Developed by haripatel07(https://github.com/haripatel07).