Suite of Rust demos.
Simple HTTP/JSON service demo built with auxm.
RUST_LOG=hello_axum=debug,tower_http=info \
CONFIG_DIR=hello-axum/config \
APP__CLIENT_TONIC_CLIENT__endpoint=http://localhost:90 \
cargo run -p hello-axum --features proxy |\
jq '{timestamp, level, target, fields}'
Simple gPRC demo service built with tonic.
RUST_LOG=hello_tonic_server=debug,tower_http=info \
CONFIG_DIR=hello-tonic-server/config \
APP__SERVER__PORT=90 \
cargo run -p hello-tonic-server |\
jq '{timestamp, level, target, fields}'
To test the client use grpcurl
:
grpcurl -plaintext -import-path hello-tonic-client/proto -proto hello.proto -d '{ "name": "Max" }' 127.0.0.1:90 hello.Hello.SayHello
Simple gPRC demo client built with tonic.
CONFIG_DIR=hello-tonic-client/config \
APP__ENDPOINT=http://localhost:90 \
cargo run -p hello-tonic-client
This code is open source software licensed under the Apache 2.0 License.