Cargo Features

[dependencies]
twilight-http = { version = "0.16.0-rc.1", default-features = false, features = ["decompression", "native-tls", "rustls-native-roots", "rustls-webpki-roots", "hickory", "simd-json"] }
default = decompression, rustls-native-roots

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

decompression default

Enables brotli ^3.0.0

Optional dependencies.

native-tls

Enables hyper-tls

Affects connector::Connector

rustls-native-roots default

Enables native-tokio of hyper-rustls ^0.26

Affects connector::Connector

rustls-webpki-roots

Enables webpki-tokio of hyper-rustls ^0.26

Affects connector::Connector

hickory

Enables hyper-hickory

Features from optional dependencies

simd-json implicit feature

Enables simd-json >=0.4, <0.14

simd-json:

High performance JSON parser based on a port of simdjson