Skip to content

diegopacheco/Shrust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shurst

A simple Rust-based compression tool that uses the DEFLATE algorithm to compress files into Gzip format.

Rationale

  • Written in Rust
  • Fun
  • Uses flate2 for compression
  • DEFLATE algorithm, which combines LZ77 and Huffman coding. The output format is Gzip (.gz)
  • ~80 LoC

Build

cargo build

Run

cargo run

Result

❯ ./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

About

Shrust: Compress/Decompress tool written in Rust.

Resources

License

Stars

Watchers

Forks

Packages

No packages published