stem-mqtt-client 0.4.2

An MQTT 3.1.1 / MQTT 5.0 client implemented in Rust with UniFFI bindings for Kotlin, Swift, and Python.
Documentation
//! `mqtt-client` — an MQTT 3.1.1 / MQTT 5.0 client written in Rust,
//! exposed to other languages (Kotlin, Swift, and Python) via
//! [UniFFI](https://mozilla.github.io/uniffi-rs/).
//!
//! The [`protocol`] module is a pure, allocation-friendly codec for the MQTT
//! wire format with no networking dependencies; [`client`] builds an async,
//! `tokio`-based client on top of it. The `mqtt-broker` crate re-uses
//! [`protocol`] directly instead of duplicating the codec.

#![cfg_attr(not(test), deny(clippy::unwrap_used))]
pub mod client;
pub mod error;
pub mod protocol;
pub mod support;

pub use client::{
    ConnectOptions, ConnectResult, MqttAuthHandler, MqttClient, MqttMessage, MqttMessageListener,
    TlsOptions, WillOptions,
};
pub use error::MqttError;
pub use protocol::{MqttVersion, QoS};

uniffi::setup_scaffolding!();