#brotli

compu

Rust Compression library with generic interface

10 releases (4 breaking)

✓ Uses Rust 2018 edition

0.5.1 Dec 30, 2019
0.5.0 Dec 30, 2019
0.4.2 Dec 22, 2019
0.4.0 Aug 1, 2019
0.1.0 May 21, 2019

#47 in Compression

Download history 13/week @ 2019-10-18 74/week @ 2019-10-25 13/week @ 2019-11-01 3/week @ 2019-11-08 9/week @ 2019-11-15 9/week @ 2019-11-22 13/week @ 2019-11-29 45/week @ 2019-12-06 18/week @ 2019-12-13 35/week @ 2019-12-20 43/week @ 2019-12-27 17/week @ 2020-01-03 69/week @ 2020-01-10 52/week @ 2020-01-17

87 downloads per month
Used in 3 crates (via yukikaze)

Apache-2.0

235KB
1K SLoC

コンプ(compu)

Actions 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.
  • Compression/decompression traits
    • Compress - Describes how to use Encoder for to compress.
    • Decompress - Describes how to use Decoder to decompress.

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–640KB
~13K SLoC