cshannon

Crates.iocshannon
lib.rscshannon
version0.1.1
sourcesrc
created_at2020-05-20 05:04:17.933189
updated_at2020-07-03 21:29:38.224209
descriptionAn implementation of compression algorithms leading up to Huffman's encoding
homepage
repositoryhttps://github.com/callpraths/cshannon
max_upload_size
id243683
size146,906
Prathmesh Prabhu (callpraths)

documentation

https://docs.rs/cshannon

README

Build Status fuzzit

cshannon

This is a pet project.
All plans are funny money,
code quality is (hopefully) reasonable,
and readability is prioritized over efficiency.

A library of some early compression algorithms based on replacement schemes.

This library implements the standard Huffman coding scheme and two precursors to the Huffman scheme often called Shannon-Fano coding.

Usage

cshannon provides a binary that can be used for compression / decompression at the command line and a library that can be integrated into other projects.

Run cshannon --help to see the command-line options for the binary.

The easiest way to use cshannon library is:

use cshannon::{Args, run};

run(Args{
    command: "compress",
    input_file: "/path/to/input_file",
    output_file: "/path/to/output_file",
    tokenizer: "byte",
    encoding: "fano",
});
Commit count: 155

cargo fmt