Registry / networking / zmq
library0.10.0rscratesunverified

High-level bindings to the zeromq library for asynchronous messaging.

# Cargo.toml [dependencies] zmq = "0.10.0"
INSTALL
IMPORT
SIG · ZMQ
Z
zmq
networkingrustv0.10.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.

Context
use zmq::Context;

Creates a ZMQ context and a REQ socket, connects to a local endpoint, and sends a message.

use zmq::Context; fn main() -> Result<(), Box<dyn std::error::Error>> { let ctx = Context::new(); let socket = ctx.socket(zmq::REQ)?; socket.connect("tcp://localhost:5555")?; socket.send("Hello", 0)?; Ok(()) }
Debug
Known issues
gotchaRequires the libzmq library to be installed on the system.
fix
Install libzmq-dev (Linux) or libzmq (macOS) via package manager, or build from source.
affects: >=0.10.0
Upgrade
Version history
0.10.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
44 hits · last 30 days
node
38
OpenAI (training)
1
Resources
zmq — cargo add zmq · libregistry