chore: Add rustls examples (#968)

This commit is contained in:
Lucio Franco
2022-04-07 14:24:04 -04:00
committed by GitHub
parent 9e0d21f3eb
commit 03fb09ccb8
3 changed files with 241 additions and 0 deletions
+13
View File
@@ -54,10 +54,18 @@ path = "src/dynamic_load_balance/server.rs"
name = "tls-client"
path = "src/tls/client.rs"
[[bin]]
name = "tls-client-rustls"
path = "src/tls/client_rustls.rs"
[[bin]]
name = "tls-server"
path = "src/tls/server.rs"
[[bin]]
name = "tls-server-rustls"
path = "src/tls/server_rustls.rs"
[[bin]]
name = "tls-client-auth-server"
path = "src/tls_client_auth/server.rs"
@@ -214,6 +222,11 @@ tonic-web = { path = "../tonic-web" }
# streaming example
h2 = "0.3"
tokio-rustls = "*"
hyper-rustls = { version = "0.23", features = ["http2"] }
rustls-pemfile = "*"
tower-http = { version = "0.2", features = ["add-extension"] }
[build-dependencies]
tonic-build = { path = "../tonic-build", features = ["prost", "compression"] }