docs.rs failed to build zmq-0.5.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
zmq-0.10.0
Rust ZeroMQ bindings.
Installation
rust-zmq uses cargo to install. Users should add this to
their Cargo.toml
file:
[dependencies.zmq]
git = "https://github.com/erickt/rust-zmq.git"
Install for developers:
% git clone https://github.com/erickt/rust-zmq
% cd rust-zmq
% cargo build
Usage
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.to_str()) }
};
match socket.connect("tcp://127.0.0.1:1234") {
Ok(()) => (),
Err(e) => panic!(e.to_str())
}
match socket.send_str("hello world!", 0) {
Ok(()) => (),
Err(e) => panic!(e.to_str())
}
}
You can find more usage examples in https://github.com/erickt/rust-zmq/tree/master/examples.