Cargo Features
[dependencies]
mesquitte-core = { version = "0.1.0", default-features = false, features = ["mqtt", "mqtts", "ws", "wss", "quic", "rustls"] }
- default = mqtt, mqtts, quic, ws, wss
-
These default features are set whenever
mesquitte-core
is added without
somewhere in the dependency tree.default-features = false - mqtt default
-
Affects
server::tcp
… - mqtts default = rustls
-
Affects
server::tcp
… - ws default = async-tungstenite, futures, tungstenite
-
Affects
server::ws
,ws_callback::ws_callback
… - wss default = async-tungstenite, futures, rustls, tungstenite
-
Affects
server::ws
,ws_callback::ws_callback
… - quic default = s2n-quic
-
Affects
server::quic
… - rustls mqtts wss = rustls-pemfile
-
Enables tokio-rustls-webpki-roots of optional async-tungstenite and aws-lc-rs of rustls and tokio-rustls
rustls:
Alias because Cargo features commonly use
-
Affects
server::rustls
…
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.