#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

#44 in Compression

Download history 7/week @ 2019-12-01 54/week @ 2019-12-08 13/week @ 2019-12-15 34/week @ 2019-12-22 38/week @ 2019-12-29 17/week @ 2020-01-05 76/week @ 2020-01-12 42/week @ 2020-01-19 5/week @ 2020-01-26 12/week @ 2020-02-02 16/week @ 2020-02-09 68/week @ 2020-02-16 76/week @ 2020-02-23 2/week @ 2020-03-01 36/week @ 2020-03-08 15/week @ 2020-03-15

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