Skip to content
/ comprs Public

Experimental playground for compression algorithms in Rust

License

Notifications You must be signed in to change notification settings

gcarq/comprs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

comprs

Build Status Coverage Status

Experimental playground for compression algorithms in Rust. PPM and Arithmetic coder are inspired by: Reference-arithmetic-coding.

Currently implemented algorithms:

Usage

 comprs 0.1.0
Experimental playground for compression algorithms in Rust

USAGE:
    comprs [FLAGS] [OPTIONS] <mode> <file>

FLAGS:
    -h, --help       Prints help information
    -n               Skip integrity check
    -v               Sets the level of verbosity
    -V, --version    Prints version information

OPTIONS:
    -o <o>        Specify compression level [default: 3]  [possible values: 0, 1, 2, 3, 4, 5, 6]

ARGS:
    <mode>    mode [possible values: c, d, compress, decompress]
    <file>    Sets the input file to use

Building

$ git clone https://github.com/gcarq/comprs.git
$ cd comprs
$ cargo build --release

Example

$ wget -O world95.txt https://www.gutenberg.org/files/27560/27560.txt
$ ./target/release/comprs c world95.txt
Applying preprocessors ...
 -> BWT
 -> MTF
Compressing file ...
Compressed Size: 1683194
Compress Ratio: 5.1 (80.57%)
Bits per Byte: 1.5542
Verifying compressed file ...
Decoding preprocessors ...
 -> MTF
 -> BWT
checksum is OK - 1921997141

About

Experimental playground for compression algorithms in Rust

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published