Crates.io | rmqtt-codec |
lib.rs | rmqtt-codec |
version | 0.2.0 |
created_at | 2025-04-17 14:37:44.588146+00 |
updated_at | 2025-09-14 10:04:03.221305+00 |
description | MQTT protocol codec implementation with multi-version support and version negotiation |
homepage | |
repository | https://github.com/rmqtt/rmqtt/tree/master/rmqtt-codec |
max_upload_size | |
id | 1637883 |
size | 216,057 |
🚀 rmqtt-codec is a high-performance MQTT protocol codec library designed for async environments. It provides full support for multiple MQTT versions with automatic negotiation and zero-copy efficiency, seamlessly integrating with the Tokio ecosystem.
bytes::BytesMut
to minimize memory overheadtokio_util::codec
for smooth async I/O operationsMqttCodec
: Main codec dispatcher for version-aware encoding and decodingMqttPacket
: Unified representation of all MQTT packet types across versionsversion::ProtocolVersion
: Handshake-based protocol version detectionEncodeError
/ DecodeError
: Dedicated error types for robust error handling during encoding and decodingPlease add a dependency in 'Cargo. toml':
[dependencies]
rmqtt-codec = "0.1"