Cargo Features

[dependencies]
ac-rumqttc = { version = "0.21.0-alpha.2", default-features = false, features = ["use-rustls", "use-native-tls", "websocket", "url"] }
default = use-rustls

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

use-rustls default

Enables rustls-native-certs ^0.6, rustls-pemfile ^1, and tokio-rustls ^0.23

tokio-rustls:

Optional
rustls

Affects tls::rustls_connector, ac-rumqttc::TlsConfiguration

use-native-tls

Enables native-tls and tokio-native-tls

tokio-native-tls:

native-tls

Affects tls::native_tls_connector, ac-rumqttc::TlsConfiguration

websocket

Enables async-tungstenite ^0.16, http ^0.2, and ws_stream_tungstenite ^0.7

async-tungstenite:

websockets

Features from optional dependencies

url implicit feature

Enables url

url:

URL library for Rust, based on the WHATWG URL Standard

Affects ac-rumqttc::OptionError, v5::OptionError