Cargo Features

[dependencies]
flate2-expose = { version = "1.0.25", default-features = false, features = ["any_zlib", "zlib", "zlib-ng-compat", "zlib-ng", "cloudflare_zlib", "rust_backend", "miniz-sys"] }
default = rust_backend

The rust_backend feature is set by default whenever flate2-expose is added without default-features = false somewhere in the dependency tree.

any_zlib cloudflare_zlib? zlib? zlib-ng?

note: this is not a real user-facing feature

zlib zlib-ng-compat? = any_zlib, libz-sys
zlib-ng-compat = zlib

Enables zlib-ng of libz-sys

libz-sys:

(Omit the libc feature if you don't require the corresponding functions.)

This allows higher-level crates depending on your library to opt into zlib-ng if desired.

zlib-ng = any_zlib, libz-ng-sys
cloudflare_zlib = any_zlib, cloudflare-zlib-sys
rust_backend default miniz-sys? = miniz_oxide
miniz-sys = rust_backend

For backwards compatibility

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.

libz-sys zlib? zlib-ng-compat?
libz-ng-sys zlib-ng?
cloudflare-zlib-sys cloudflare_zlib?
miniz_oxide rust_backend

Enables miniz_oxide ^0.5.0