This crate integrates lapin with smol by using smol's executor inside of lapin for its internal operations and for consumer delegates.
``` use lapinou::*; use lapin::{Connection, ConnectionProperties, Result};
fn main() -> Result<()> {
smol::run(async {
let addr = std::env::var("AMQPADDR").unwraporelse(|| "amqp://127.0.0.1:5672/%2f".into());
let conn = Connection::connect(&addr, ConnectionProperties::default().withsmol()).await?; // Note the with_smol()
here
let channel = conn.createchannel().await?;
// Rest of your program
})
} ```