robustmq 1.0.0

RobustMQ Rust SDK — mq9 AI-native async messaging
Documentation

robustmq-rust

Rust SDK for RobustMQ — mq9 AI-native async messaging.

Status: not yet implemented. Directory structure and dependencies are scaffolded.

Planned dependencies

Planned API

use robustmq::mq9::Client;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::connect("nats://localhost:4222").await?;

    let mailbox = client.create(3600).await?;
    client.send(&mailbox.mail_id, b"hello", "normal").await?;

    client.subscribe(&mailbox.mail_id, |msg| async move {
        println!("{:?}", msg.payload);
    }).await?;

    Ok(())
}

See docs/mq9-protocol.md for the full protocol reference.