#mqtt-client #typed #iot #mqtt #async

mqtt-typed-client-core

Type-safe async MQTT client core with automatic topic routing

1 unstable release

0.1.0 Jul 27, 2025

#50 in #mqtt-client

Download history 61/week @ 2025-07-21 61/week @ 2025-07-28 2/week @ 2025-08-04 5/week @ 2025-08-18 3/week @ 2025-08-25 11/week @ 2025-09-01 12/week @ 2025-09-08 147/week @ 2025-09-15 27/week @ 2025-09-22 36/week @ 2025-09-29 4/week @ 2025-10-06 11/week @ 2025-10-13 12/week @ 2025-10-20 41/week @ 2025-10-27

73 downloads per month
Used in 2 crates

MIT/Apache

170KB
4K SLoC

MQTT Typed Client Core

Core functionality for type-safe async MQTT client with automatic topic routing.

This crate contains the fundamental components:

  • MQTT client implementation with async/await support
  • Topic pattern matching and wildcard routing
  • Message serialization abstraction
  • Connection management and error handling

Usage

This crate is typically used through the main mqtt-typed-client crate which provides a more ergonomic API with procedural macros.

For direct usage:

use mqtt_typed_client_core::{MqttClient, BincodeSerializer};

let (client, connection) = MqttClient::<BincodeSerializer>::connect("mqtt://broker.example.com").await?;

See the main mqtt-typed-client crate for complete examples and documentation.

Features

  • bincode-serializer - Bincode message serialization (default)
  • json - JSON message serialization (default)
  • messagepack - MessagePack serialization
  • cbor - CBOR serialization
  • postcard - Postcard serialization
  • protobuf - Protocol Buffers serialization
  • ron - RON (Rusty Object Notation) serialization
  • flexbuffers - FlatBuffers FlexBuffers serialization

License

This project is licensed under either of

at your option.

Dependencies

~8–22MB
~225K SLoC