Skip to content

angelozdev/compressor-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compressor

Welcome to the Compressor! This tool allows you to compress your files using the powerful Rust language. By utilizing this compressor, you can quickly and efficiently transform your files into a .gz format, reducing their size and making them easier to share and store.

Features

  • Fast and Efficient: Built using Rust, this tool offers top-notch performance.
  • Simple Interface: Just provide the source file and let the compressor do the rest.
  • Automatic Naming: The compressed file will have the same name as the original but with a .gz extension.

Installation

Before you run the Compressor, ensure you have Rust and Cargo installed. If not, you can get them here.

  1. Clone the repository:
git clone https://github.com/angelozdev/compressor-rust.git
  1. Navigate to the project directory:
cd compressor-rust
  1. Build the project:
cargo build --release
  1. Install the compressor globally:
cargo install --path .

Once installed, you can use the compressor from anywhere in your command line/terminal.

Usage

To compress a file, use the following command:

compressor <source> [<dir>]

For example, to compress a file named file.txt, you would run:

compressor file.txt

This will produce a compressed file named file.txt.gz.

Notes

  • Ensure the source file exists; otherwise, the compressor will throw an error.
  • The compressed file will be located in the same directory as the source file.
  • If a file with the name <source>.gz already exists, it will be overwritten.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Ensure you update the tests as appropriate.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages