Crates.io | grpc-protobuf |
lib.rs | grpc-protobuf |
version | 0.8.3 |
source | src |
created_at | 2020-04-27 00:58:30.042532 |
updated_at | 2021-03-28 23:08:49.971147 |
description | Protobuf marshaller for gRPC |
homepage | |
repository | https://github.com/stepancheg/grpc-rust |
max_upload_size | |
id | 234508 |
size | 2,560 |
Rust implementation of gRPC protocol, under development.
Some development questions in FAQ.
It basically works, but not suitable for production use.
See grpc-examples/src/bin/greeter_{client,server}.rs
. It can be tested
for example with go client:
# start greeter server implemented in rust
$ cargo run --bin greeter_server
# ... or start greeter server implemented in go
$ go get -u google.golang.org/grpc/examples/helloworld/greeter_client
$ greeter_server
# start greeter client implemented in rust
$ cargo run --bin greeter_client rust
> message: "Hello rust"
# ... or start greeter client implemented in go
$ go get -u google.golang.org/grpc/examples/helloworld/greeter_client
$ greeter_client rust
> 2016/08/19 05:44:45 Greeting: Hello rust
Route guide example implementation in grpc-rust is in grpc-examples folder.
There are two ways to generate rust code from .proto files
protoc-rust-grpc
crate(Recommended)
Have a look at readme in protoc-rust-grpc crate.
protoc
command and protoc-gen-rust-grpc
pluginIn Cargo.toml:
[dependencies]
grpc = "~0.7"
protobuf = "~2"
futures = "~0.3"
[build-dependencies]
protoc-rust-grpc = "~0.7"
interop
directory