Skip to content
Rust zeromq bindings.
Find file
Latest commit 87a6bd2 @jedisct1 jedisct1 Merge pull request #82 from petehayes102/fix-libc-v0.2
Fixed compat with libc v0.2

Rust ZeroMQ bindings.

Travis Build Status Appveyor Build status Coverage Status Apache 2.0 licensed MIT licensed


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) }

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

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

You can find more usage examples in

Something went wrong with that request. Please try again.