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 use the <NNG_version>-rc.<crate_version>
method specified below for keeping this crate up-to-date.
Rust FFI bindings to NNG:
NNG, like its predecessors nanomsg (and to some extent ZeroMQ), is a lightweight, broker-less library, offering a simple API to solve common recurring messaging problems, such as publish/subscribe, RPC-style request/reply, or service discovery. The API frees the programmer from worrying about details like connection management, retries, and other common considerations, so that they can focus on the application instead of the plumbing.
Usage
Version of this crate tracks NNG: <NNG_version>-rc.<crate_version>
(e.g. 1.1.1-rc.2
).
To use the latest crate for the most recent stable version of NNG (1.3.x), in Cargo.toml
:
[]
= "1.3.0-rc"
Requirements:
- cmake v3.13 or newer in
PATH
- On Linux/macOS: default generator is "Unix Makefiles"
- On Windows: default generator is generally latest version of Visual Studio installed
- Optional libclang needed if using
build-bindgen
feature to run bindgen
Features
build-nng
: use cmake to build NNG from source (enabled by default)build-bindgen
: run bindgen to re-generate Rust FFI bindings to Ccmake-unix
: use cmake generator "Unix Makefiles" (default on Linux/macOS)cmake-ninja
: use cmake generator "Ninja"cmake-vs2017
: use cmake generator "Visual Studio 15 2017"cmake-vs2019
: use cmake generator "Visual Studio 16 2019"nng-stats
: enable NNG statsNNG_ENABLE_STATS
(enabled by default)nng-tls
: enable TLSNNG_ENABLE_TLS
(requires mbedTLS)nng-supplemental
: generate bindings to NNG's supplemental functionsnng-compat
: generate bindings to NNG's nanomsg compatible functions
Example) Re-generate FFI bindings with bindgen:
[]
= { = "1.3.0-rc", = ["build-bindgen"] }
Example) Disable stats and use Ninja cmake generator:
[]
= "1.3.0-rc"
= false
= ["cmake-ninja"]
Examples
use *;
use ;