Registry / networking / rumqtt

rumqtt

JSON →
library0.31.0rscratesunverified

Mqtt client for your IOT needs.

# Cargo.toml [dependencies] rumqtt = "0.31.0"
INSTALL
IMPORT
SIG · RUMQTT
R
rumqtt
networkingrustv0.31.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MqttClient
use rumqttc::MqttClient;

Connects to an MQTT broker.

use rumqttc::MqttClient; fn main() { let client = MqttClient::new("tcp://localhost:1883", "client_id").unwrap(); println!("Connected to MQTT broker"); }
Debug
Known issues
gotchaAsync runtime required for async operations
fix
Use tokio or async-std runtime
affects: >=0.20.0
Upgrade
Version history
0.31.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Amazon
1
OpenAI (training)
1
Resources
rumqtt — cargo add rumqtt · libregistry