chore: Prepare 0.4 release (#538)

* Prepare `0.4` release

* Fix cargo issues
This commit is contained in:
Lucio Franco
2021-01-15 13:38:36 -05:00
committed by GitHub
parent a7778ad166
commit fda2d689d4
11 changed files with 53 additions and 18 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ tracing-futures = "0.2"
prost-types = "0.7"
# Hyper example
hyper = "0.14"
warp = { git = "https://github.com/aknuds1/warp", branch = "chore/upgrade-tokio", default-features = false }
warp = { git = "https://github.com/seanmonstar/warp", default-features = false }
http = "0.2"
http-body = "0.4"
pin-project = "1.0"
+3 -3
View File
@@ -113,12 +113,12 @@ name = "helloworld-client"
path = "src/client.rs"
[dependencies]
tonic = "0.3"
prost = "0.6"
tonic = "0.4"
prost = "0.7"
tokio = { version = "0.2", features = ["macros"] }
[build-dependencies]
tonic-build = "0.3"
tonic-build = "0.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:
+3 -3
View File
@@ -180,8 +180,8 @@ Edit `Cargo.toml` and add all the dependencies we'll need for this example:
```toml
[dependencies]
tonic = "0.3"
prost = "0.6"
tonic = "0.4"
prost = "0.7"
futures-core = "0.3"
futures-util = "0.3"
tokio = { version = "0.2", features = ["macros", "sync", "stream", "time"] }
@@ -192,7 +192,7 @@ serde_json = "1.0"
rand = "0.7"
[build-dependencies]
tonic-build = "0.3"
tonic-build = "0.4"
```
Create a `build.rs` file at the root of your crate: