Cargo Features

[dependencies]
backhand = { version = "0.19.0", default-features = false, features = ["xz", "xz-static", "gzip", "gzip-zlib-rs", "gzip-zune-inflate", "lzo", "zstd", "any-gzip", "any-flate2", "document-features"] }
default = gzip, xz, zstd

These default features are set whenever backhand is added without default-features = false somewhere in the dependency tree.

xz default

Enables xz compression inside library and binaries

Enables xz2

xz-static

Enables xz compression and forces static build inside library and binaries

Enables static of xz2

gzip default = any-flate2, any-gzip

Enables gzip compression inside library and binaries using flate2 library with zlib-ng. Cannot be used with the gzip-zune-inflate feature.

Enables zlib-ng of flate2

gzip-zlib-rs = any-flate2, any-gzip

Enables gzip compression inside library and binaries using flate2 library with zlib-rs. Cannot be used with the gzip-zune-inflate feature.

Enables zlib-rs of flate2

gzip-zune-inflate = any-gzip

Enables faster gzip (de-compression only) inside library and binaries using zune-inflate. Cannot be used with the gzip feature.

Enables zune-inflate

lzo

This library is licensed GPL and thus disabled by default.

Enables rust-lzo

zstd default

Enables zstd compression inside library and binaries.

Enables zstd and zstd-safe

any-gzip gzip gzip-zlib-rs? gzip-zune-inflate?

Internal only

any-flate2 gzip gzip-zlib-rs?

Internal only

Features from optional dependencies

document-features implicit feature

Enables document-features

document-features:

Extract documentation for the feature flags from comments in Cargo.toml