rzmq is a pure-Rust implementation of ZeroMQ messaging built on Tokio. You get the familiar socket patterns (REQ/REP, PUB/SUB, PUSH/PULL and DEALER/ROUTER) as async sockets you .await, with no dependency on the C libzmq library.
It speaks ZMTP 3.1 on the wire, so an rzmq socket can talk to libzmq and other ZeroMQ implementations using NULL, PLAIN or CURVE security. It also falls back to ZMTP 2.0 when an older peer asks for it. Transports are tcp://, ipc:// (Unix only) and inproc://. For rzmq-to-rzmq links there is an optional Noise_XX security mechanism.
Each socket is run by a background actor that owns the connections and protocol state. Your code talks to it through a cloneable Socket handle, which is why dropping a pending send or recv future is safe: the message either stays with you or stays queued for the next call. On Linux, an optional io-uring feature moves TCP I/O onto io_uring, with TCP corking, zero-copy sends and multishot receives available per socket.
The smallest useful program binds a PULL socket, connects a PUSH socket to it and passes one message across:
use ;
async
rzmq is in beta. It is tested on macOS and Linux. Full parity with every libzmq option (ZAP in particular) is not a goal.
