Eclipse zenoh is an extremely efficient and fault-tolerant Named Data Networking (NDN) protocol that is able to scale down to extremely constrainded devices and networks.
Work in progress...
To build the zenoh-c client API you need to ensure that rust is available on your platform.
-- Ubuntu --
$ sudo apt-get install rustc
-- MacOS --
$ brew install rust
The zenoh-c client API needs the nightly version of the rustc rust compiler.
$ rustup toolchain install nightly
$ rustup default nightly
The zenoh-c client API also needs cbindgen to be installed on your platform.
$ cargo install cbindgen
Once the above dependencies are satisfied, just do the following:
$ cd /path/to/zenoh-c
$ make
$ make install # on linux use **sudo**
If you want to build with debug symbols set the BUILD_TYPE=Debug
environment variable before running make
and make install
:
$ cd /path/to/zenoh-c
$ export BUILD_TYPE=Debug
$ make
$ make install # on linux use **sudo**
$ cd /path/to/zenoh-c
$ make examples
$ ./target/release/examples/zn_sub
$ ./target/release/examples/zn_pub
$ ./target/release/examples/zn_eval
$ ./target/release/examples/zn_query
$ ./target/release/examples/zn_sub_thgr
$ ./target/release/examples/zn_pub_thgr