11 releases

0.1.10 May 22, 2023
0.1.9 Mar 14, 2023
0.1.7 Feb 27, 2023

#13 in #aliyun

MIT license

45KB
1K SLoC

Aliyun MNS SDK for rust

docs.rs

TODO

  • Queue
  • QueueManager
  • Topic
  • TopicManager
  • QPS limit

lib.rs:

Aliyun Message Service (MNS) SDK for Rust docs.rs

Example

use mns::Client;
use mns::Queue;
use mns::queue::{ MessageSendRequest, QueueOperation };
#[tokio::main]
async fn main() {
let client = Client::new("https://xxx.mns.cn-hangzhou.aliyuncs.com", "your id", "your key");
    let queue = Queue::new("your queue name", &client);
    queue.send_message(&MessageSendRequest {
        message_body: "aa".to_string(),
        delay_seconds: Some(1),
        priority: Some(9),
    }).await.unwrap();
}

Dependencies

~8–21MB
~298K SLoC