Bindings to nng (Nanomsg-Next-Generation) aka Nanomsg2


Keywords
nanomsg, nng, rust-lang
License
MIT

Documentation

Runng

Rust NNG (Nanomsg-Next-Generation):

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.

travis appveyor codecov docs.rs

runng_sys runng-sys crate bindings to native NNG library
runng runng crate high-level wrapper for NNG
runng_thrift runng-thrift crate NNG as Apache Thrift transport

Usage

In Cargo.toml:

runng = "0.1"
# OR
runng_sys = "1.1.1-rc"

Requirements:

  • cmake in PATH
    • On Linux/macOS: default generator is "Unix Makefiles" and should just work
    • On Windows: default generator is ninja and must also be in PATH
  • libclang

Build

  1. Update submodules: git submodule update --init --recursive
  2. Install requirements
  3. cargo build

To build optional packages: cargo build --all