# 🦀 crabz
Like pigz, but rust.
A cross platform, fast, compression and decompression tool.
## Synopsis
This is currently a proof of concept CLI tool using the [`gzp`](https://github.com/sstadick/gzp/) crate.
Supported formats:
- Gzip
- Zlib
- Mgzip
- BGZF
- Raw Deflate
- Snap
## Install
* Homebrew / Linuxbrew
```
brew tap sstadick/crabz
brew install crabz
```
* Debian (Ubuntu)
```
curl -LO https://github.com/sstadick/crabz/releases/download//crabz-linux-amd64.deb
sudo dpkg -i crabz-linux-amd64.deb
```
* Cargo
```
cargo install crabz
```
* Conda
```
conda install -c conda-forge crabz
```
## Usage
```
❯ crabz -h
Compress and decompress files
USAGE:
crabz [FLAGS] [OPTIONS] [FILE]
FLAGS:
-d, --decompress
Flag to switch to decompressing inputs. Note: this flag may change in future releases
-h, --help
Prints help information
-I, --in-place
Perform the compression / decompression in place.
**NOTE** this will remove the input file at completion.
-V, --version
Prints version information
OPTIONS:
-l, --compression-level
Compression level [default: 6]
-p, --compression-threads
Number of compression threads to use, or if decompressing a format that allow for multi-threaded
decompression, the number to use. Note that > 4 threads for decompression doesn't seem to help [default:
32]
-f, --format
The format to use [default: gzip] [possible values: gzip, bgzf, mgzip,
zlib, deflate, snap]
-o, --output