Cargo Features
[dependencies]
twilight-gateway = { version = "0.16.0", default-features = false, features = ["native-tls", "rustls-platform-verifier", "rustls-native-roots", "rustls-webpki-roots", "rustls-ring", "rustls-aws_lc_rs", "rustls-aws-lc-rs", "zlib-simd", "zlib-stock", "twilight-http", "simd-json"] }
- default = rustls-platform-verifier, rustls-ring, twilight-http, zlib-stock
-
These default features are set whenever
twilight-gateway
is added without
somewhere in the dependency tree.default-features = false - 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
- rustls-ring default
-
Enables ring of tokio-websockets
- rustls-aws_lc_rs rustls-aws-lc-rs?
-
Enables aws_lc_rs of tokio-websockets
tokio-websockets:
Underscores for consistency with other rustls crates
- rustls-aws-lc-rs = rustls-aws_lc_rs
-
Alias for convenience, underscores are preferred in the rustls stack
- zlib-simd
-
Optional The default backend for flate2; miniz-oxide, works differently from the C-backed backend zlib, When you give it the sync argument it does not seem to update the total_in of the function to have an offset https://github.com/alexcrichton/flate2-rs/issues/217
- zlib-stock default
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