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.
Rust ZeroMQ bindings.
Installation
Currently, rust-zmq requires ZeroMQ 3.2 or newer. For example, on recent Debian-based distributions, you can use the following command to get the prerequiste headers and library installed:
apt install libzmq3-dev
If your OS of choice does not provide packages of a new-enough libzmq, you will first have to install it from source; see https://github.com/zeromq/libzmq/releases.
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
The build normally uses pkg-config
to find out about libzmq's
location. If that is not available, the environment variable
LIBZMQ_PREFIX
(or alternatively, LIBZMQ_LIB_DIR
and
LIBZMQ_INCLUDE_DIR
) can be defined to avoid the invocation of
pkg-config
.
Usage
rust-zmq
is a pretty straight forward port of the C API into Rust:
extern crate zmq;
You can find more usage examples in https://github.com/erickt/rust-zmq/tree/master/examples.