chore: Prepare 0.8 release (#1044)
This commit is contained in:
+2
-2
@@ -197,7 +197,7 @@ path = "src/json-codec/server.rs"
|
||||
[dependencies]
|
||||
async-stream = "0.3"
|
||||
futures = { version = "0.3", default-features = false, features = ["alloc"] }
|
||||
prost = "0.10"
|
||||
prost = "0.11"
|
||||
tokio = { version = "1.0", features = [ "rt-multi-thread", "time", "fs", "macros", "net",] }
|
||||
tokio-stream = { version = "0.1", features = ["net"] }
|
||||
tonic = { path = "../tonic", features = ["tls", "gzip"] }
|
||||
@@ -212,7 +212,7 @@ tracing-attributes = "0.1"
|
||||
tracing-futures = "0.2"
|
||||
tracing-subscriber = { version = "0.3", features = ["tracing-log"] }
|
||||
# Required for wellknown types
|
||||
prost-types = "0.10"
|
||||
prost-types = "0.11"
|
||||
# Hyper example
|
||||
http = "0.2"
|
||||
http-body = "0.4.2"
|
||||
|
||||
@@ -112,12 +112,12 @@ name = "helloworld-client"
|
||||
path = "src/client.rs"
|
||||
|
||||
[dependencies]
|
||||
tonic = "0.7"
|
||||
prost = "0.10"
|
||||
tonic = "0.8"
|
||||
prost = "0.11"
|
||||
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
|
||||
|
||||
[build-dependencies]
|
||||
tonic-build = "0.7"
|
||||
tonic-build = "0.8"
|
||||
```
|
||||
|
||||
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:
|
||||
|
||||
@@ -174,8 +174,8 @@ Edit `Cargo.toml` and add all the dependencies we'll need for this example:
|
||||
|
||||
```toml
|
||||
[dependencies]
|
||||
tonic = "0.7"
|
||||
prost = "0.10"
|
||||
tonic = "0.8"
|
||||
prost = "0.11"
|
||||
futures-core = "0.3"
|
||||
futures-util = "0.3"
|
||||
tokio = { version = "1.0", features = ["rt-multi-thread", "macros", "sync", "time"] }
|
||||
@@ -187,7 +187,7 @@ serde_json = "1.0"
|
||||
rand = "0.7"
|
||||
|
||||
[build-dependencies]
|
||||
tonic-build = "0.7"
|
||||
tonic-build = "0.8"
|
||||
```
|
||||
|
||||
Create a `build.rs` file at the root of your crate:
|
||||
|
||||
Reference in New Issue
Block a user