4 releases

0.2.0 Oct 28, 2019
0.1.2 Jan 29, 2019
0.1.1 Jan 19, 2019
0.1.0 Dec 5, 2018

#8 in #nng

Download history 18/week @ 2023-10-21 34/week @ 2023-10-28 23/week @ 2023-11-04 31/week @ 2023-11-11 39/week @ 2023-11-18 47/week @ 2023-11-25 44/week @ 2023-12-02 22/week @ 2023-12-09 37/week @ 2023-12-16 25/week @ 2023-12-23 32/week @ 2023-12-30 25/week @ 2024-01-06 44/week @ 2024-01-13 61/week @ 2024-01-20 202/week @ 2024-01-27 121/week @ 2024-02-03

438 downloads per month
Used in 3 crates (2 directly)

MIT license

12KB
209 lines

nng_async / 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 codecov docs.rs

Repository Crate Details
nng_async / runng runng crate high-level wrapper for NNG
nng-sys runng-sys crate bindings to native NNG library
runng_examples Additional examples
runng_thrift runng-thrift crate NNG as Apache Thrift transport

Usage

In Cargo.toml:

runng = "0.3"

Requirements:

  • cmake in PATH
    • On Linux/macOS: default generator is "Unix Makefiles" and should just work
    • On Windows: default generator is usually Visual Studio
  • Optional libclang needed if using build-bindgen feature to run bindgen

Build

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

Dependencies

~2MB
~44K SLoC