chore(docs): Bump tonic versions in tutorials (#96)

This commit is contained in:
Matt Conway
2019-10-26 22:44:01 -04:00
committed by Lucio Franco
parent eea3c0f99a
commit af5754bd43
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -116,14 +116,14 @@ name = "helloworld-client"
path = "src/client.rs"
[dependencies]
tonic = "0.1.0-alpha.3"
tonic = "0.1.0-alpha.4"
bytes = "0.4"
prost = "0.5"
prost-derive = "0.5"
tokio = "=0.2.0-alpha.6"
[build-dependencies]
tonic-build = "0.1.0-alpha.3"
tonic-build = "0.1.0-alpha.4"
```
We include `tonic-build` as a useful way to incorporate the generation of our client and server gRPC code into the build process of our application. We will setup this build process now:
+2 -2
View File
@@ -192,10 +192,10 @@ serde_json = "1.0"
prost = "0.5"
rand = "0.7.2"
tokio = "0.2.0-alpha.6"
tonic = "0.1.0-alpha.3"
tonic = "0.1.0-alpha.4"
[build-dependencies]
tonic-build = "0.1.0-alpha.3"
tonic-build = "0.1.0-alpha.4"
```
Create a `build.rs` file at the root of your crate: