Cargo Features
[dependencies]
paho-mqtt-sys = { version = "0.9.0", default-features = false, features = ["bundled", "build_bindgen", "ssl", "vendored-ssl"] }
The build features are:
"bundled" - Use/build the bundled Paho C library.
"build_bindgen" - Use 'bindgen' to regenerate the bindings to the C library.
"ssl" - Enable SSL features and link to the Paho C library that uses SSL.
"vendored-ssl" - Compile and statically link to a copy of OpenSSL.
- default = bundled, ssl
-
These default features are set whenever
paho-mqtt-sys
is added without
somewhere in the dependency tree.default-features = false - bundled default vendored-ssl? = cmake
- build_bindgen = bindgen
- ssl default vendored-ssl? = openssl-sys
- vendored-ssl = bundled, ssl
-
Enables vendored of openssl-sys
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.
- openssl-sys ssl vendored-ssl?
- bindgen build build_bindgen?
-
Enables bindgen ^0.64
- cmake build bundled