1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
//! An MQTT 3.1.1 client written in Rust. //! //! For example usage see the command-line test app at //! `examples/mqttc.rs`, and integration tests at `tests/*.rs`. //! //! This crate uses the log crate. To enable extra, potentially //! sensitive logging (including passwords) enable the //! "unsafe-logging" Cargo feature. With "unsafe-logging" enabled at //! the "trace" log level every packet is logged. //! //! The "tls" feature is enabled by default and allows connections //! over TLS using [rustls](https://crates.io/crates/rustls). //! If TLS is not required you can opt out by specifying //! `default-features = false`. //! E.g. `mqtt-async-client = { version = "0.1", default-features = false }` #![deny(warnings)] #![deny(missing_docs)] // The futures_util::select! macro needs a higher recursion_limit #![recursion_limit="1024"] pub mod client; mod error; pub mod util; pub use error::{Error, Result};