chore: update tonic and tokio version (#158)

Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
Gaius 2023-07-27 15:06:05 +08:00 committed by GitHub
parent e6ce870de8
commit 3b47185f98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 7 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "dragonfly-api"
version = "2.0.10"
version = "2.0.11"
authors = ["Gaius <gaius.qi@gmail.com>"]
edition = "2021"
license = "Apache-2.0"
@ -11,10 +11,10 @@ readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
tonic = "0.9.0"
tonic = "0.9.2"
prost = "0.11"
prost-types = "0.11"
tokio = { version = "1.27.0", features = ["rt-multi-thread", "macros"] }
tokio = { version = "1.28.1", features = ["rt-multi-thread", "macros"] }
[build-dependencies]
tonic-build = "0.9.0"
tonic-build = "0.9.2"

View File

@ -1,10 +1,8 @@
fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
.file_descriptor_set_path("src/descriptor.bin")
.build_client(true)
.build_server(true)
.out_dir("src")
.protoc_arg("--experimental_allow_proto3_optional")
.out_dir("src")
.compile(
&[
"proto/common.proto",