30 个版本 (4 个稳定版)

2.0.0 2022年2月2日
1.2.0 2021年2月17日
1.1.0 2020年11月21日
0.1.8 2020年10月16日
0.1.4 2020年6月26日

#60 in #rabbitmq

Download history · Rust 包仓库 409/week @ 2024-03-13 · Rust 包仓库 314/week @ 2024-03-20 · Rust 包仓库 186/week @ 2024-03-27 · Rust 包仓库 516/week @ 2024-04-03 · Rust 包仓库 347/week @ 2024-04-10 · Rust 包仓库 415/week @ 2024-04-17 · Rust 包仓库 440/week @ 2024-04-24 · Rust 包仓库 545/week @ 2024-05-01 · Rust 包仓库 469/week @ 2024-05-08 · Rust 包仓库 657/week @ 2024-05-15 · Rust 包仓库 230/week @ 2024-05-22 · Rust 包仓库 498/week @ 2024-05-29 · Rust 包仓库 587/week @ 2024-06-05 · Rust 包仓库 442/week @ 2024-06-12 · Rust 包仓库 306/week @ 2024-06-19 · Rust 包仓库 306/week @ 2024-06-26 · Rust 包仓库

1,760 每月下载量
用于 4 个 crate (3 直接)

MIT 许可证

350KB
9K SLoC

lapin 与 async-std 的集成

此 crate 通过在 lapin 内部操作和消费者代理中使用 async-std 的执行器,将 lapin 与 async-std 集成。

use async_amqp::*;
use lapin::{Connection, ConnectionProperties, Result};

#[async_std::main]
async fn main() -> Result<()> {
    let addr = std::env::var("AMQP_ADDR").unwrap_or_else(|_| "amqp://127.0.0.1:5672/%2f".into());
    let conn = Connection::connect(&addr, ConnectionProperties::default().with_async_std()).await?; // Note the `with_async_std()` here
    let channel = conn.create_channel().await?;

    // Rest of your program
}

依赖关系

~9–19MB
~299K SLoC