Crates.io | helloworld-tonic-bsr |
lib.rs | helloworld-tonic-bsr |
version | 0.3.0 |
source | src |
created_at | 2023-10-22 08:35:53.308981 |
updated_at | 2023-10-27 01:02:22.087676 |
description | A Rust-based protobuf/gRPC example using buf.Build BSR. |
homepage | https://www.abitofhelp.com |
repository | https://github.com/abitofhelp/helloworld-tonic-bsr.git |
max_upload_size | |
id | 1010448 |
size | 71,625 |
A Rust-based protobuf/gRPC example using buf.Build BSR. Please visit the repository to view the complete solution: client, server, and lib.
grpcurl -plaintext -import-path "./proto/helloworld/v1" -proto helloworld.proto -d '{"name": "Tonic"}' '[::1]:50051' helloworld.v1.GreeterService/SayHello
{ "message": "Hello Tonic!" }
grpcurl --plaintext --import-path "./proto/helloworld/v1" -proto helloworld.proto describe helloworld.v1.GreeterService
helloworld.v1.GreeterService is a service:
service GreeterService {
rpc SayHello ( .helloworld.v1.SayHelloRequest ) returns ( .helloworld.v1.SayHelloResponse );
}