Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erickt/rust-zmq
Rust zeromq bindings.
https://github.com/erickt/rust-zmq
Last synced: 4 days ago
JSON representation
Rust zeromq bindings.
- Host: GitHub
- URL: https://github.com/erickt/rust-zmq
- Owner: erickt
- License: apache-2.0
- Created: 2011-12-14T16:48:50.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2024-07-18T23:39:46.000Z (4 months ago)
- Last Synced: 2024-10-19T21:47:38.956Z (15 days ago)
- Language: Rust
- Homepage:
- Size: 9.37 MB
- Stars: 903
- Watchers: 20
- Forks: 193
- Open Issues: 83
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE-APACHE
Awesome Lists containing this project
- awesome-rust-cn - erickt/rust-zmq - ci.org/erickt/rust-zmq.svg?branch=master">](https://travis-ci.org/erickt/rust-zmq) (Libraries / Network programming)
- awesome-rust - erickt/rust-zmq - ci.org/erickt/rust-zmq.svg?branch=master">](https://travis-ci.org/erickt/rust-zmq) (Libraries / Network programming)
- awesome-rust - erickt/rust-zmq
- awesome-rust-cn - erickt/rust-zmq
- awesome-rust-zh - erickt/rust-zmq - [ZeroMQ](https://zeromq.org/)绑定 [<img src="https://api.travis-ci.org/erickt/rust-zmq.svg?branch=master">](https://travis-ci.org/erickt/rust-zmq) (库 / 网络编程)
README
Rust ZeroMQ bindings.
[![Travis Build Status](https://travis-ci.org/erickt/rust-zmq.png?branch=master)](https://travis-ci.org/erickt/rust-zmq)
[![Appveyor Build status](https://ci.appveyor.com/api/projects/status/xhytsx4jwyb9qk7m?svg=true)](https://ci.appveyor.com/project/erickt/rust-zmq)
[![Coverage Status](https://coveralls.io/repos/erickt/erickt-zmq/badge.svg?branch=master)](https://coveralls.io/r/erickt/erickt-zmq?branch=master)
[![Apache 2.0 licensed](https://img.shields.io/badge/license-Apache2.0-blue.svg)](./LICENSE-APACHE)
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE-MIT)
[![crates.io](http://meritbadge.herokuapp.com/zmq)](https://crates.io/crates/zmq)
[![docs](https://docs.rs/zmq/badge.svg)](https://docs.rs/zmq)[Documentation](https://docs.rs/crate/zmq/)
[Release Notes](https://github.com/erickt/rust-zmq/tree/master/NEWS.md)
# About
The `zmq` crate provides bindings for the `libzmq` library from the
[ZeroMQ](https://zeromq.org/) 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:
```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.[contribution guidelines]: ./CONTRIBUTING.md