A simple Rust-based compression tool that uses the DEFLATE algorithm to compress files into Gzip format.
- Written in Rust
- Fun
- Uses
flate2for compression - DEFLATE algorithm, which combines LZ77 and Huffman coding. The output format is Gzip (.gz)
- ~80 LoC
cargo buildcargo run❯ ./shrust compress .
Compressed to: archive.tar.gz
❯ ./shrust show archive.tar.gz
1.txt
test/
test/test.txt
❯ ./shrust decompress archive.tar.gz
❯ ls
archive.tar.gz output shrust
❯ ls output
1.txt test
