Registry / messaging / lapin
library4.8.0rscratesunverified

AMQP client library for RabbitMQ and other message brokers.

# Cargo.toml [dependencies] lapin = "4.8.0"
INSTALL
IMPORT
SIG · LAPIN
L
lapin
messagingrustv4.8.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Connection
use lapin::Connection;

Connects to an AMQP broker at localhost.

use lapin::{Connection, ConnectionProperties}; async fn connect() -> Result<(), lapin::Error> { let conn = Connection::connect("amqp://localhost", ConnectionProperties::default()).await?; println!("Connected!"); Ok(()) }
Debug
Known issues
gotchaRequires an async runtime (e.g., tokio) and the "tokio" feature
fix
Add lapin = { version = "4", features = ["tokio"] } and use tokio runtime.
affects: >= 4.0.0
Upgrade
Version history
4.8.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
Amazon
1
OpenAI (training)
1
Resources
lapin — cargo add lapin · libregistry