Cargo Features

[dependencies]
tide-compress = { version = "0.11.0", default-features = false, features = ["all", "brotli", "gzip", "deflate", "db-check", "regex-check"] }
default = all

The all feature is set by default whenever tide-compress is added without default-features = false somewhere in the dependency tree.

all default = brotli, db-check, deflate, gzip
brotli all

Enables brotli of async-compression ^0.3

Affects middleware::CompressMiddlewareBuilder.brotli_quality

gzip all

Enables gzip of async-compression ^0.3

Affects middleware::CompressMiddlewareBuilder.deflate_quality

deflate all

Enables deflate of async-compression ^0.3

async-compression:

algorithms

Affects middleware::CompressMiddlewareBuilder.deflate_quality

db-check all = phf, regex-check
regex-check db-check? = regex

Affects middleware::CompressMiddlewareBuilder.content_type_check

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

phf db-check?
regex regex-check?