chore(docs): Add hyper example (#267)

Signed-off-by: Lucio Franco <[email protected]>
This commit is contained in:
Lucio Franco
2020-02-16 12:46:55 -05:00
committed by GitHub
parent 4f343eb980
commit b49ad9bb47
3 changed files with 98 additions and 0 deletions
+10
View File
@@ -94,6 +94,14 @@ path = "src/interceptor/client.rs"
name = "interceptor-server"
path = "src/interceptor/server.rs"
[[bin]]
name = "hyper-client"
path = "src/hyper/client.rs"
[[bin]]
name = "hyper-server"
path = "src/hyper/server.rs"
[dependencies]
tonic = { path = "../tonic", features = ["tls"] }
prost = "0.6"
@@ -112,6 +120,8 @@ tracing-attributes = "0.1"
tracing-futures = "0.2"
# Required for wellknown types
prost-types = "0.6"
# Hyper example
hyper = "0.13"
[build-dependencies]
tonic-build = { path = "../tonic-build" }