Cargo Features

[dependencies]
fundamentum-sdk-mqtt = { version = "0.11.0", default-features = false, features = ["use-native-tls", "use-rustls", "native-tls"] }
default = use-native-tls

We currently default to using native-tls as rustls is a bit crippled in the service certificate formats it supports but also because it won't allow a user to register a self signed certificate in his local ca-bundle.

use-native-tls default

Enables use-native-tls of rumqttc

use-rustls

Enables use-rustls of rumqttc

Features from optional dependencies

native-tls implicit feature

Enables native-tls <0.2.14

Version 0.2.14 and above of native-tls require Rust compiler version 1.80 or higher. Our project is currently bound to Rust 1.73 due to constraints with the Yocto image: https://github.com/meta-rust/meta-rust/blob/master/conf/distro/include/rust_versions.inc