Cargo Features
[dependencies]
twitch-irc = { version = "5.0.1", default-features = false, features = ["refreshing-token-native-tls", "refreshing-token-rustls-native-roots", "refreshing-token-rustls-webpki-roots", "transport-tcp", "transport-tcp-native-tls", "transport-tcp-rustls-native-roots", "transport-tcp-rustls-webpki-roots", "transport-ws", "transport-ws-native-tls", "transport-ws-rustls-native-roots", "transport-ws-rustls-webpki-roots", "metrics-collection", "with-serde"] }
- default = transport-tcp, transport-tcp-native-tls
-
If you add a feature here don't forget to add it to the test workflow in workflows/rust.yml!
- refreshing-token-native-tls = __refreshing-token
-
Enables native-tls of reqwest ^0.11
reqwest:
Enables native-tls specific functionality not available by default.
- refreshing-token-rustls-native-roots = __refreshing-token
-
Enables rustls-tls-native-roots of reqwest ^0.11
- refreshing-token-rustls-webpki-roots = __refreshing-token
-
Enables rustls-tls-webpki-roots of reqwest ^0.11
- transport-tcp default transport-tcp-native-tls transport-tcp-rustls-native-roots? transport-tcp-rustls-webpki-roots? = bytes, tokio-stream, tokio-util
-
Enables io-util and net of tokio
Affects
transport::tcp
,tcp::PlainTCPTransport
,tcp::SecureTCPTransport
… - transport-tcp-native-tls default = tokio-native-tls, transport-tcp
-
Affects
tcp::SecureTCPTransport
… - transport-tcp-rustls-native-roots = rustls-native-certs, tokio-rustls, transport-tcp
-
Affects
tcp::SecureTCPTransport
… - transport-tcp-rustls-webpki-roots = tokio-rustls, transport-tcp, webpki-roots
-
Affects
tcp::SecureTCPTransport
… - transport-ws transport-ws-native-tls? transport-ws-rustls-native-roots? transport-ws-rustls-webpki-roots? = async-tungstenite, tokio-util
-
Affects
transport::websocket
,websocket::PlainWSTransport
… - transport-ws-native-tls = transport-ws
-
Enables tokio-native-tls of async-tungstenite ^0.23
- transport-ws-rustls-native-roots = transport-ws
-
Enables tokio-rustls-native-certs of async-tungstenite ^0.23
- transport-ws-rustls-webpki-roots = transport-ws
-
Enables tokio-rustls-webpki-roots of async-tungstenite ^0.23
- metrics-collection = prometheus
-
Affects
config::ClientConfig.metrics_config
,config::MetricsConfig
… - with-serde __refreshing-token? = serde
- __refreshing-token refreshing-token-native-tls? refreshing-token…native-roots? refreshing-token…webpki-roots? = with-serde
-
Affects
login::UserAccessToken
,login::GetAccessTokenResponse
,login::TokenStorage
,login::RefreshingLoginCredentials
,login::RefreshingLoginError
…
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.
- async-tungstenite transport-ws? transport-ws-native-tls? transport-ws-rustls-native-roots? transport-ws-rustls-webpki-roots?
-
Enables async-tungstenite ^0.23
- bytes transport-tcp
- prometheus metrics-collection?
- reqwest refreshing-token-native-tls? refreshing-token…native-roots? refreshing-token…webpki-roots?
-
Enables reqwest ^0.11
- rustls-native-certs transport-tcp-rustls-native-roots?
-
Enables rustls-native-certs ^0.6
- serde with-serde?
- tokio-native-tls transport-tcp-native-tls
- tokio-rustls transport-tcp-rustls-native-roots? transport-tcp-rustls-webpki-roots?
-
Enables tokio-rustls ^0.24
- tokio-stream transport-tcp
- tokio-util transport-tcp transport-ws?
- webpki-roots transport-tcp-rustls-webpki-roots?
-
Enables webpki-roots ^0.25