#amqp #async-std #mio #rabbitmq

deprecated async-amqp

lapin integration with async-std

30 releases (4 stable)

2.0.0 Feb 2, 2022
1.2.0 Feb 17, 2021
1.1.0 Nov 21, 2020
0.1.8 Oct 16, 2020
0.1.4 Jun 26, 2020

#96 in #mio

Download history 26/week @ 2025-12-30 6/week @ 2026-01-06 17/week @ 2026-01-13 37/week @ 2026-01-20 97/week @ 2026-01-27 39/week @ 2026-02-03 15/week @ 2026-02-10 34/week @ 2026-02-17 28/week @ 2026-02-24 28/week @ 2026-03-03 25/week @ 2026-03-10 53/week @ 2026-03-17 110/week @ 2026-03-24 49/week @ 2026-03-31 79/week @ 2026-04-07 232/week @ 2026-04-14

477 downloads per month
Used in 4 crates (3 directly)

MIT license

400KB
10K SLoC

Lapin integration with async-std

This crate integrates lapin with async-std by using async-std's executor inside of lapin for its internal operations and for consumer delegates.

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
}

Dependencies

~13–29MB
~335K SLoC