Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Rust zeromq bindings.
branch: master


latest commit 1e61681429
Frank Denis jedisct1 authored

Rust ZeroMQ bindings.

Build Status


rust-zmq uses cargo to install. Users should add this to their Cargo.toml file:

git = ""

Install for developers:

% git clone
% cd rust-zmq
% cargo build


rust-zmq is a pretty straight forward port of the C API into Rust:

extern crate zmq;

fn main() {
    let mut ctx = zmq::Context::new();

    let mut socket = match ctx.socket(zmq::REQ) {
      Ok(socket) => { socket },
      Err(e) => { panic!(e.to_str()) }

    match socket.connect("tcp://") {
      Ok(()) => (),
      Err(e) => panic!(e.to_str())

    match socket.send_str("hello world!", 0) {
      Ok(()) => (),
      Err(e) => panic!(e.to_str())

You can find more usage examples in

Something went wrong with that request. Please try again.