#zenoh #communication #uprotocol #rpc-client #sdk

up-transport-zenoh

Zenoh Rust传输库,实现了Eclipse uProtocol

2个版本

0.1.1 2024年8月9日
0.1.0 2024年8月1日

#1240网络编程

Download history 104/week @ 2024-07-29 120/week @ 2024-08-05 32/week @ 2024-08-12

每月256 次下载

Apache-2.0

50KB
924

up-transport-zenoh-rust

Rust中Zenoh的uProtocol传输实现

构建

# Check clippy
cargo clippy --all-targets
# Build
cargo build
# Run test
cargo test
# Test coverage
cargo tarpaulin -o lcov -o html --output-dir target/tarpaulin

示例

up-transport-zenoh-rust的示例可以在examples文件夹中找到。假设您正在使用调试构建。[^1]

# Publisher
./target/debug/examples/publisher
# Subscriber
./target/debug/examples/subscriber
# Notifier
./target/debug/examples/notifier
# Notification Receiver
./target/debug/examples/notification_receiver
# RPC Server
./target/debug/examples/rpc_server
# RPC Client
./target/debug/examples/rpc_client
# L2 RPC Client
./target/debug/examples/l2_rpc_client

对于高级Zenoh配置,您可以使用-h查看更多详细信息,或者使用-c传递配置文件。配置文件示例位于config文件夹中。

注意

该实现遵循up-l1/zenoh中定义的规范。

[^1]: 一些PC配置无法本地连接。请使用以下命令将多播添加到lo接口:$ sudo ip link set dev lo multicast on

依赖项

~30–46MB
~712K SLoC