#brotli

compu

Rust Compression library with generic interface

6 releases (3 breaking)

✓ Uses Rust 2018 edition

0.4.0 Aug 1, 2019
0.3.2 May 24, 2019
0.2.0 May 22, 2019
0.1.0 May 21, 2019

#49 in Compression

Download history 52/week @ 2019-05-19 23/week @ 2019-05-26 10/week @ 2019-06-02 21/week @ 2019-06-09 17/week @ 2019-06-16 29/week @ 2019-06-23 25/week @ 2019-06-30 32/week @ 2019-07-07 2/week @ 2019-07-14 13/week @ 2019-07-21

76 downloads per month

Apache-2.0

225KB
881 lines

コンプ(compu)

Build Status Crates.io Documentation

Rust Compression library with generic interface


lib.rs:

Compression/decompression library

Low-level API

Supplies direct wrappers over compression libraries

  • Encoder - interface to compression
  • Decoder - interface to decompression

High-level API

  • In-memory
    • Compressor - Uses Encoder to compress data into internal buffer.
    • Decompressor - Uses Decoder to decompress data into external buffer.
  • Blocking Write interface
    • Compressor - Uses Encoder to compress data into supplied writer.
    • Decompressor - Uses Decoder to decompress data into supplied writer.

Cargo Features

  • brotli-c - Enables brotli via C library. Default on.
  • zlib - Enables zlib via libz-sys. Default on.
  • zlib-opt - Enables zlib via cloudflare-zlib-sys. Default off. Replaces zlib when enabled.

Dependencies

~0–650KB
~13K SLoC