xref: /tonic/examples/README.md (revision 3a5c66d5)
1# Examples
2
3Set of examples that show off the features provided by `tonic`.
4
5## Helloworld
6
7### Client
8
9```bash
10$ cargo run --bin helloworld-client
11```
12
13### Server
14
15```bash
16$ cargo run --bin helloworld-server
17```
18
19## RouteGuide
20
21### Client
22
23```bash
24$ cargo run --bin routeguide-client
25```
26
27### Server
28
29```bash
30$ cargo run --bin routeguide-server
31```
32
33## Authentication
34
35### Client
36
37```bash
38$ cargo run --bin authentication-client
39```
40
41### Server
42
43```bash
44$ cargo run --bin authentication-server
45```
46
47## Load balance
48
49### Client
50
51```bash
52$ cargo run --bin load-balance-client
53```
54
55### Server
56
57```bash
58$ cargo run --bin load-balance-server
59```
60
61## TLS (rustls)
62
63### Client
64
65```bash
66$ cargo run --bin tls-client
67```
68
69### Server
70
71```bash
72$ cargo run --bin tls-server
73```
74
75
76### Notes:
77
78If you are using the `codegen` feature, then the following dependencies are
79**required**:
80
81* [bytes](https://crates.io/crates/bytes)
82* [prost](https://crates.io/crates/prost)
83* [prost-derive](https://crates.io/crates/prost-derive)
84
85