5 releases (breaking)

0.5.0 Mar 4, 2022
0.4.0 Mar 4, 2022
0.3.0 Mar 4, 2022
0.2.0 Mar 1, 2022
0.1.0 Feb 27, 2022

#299 in Network programming

Download history 138/week @ 2022-03-11 71/week @ 2022-03-18 51/week @ 2022-03-25 53/week @ 2022-04-01 58/week @ 2022-04-08 23/week @ 2022-04-15 25/week @ 2022-04-22 96/week @ 2022-04-29 161/week @ 2022-05-06 106/week @ 2022-05-13 125/week @ 2022-05-20 84/week @ 2022-05-27 489/week @ 2022-06-03 503/week @ 2022-06-10 1874/week @ 2022-06-17 518/week @ 2022-06-24

3,405 downloads per month
Used in 5 crates (2 directly)

MIT/Apache

100KB
2K SLoC

Rust ZeroMQ bindings.

Travis Build Status Appveyor Build status Coverage Status Apache 2.0 licensed MIT licensed crates.io docs

Documentation

Release Notes

About

The zmq2 crate provides bindings for the libzmq library from the ZeroMQ project. This project is a fork of the https://github.com/erickt/rust-zmq project, with the intent of keeping it actively maintained.

This project removes the cmake dependency of this project, as well as update the dependencies. It has also removed the pkgconfig build in favor of always building a vendored version of this library.

Compatibility

The aim of this fork is to track latest zmq releases as close as possible, while in the beginning aming to be a drop in replacement of the original zmq library. Though over time we'll most likely abandon that, in favor of our own library features.

Usage

zmq2 is a pretty straight forward port of the C API into Rust:

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

    let socket = ctx.socket(zmq2::REQ).unwrap();
    socket.connect("tcp://127.0.0.1:1234").unwrap();
    socket.send("hello world!", 0).unwrap();
}

You can find more usage examples in https://github.com/Traverse-Research/zmq2/tree/master/examples.

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed under the terms of both the Apache License, Version 2.0 and the MIT license without any additional terms or conditions.

See the contribution guidelines for what to watch out for when submitting a pull request.

Dependencies

~16–740KB
~15K SLoC