Paxit
Paxit is a flexible Rust library for compressing and decompressing files using various algorithms, with a modular design that allows easy addition of new compression formats.
Features
- Supports multiple compression formats: "bmp", "dds", "farbfeld", "gif", "hdr", "ico", "jpg", "jpeg", "xz", "gz", "png", "pbm", "pgm", "ppm", "tar", "tga", "tiff", "tif", "webp", "zip", "zst".
- Modular design for easy addition of new compression algorithms.
- Simple command-line interface for compressing and decompressing files.
Installation
To use Paxit, add the following to your Cargo.toml:
[]
= "0.1.4"
Usage
Command-Line Interface Paxit provides a simple command-line interface for compressing and decompressing files.
Compression
To compress files, use the following command:
For example, to compress file1.txt and file2.txt into archive.zip:
Decompression
To decompress a file, use the following command:
For example, to decompress archive.zip into the output directory:
Library Usage
You can also use Paxit as a library in your Rust projects. Here is an example of how to use it:
use ;
use Pack;
use Path;
Adding New Compression Algorithms
To add a new compression algorithm, simply create a new file in the algorithms directory and implement the Pack trait. The library will automatically detect and use the new algorithm.
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
You can update the mod.rs file by running :
License
This project is licensed under the MIT License.