Files
roto/examples/hello_world
charles db2bf1bffd Implement buffer pooling in hello_world example
Introduce BufferPool to reuse BytesMut allocations for requests and
responses. Update AGENTS.md to require build and test success.
2026-05-13 09:45:27 -07:00
..
2026-05-12 13:44:53 -07:00
2026-05-12 13:44:53 -07:00
2026-05-12 13:44:53 -07:00
2026-05-12 14:16:27 -07:00

Hello World Example

This example demonstrates a simple gRPC service using roto.

Running the server

cargo run --bin server

Calling the service

You can use grpc_cli to call the HelloWorld RPC:

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