Cargo Features

[dependencies]
backhand = { version = "0.21.0", default-features = false, features = ["xz", "xz-static", "gzip", "lzo", "zstd", "lz4", "any-flate2", "document-features"] }
default = gzip, lz4, 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-rs

Enables flate2

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

lz4 default

Enables Lz4 compression

Enables lz4_flex

any-gzip any-flate2 gzip

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