Skip to content

grpc,websocket,quic,mqtt,zeromq,dds,zenoh,ice_oryx2,plot

Notifications You must be signed in to change notification settings

youngday/easy_example

Repository files navigation

easy_example

  • rust base frame:log , config ,network,zeromq ,mqtt,web,rpc ,base64
  • dds: zenoh, iceoryx2

crate

name replace fun note
tokio async task ,tcp ,udp,channel, async frame,tokio::spawn
config.rs yaml,toml,json,single file read config files ,and put into struct data simplize config function
log4rs env_logger log with file
tmq zeromq with tokio
once_cell lazy_static global reference from config file
rumqttc paho-mqtt mqtt of rust with tokio
tokio-serial serial.rs async serial port
base64 base64 encode decode
plot plotly plot data all you want plot to web,easy than plotters,(https://github.com/youngday/easy_wasm_plotly)
zenoh dds pubsub dds ipc for ros new realtime(10us) ipc
iceoryx2 dds pubsub dds ipc for ros new realtime(10us) ipc
poem_grpc tonic grpc put ./proto build.rs files same as cargo.toml path
axum websocket websocket axum example ,tokio-tungstenite
quinn quic quic http3 quic http3 client server

examples

name fun note
tcp-client,tcp-server tcp client server
post http client post with dynamic json
zeromq-tmq get udp,http data to zeromq
zmq_pub,zmq_sub tmq ,zeromq lib, publish,subscriber
udp-client,udp-server udp client,server
channel-mpsc multi productor,single consummer queue mpsc,for mpmc ,see flume,async-channel
mqttd mqtt broker mqtt with tokio , run mqtt broker ,before run client , cargo run --release --example rumqttd -- -c rumqttd.toml -vvv
mqtt-asyncpubsub mqtt client mqtt with tokio , run mqtt broker ,before run client
serial-print async serial port
base64 base64 encode decode
plot plot data https://github.com/youngday/easy_wasm_plotly
zenoh_pub,zenoh_sub pub sub pub sub
ice_pub,ice_sub pub sub pub sub
discovery iceoryx2 discovery
grpc-client,grpc-server,grpc-jsoncodec-server poem grpc examples ,with json codec ⚠️ grpc branch
ws_client,ws_server websocket
quic_server,quic_client quic,http3 quic,http3

vscode build

https://code.visualstudio.com/docs/languages/rust

dds

target

zeromq is a good dds rpc, but rust zmq is maintained slowly. we could have more fast dds selection,and it can bind to ros.

easy-zenoh

pub and sub ,test ok

zenoh-cpp

c++ app,test ok ,can link with rust zenoh,check:

iceoryx2

pub and sub ,test ok ,

⚠️ but not c++ and python app,now are planning,waiting for release

quiche

cargo run --example quic_server ./

cargo run --example quic_client https://localhost:4433/Cargo.toml

grpc

for building proto not work on github workflow,

⚠️ // please uncomment for grpc

mqtt

mqtt update to v5 protocol

run rumqttd broker first

cargo run --release --example rumqttd -- -c rumqttd.toml -vvv 

or ./rumqtt.sh

Releases

No releases published

Packages

No packages published