3 releases (breaking)

Uses old Rust 2015

0.3.0 Mar 4, 2022
0.2.0 Mar 4, 2022
0.1.0 Feb 26, 2022

#20 in #zeromq

Download history 86/week @ 2024-07-21 77/week @ 2024-07-28 85/week @ 2024-08-04 99/week @ 2024-08-11 62/week @ 2024-08-18 94/week @ 2024-08-25 94/week @ 2024-09-01 81/week @ 2024-09-08 74/week @ 2024-09-15 97/week @ 2024-09-22 94/week @ 2024-09-29 19/week @ 2024-10-06 58/week @ 2024-10-13 59/week @ 2024-10-20 70/week @ 2024-10-27 54/week @ 2024-11-03

242 downloads per month
Used in 29 crates (via zmq2)

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