Cargo Features
[dependencies]
twilight-gateway = { version = "0.16.0-rc.1", default-features = false, features = ["native-tls", "rustls-native-roots", "rustls-webpki-roots", "zlib-simd", "zlib-stock", "twilight-http", "simd-json"] }
- default = rustls-native-roots, 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 ^0.5
- rustls-native-roots default
-
Enables ring and rustls-native-roots of tokio-websockets ^0.5
- rustls-webpki-roots
-
Enables ring and rustls-webpki-roots of tokio-websockets ^0.5
- 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 >=0.4, <0.14
simd-json:
High performance JSON parser based on a port of simdjson