chore(example): Autoreloading server example (#316)

* Create an example of an autoreloading server

* Document the autoreloading server example

* Format autoreloading server example

* Add note about cargo-watch in the examples readme
This commit is contained in:
thisKai
2020-04-09 17:55:53 -04:00
committed by GitHub
parent d2ad8df629
commit f6ecaff0de
3 changed files with 65 additions and 0 deletions
+5
View File
@@ -106,6 +106,10 @@ path = "src/hyper_warp/server.rs"
name = "health-server"
path = "src/health/server.rs"
[[bin]]
name = "autoreload-server"
path = "src/autoreload/server.rs"
[dependencies]
tonic = { path = "../tonic", features = ["tls"] }
prost = "0.6"
@@ -132,6 +136,7 @@ http-body = "0.3"
pin-project = "0.4"
# Health example
tonic-health = { path = "../tonic-health" }
listenfd = "0.3"
[build-dependencies]
tonic-build = { path = "../tonic-build", features = ["prost"] }