Cargo Features

[dependencies]
mqtt-async-client = { version = "0.3.1", default-features = false, features = ["tls", "websocket", "unsafe-logging"] }
default = tls

The tls feature is set by default whenever mqtt-async-client is added without default-features = false somewhere in the dependency tree.

tls default = rustls, tokio-rustls
websocket = http, tokio-tungstenite

Affects async_stream::tungstenite_error_to_std_io_error

unsafe-logging

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

rustls tls

Enables rustls ^0.19.0

http websocket?

Enables http ^0.2.4

tokio-rustls tls

Enables tokio-rustls ^0.22.0

tokio-tungstenite websocket?

Enables tokio-tungstenite ^0.15