Upgrade to Tokio 1.0.0 ecosystem (#530)

* Upgrade Tonic to Tokio 1.0

Work in progress for updating Tonic to Tokio 1.0. Since tower has not
been released to crates.io, a git dependency is taken instead.

* Upgrade Tonic to Tokio 1.0 phase 2

* tonic: remove tower-* deps

* Apply suggestions from code review

Co-authored-by: Ed Marshall <[email protected]>
Co-authored-by: Lucio Franco <[email protected]>
This commit is contained in:
Quentin Perez
2021-01-11 12:18:34 -05:00
committed by GitHub
co-authored by Ed Marshall Lucio Franco
parent fe4d5b9d9a
commit fdda5ae26a
42 changed files with 185 additions and 185 deletions
+8 -5
View File
@@ -18,12 +18,15 @@ default = ["transport"]
transport = ["tonic/transport"]
[dependencies]
tokio = { version = "0.2", features = ["sync", "stream"] }
tonic = { version = "0.3", path = "../tonic", features = ["codegen", "prost"] }
prost = "0.6"
tokio = { version = "1.0", features = ["sync"] }
tonic = { path = "../tonic", features = ["codegen", "prost"] }
bytes = "1.0"
prost = "0.7"
tokio-stream = "0.1"
async-stream = "0.3"
[dev-dependencies]
tokio = { version = "0.2", features = ["rt-core", "macros"]}
tokio = { version = "1.0", features = ["rt-multi-thread", "macros"]}
[build-dependencies]
tonic-build = { version = "0.3", path = "../tonic-build" }
tonic-build = { path = "../tonic-build" }