Cargo Features

[dependencies]
binstalk-downloader = { version = "0.13.4", default-features = false, features = ["static", "pkg-config", "zlib-ng", "rustls", "native-tls", "hickory-dns", "trust-dns", "http3", "zstd-thin", "cross-lang-fat-lto", "json"] }
default = rustls, static

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

static default

Enables static of xz2, vendored of optional native-tls and static of bzip2

bzip2:

Enable this feature if you want to have a statically linked bzip2

pkg-config

Enables pkg-config of zstd

zstd is also depended by zip.
Since zip 0.6.3 depends on zstd 0.11, we can use 0.12.0 here because it uses the same zstd-sys version.
Otherwise there will be a link conflict.

zlib-ng

Enables zlib-ng of flate2

rustls default

Enables rustls-tls, rustls-tls-native-roots and rustls-tls-webpki-roots of reqwest, dns-over-h3, dns-over-https-rustls, dns-over-quic and dns-over-rustls of optional hickory-resolver

native-tls = native-tls-crate

Enables dns-over-native-tls of optional hickory-resolver and native-tls of reqwest

reqwest:

Enables native-tls specific functionality not available by default.

hickory-dns trust-dns? = default-net, hickory-resolver, ipconfig, once_cell

Enable hickory-resolver so that features on it will also be enabled.

trust-dns = hickory-dns

Deprecated alias for hickory-dns, since trust-dns is renamed to hickory-dns

http3

HTTP3 is temporarily disabled by reqwest.

Experimental HTTP/3 client, this would require --cfg reqwest_unstable to be passed to rustc.

Enables http3 of reqwest

zstd-thin

Enables thin of zstd

cross-lang-fat-lto

Enables fat-lto of zstd

json = serde, serde_json

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.

serde json?
serde_json json?
hickory-resolver hickory-dns?
once_cell hickory-dns?
default-net win hickory-dns?
ipconfig win hickory-dns?
native-tls-crate not wasm32 native-tls?

Enables native-tls