autocompress-rs
Automatically select suitable decoder from magic bytes or encoder from file extension.
Supported file formats
- Gzip
- Zlib (Cannot suggest format from magic bytes and file extension)
- BZip2
- XZ
- Snappy (Cannot suggest format from file extension)
- Z-standard
- LZ4
- Brotli (Cannot suggest format from magic bytes)
Example
use open;
use ;