Cargo Features

[dependencies]
twilight-gateway = { version = "0.17.1", default-features = false, features = ["native-tls", "rustls-platform-verifier", "rustls-native-roots", "rustls-webpki-roots", "zlib", "zstd", "twilight-http", "simd-json"] }
default = rustls-platform-verifier, twilight-http, zstd

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

native-tls

Enables native-tls and openssl of tokio-websockets

rustls-platform-verifier default

Enables rustls-platform-verifier of tokio-websockets

rustls-native-roots

Enables rustls-native-roots of tokio-websockets

rustls-webpki-roots

Enables rustls-webpki-roots of tokio-websockets

zlib

Enables flate2

zstd default

Enables zstd-safe

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.

twilight-http default

Affects error::StartRecommendedError, error::StartRecommendedErrorType, twilight-gateway::create_recommended

simd-json implicit feature

Enables simd-json

simd-json:

High performance JSON parser based on a port of simdjson