Add tls example with rustls

This commit is contained in:
Lucio Franco
2019-09-29 19:45:05 -04:00
parent 2c2b7d7904
commit a8ef9d6c42
6 changed files with 185 additions and 1 deletions
+9 -1
View File
@@ -36,8 +36,16 @@ path = "src/load_balance/client.rs"
name = "load-balance-server"
path = "src/load_balance/server.rs"
[[bin]]
name = "tls-client"
path = "src/tls/client.rs"
[[bin]]
name = "tls-server"
path = "src/tls/server.rs"
[dependencies]
tonic = { path = "../tonic" }
tonic = { path = "../tonic", features = ["rustls"] }
futures-preview = { version = "=0.3.0-alpha.18", default-features = false, features = ["alloc"]}
tokio = "=0.2.0-alpha.4"
prost = "0.5"