| Crates.io | mqtt-typed-client-macros |
| lib.rs | mqtt-typed-client-macros |
| version | 0.1.0 |
| created_at | 2025-07-27 14:13:43.127057+00 |
| updated_at | 2025-07-27 14:13:43.127057+00 |
| description | Procedural macros for type-safe async MQTT client with automatic topic routing |
| homepage | |
| repository | https://github.com/holovskyi/mqtt-typed-client |
| max_upload_size | |
| id | 1770117 |
| size | 135,805 |
Procedural macros for type-safe async MQTT client with automatic topic routing.
This crate provides the #[mqtt_topic] macro that generates type-safe MQTT topic handling code.
This crate is typically used through the main mqtt-typed-client crate. The macro is re-exported for convenient access.
use mqtt_typed_client_macros::mqtt_topic;
#[mqtt_topic("sensors/{sensor_id}/data")]
struct SensorData {
sensor_id: String,
payload: MyData,
}
The macro generates:
See the main mqtt-typed-client crate for complete examples and documentation.
This project is licensed under either of
at your option.