mirror of https://github.com/dragonflyoss/api.git
chore: update tonic and tokio version (#158)
Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
parent
e6ce870de8
commit
3b47185f98
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "dragonfly-api"
|
name = "dragonfly-api"
|
||||||
version = "2.0.10"
|
version = "2.0.11"
|
||||||
authors = ["Gaius <gaius.qi@gmail.com>"]
|
authors = ["Gaius <gaius.qi@gmail.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "Apache-2.0"
|
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
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
[dependencies]
|
[dependencies]
|
||||||
tonic = "0.9.0"
|
tonic = "0.9.2"
|
||||||
prost = "0.11"
|
prost = "0.11"
|
||||||
prost-types = "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]
|
[build-dependencies]
|
||||||
tonic-build = "0.9.0"
|
tonic-build = "0.9.2"
|
||||||
|
|
4
build.rs
4
build.rs
|
@ -1,10 +1,8 @@
|
||||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
tonic_build::configure()
|
tonic_build::configure()
|
||||||
.file_descriptor_set_path("src/descriptor.bin")
|
.file_descriptor_set_path("src/descriptor.bin")
|
||||||
.build_client(true)
|
|
||||||
.build_server(true)
|
|
||||||
.out_dir("src")
|
|
||||||
.protoc_arg("--experimental_allow_proto3_optional")
|
.protoc_arg("--experimental_allow_proto3_optional")
|
||||||
|
.out_dir("src")
|
||||||
.compile(
|
.compile(
|
||||||
&[
|
&[
|
||||||
"proto/common.proto",
|
"proto/common.proto",
|
||||||
|
|
Loading…
Reference in New Issue