15 releases

Uses old Rust 2015

0.12.0 Nov 4, 2022
0.11.0 Sep 21, 2019
0.9.1 May 30, 2019
0.9.0 Dec 14, 2018
0.6.0 Dec 9, 2014

#1619 in Network programming

Download history 17338/week @ 2024-08-03 22655/week @ 2024-08-10 13569/week @ 2024-08-17 14279/week @ 2024-08-24 15170/week @ 2024-08-31 13697/week @ 2024-09-07 11635/week @ 2024-09-14 13655/week @ 2024-09-21 15372/week @ 2024-09-28 15289/week @ 2024-10-05 15267/week @ 2024-10-12 15361/week @ 2024-10-19 15614/week @ 2024-10-26 14719/week @ 2024-11-02 13650/week @ 2024-11-09 14215/week @ 2024-11-16

60,751 downloads per month
Used in 358 crates (6 directly)

MIT/Apache

34KB
958 lines

Rust ZeroMQ bindings.

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

Documentation

Release Notes

About

The zmq crate provides bindings for the libzmq library from the ZeroMQ project. The API exposed by zmq should be safe (in the usual Rust sense), but it follows the C API closely, so it is not very idiomatic.

Compatibility

The aim of this project is to track latest zmq releases as close as possible.

Regarding the minimum Rust version required, zmq is CI-tested on current stable channels of Rust.

Usage

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

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

    let socket = ctx.socket(zmq::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/erickt/rust-zmq/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

~0–1.7MB
~27K SLoC