Experimental sandbox for compression algorithms in Rust
Switch branches/tags
Nothing to show
Clone or download
Latest commit 2bbce18 Dec 6, 2018

README.md

comprs

Build Status Coverage Status

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

Currently implemented algorithms:

Usage

 comprs 0.1.0
Experimental sandbox 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