A gRPC example, comes from gRPC tutorials.
- You must have Google's Protocol Buffer compiler (
protoc
) installed and inPATH
.
You can install protobuf (include protoc
) in macOS using below command:
brew install protobuf
You can inspect this example by compiling and running the example server in one shell session:
cargo run --bin server
Finished dev [unoptimized + debuginfo] target(s) in 0.18s
Running `target/debug/server`
listening on 127.0.0.1:8980
And then running the client in another:
cargo run --bin client
Finished dev [unoptimized + debuginfo] target(s) in 0.13s
Running `target/debug/client 59519`
...