2个版本
0.1.1 | 2024年8月9日 |
---|---|
0.1.0 | 2024年8月1日 |
#1240 在 网络编程
每月256 次下载
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