Cargo Features

[dependencies]
rumqttc = { version = "0.23.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.6, rustls-pemfile ^1, rustls-webpki ^0.101.6, and tokio-rustls ^0.24

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.23, http ^0.2, and ws_stream_tungstenite ^0.11

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