Cargo Features

[dependencies]
rumqttc = { version = "0.24.0", default-features = false, features = ["use-rustls", "use-native-tls", "websocket", "proxy", "url"] }
default = use-rustls

The use-rustls feature is set by default whenever rumqttc is added without default-features = false somewhere in the dependency tree.

use-rustls default

Enables rustls-native-certs ^0.7.0, rustls-pemfile, rustls-webpki, and tokio-rustls ^0.25.0

tokio-rustls:

Optional
rustls

Affects tls::rustls_connector, rumqttc::TlsConfiguration

use-native-tls

Enables native-tls and tokio-native-tls

tokio-native-tls:

native-tls

Affects tls::native_tls_connector, rumqttc::TlsConfiguration

websocket

Enables async-tungstenite ^0.25.0, http, and ws_stream_tungstenite ^0.13.0

async-tungstenite:

websockets

proxy

Enables async-http-proxy

Features from optional dependencies

url implicit feature

Enables url

url:

URL library for Rust, based on the WHATWG URL Standard

Affects rumqttc::OptionError, v5::OptionError