From dfdcd8ae469e6c0af07ea099c8bc41e70a76e954 Mon Sep 17 00:00:00 2001 From: charles Date: Tue, 12 May 2026 14:16:27 -0700 Subject: [PATCH] Add README for hello_world example --- examples/hello_world/README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 examples/hello_world/README.md diff --git a/examples/hello_world/README.md b/examples/hello_world/README.md new file mode 100644 index 0000000..4efc736 --- /dev/null +++ b/examples/hello_world/README.md @@ -0,0 +1,20 @@ +# Hello World Example + +This example demonstrates a simple gRPC service using `roto`. + +## Running the server + +```bash +cargo run --bin server +``` + +## Calling the service + +You can use `grpc_cli` to call the `HelloWorld` RPC: + +```bash +grpc_cli call [::1]:50051 hello.HelloWorldService.HelloWorld 'name: "World"' \ + --protofiles examples/hello_world/proto/hello.proto \ + --proto_path examples/hello_world/proto \ + --channel_creds_type insecure +```