Cargo Features

async-compression has no features set by default.

async-compression = { version = "0.4.5", features = ["all", "all-implementations", "all-algorithms", "deflate", "gzip", "xz", "zlib", "zstd", "zstdmt", "deflate64"] }
all = all-algorithms, all-implementations


all-implementations all? = futures-io, tokio
all-algorithms all? = brotli, bzip2, deflate, deflate64, gzip, lzma, xz, zlib, zstd
deflate all-algorithms? = flate2


gzip all-algorithms? = flate2
lzma xz all-algorithms? = xz2
zlib all-algorithms? = flate2
zstd all-algorithms? zstdmt? = libzstd, zstd-safe

Affects async-compression::zstd

zstdmt = zstd

Enables zstdmt of zstd-safe

deflate64 all-algorithms?

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

brotli all-algorithms?

With std

Affects async-compression::brotli

bzip2 all-algorithms?
flate2 deflate? gzip? zlib?

With default (rust_backend)

futures-io all-implementations?

With std

Affects async-compression::futures

libzstd zstd?

Enables zstd

tokio all-implementations?

Affects async-compression::tokio

xz2 lzma? xz?
zstd-safe zstd?