Crate async_compression

Source
Expand description

Adaptors between compression crates and Rust’s modern asynchronous IO types.

§Feature Organization

This crate is divided up along two axes, which can each be individually selected via Cargo features.

All features are disabled by default, you should enable just the ones you need from the lists below.

If you want to pull in everything there are three group features defined:

FeatureDoes
allActivates all implementations and algorithms.
all-implementationsActivates all implementations, needs to be paired with a selection of algorithms
all-algorithmsActivates all algorithms, needs to be paired with a selection of implementations

§IO implementation

The first division is which underlying asynchronous IO trait will be wrapped, these are available as separate features that have corresponding top-level modules:

§Compression algorithm

The second division is which compression schemes to support, there are currently a few available choices, these determine which types will be available inside the above modules:

Modules§

  • brotlibrotli
    This module contains Brotli-specific types for async-compression.
  • futuresfutures-io
    Implementations for IO traits exported by futures-io.
  • tokiotokio
    Implementations for IO traits exported by tokio v1.x.
  • zstdzstd
    This module contains zstd-specific types for async-compression.

Enums§

  • Level of compression data should be compressed with.