11 releases

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

#11 in #aliyun

Download history 3/week @ 2024-07-21 1/week @ 2024-07-28 36/week @ 2024-09-22 20/week @ 2024-09-29 1/week @ 2024-10-13

57 downloads per month

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–19MB
~294K SLoC