Files
roto/examples/hello_world
charles 2806772fd1 feat: gate alloc/std features for no_std/no_alloc support
Gate generated code behind feature flags so consumers can build in
no_std/no_alloc environments:

- Runtime: gate RotoMessage, RotoOwned, BufMutBuilder behind alloc
- Codegen: split DATA_IMPORTS, gate Owned* structs + service code
- Fix RevBuilder::with() to iterate forward without Vec allocation
- Wire up bytes/std via alloc feature (Bytes requires Arc)
- Update consumer Cargo.toml files with proper feature chains
- Add no_std_test example for embedded validation
2026-06-30 01:40:13 -04:00
..
2026-05-20 08:09:11 -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