Files
tonic/tonic-examples
Adam HarveyandLucio Franco 48a69bb36b chore(examples): enable the macros feature for tokio::main (#166)
tokio 0.2 split out its macros into a feature that is disabled by
default, so we'll re-enable it to allow example builds to work once
more.
2019-12-06 19:51:59 -05:00
..
2019-12-06 00:09:46 -05:00
2019-10-03 16:09:39 -04:00

Examples

Set of examples that show off the features provided by tonic.

Helloworld

Client

$ cargo run --bin helloworld-client

Server

$ cargo run --bin helloworld-server

RouteGuide

Client

$ cargo run --bin routeguide-client

Server

$ cargo run --bin routeguide-server

Authentication

Client

$ cargo run --bin authentication-client

Server

$ cargo run --bin authentication-server

Load balance

Client

$ cargo run --bin load-balance-client

Server

$ cargo run --bin load-balance-server

TLS (rustls)

Client

$ cargo run --bin tls-client

Server

$ cargo run --bin tls-server

Notes:

If you are using the codegen feature, then the following dependencies are required: