From 1f1976f8bf8531daf4ac596d83ea7ad589dd7368 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Thu, 27 May 2021 15:25:57 -0700 Subject: [PATCH] Avoid Tokio 1.6 due to tokio-rs/tokio#3803. --- contrib/sync_db_pools/lib/Cargo.toml | 2 +- core/http/Cargo.toml | 2 +- core/lib/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/sync_db_pools/lib/Cargo.toml b/contrib/sync_db_pools/lib/Cargo.toml index e6cff0cf..24b3d5d1 100644 --- a/contrib/sync_db_pools/lib/Cargo.toml +++ b/contrib/sync_db_pools/lib/Cargo.toml @@ -19,7 +19,7 @@ memcache_pool = ["memcache", "r2d2-memcache"] [dependencies] r2d2 = "0.8" -tokio = { version = "1.4", features = ["rt", "rt-multi-thread"] } +tokio = { version = ">=1.4,<1.6", features = ["rt", "rt-multi-thread"] } serde = { version = "1.0", features = ["derive"] } diesel = { version = "1.0", default-features = false, optional = true } diff --git a/core/http/Cargo.toml b/core/http/Cargo.toml index 7fa3c214..d5fde3b1 100644 --- a/core/http/Cargo.toml +++ b/core/http/Cargo.toml @@ -29,7 +29,7 @@ mime = "0.3.13" time = "0.2.11" indexmap = { version = "1.5.2", features = ["std"] } tokio-rustls = { version = "0.22.0", optional = true } -tokio = { version = "1.0", features = ["net", "sync", "time"] } +tokio = { version = ">=1.4,<1.6", features = ["net", "sync", "time"] } log = "0.4" ref-cast = "1.0" uncased = "0.9.6" diff --git a/core/lib/Cargo.toml b/core/lib/Cargo.toml index bc4ff321..90d54439 100644 --- a/core/lib/Cargo.toml +++ b/core/lib/Cargo.toml @@ -70,7 +70,7 @@ path = "../http" features = ["serde"] [dependencies.tokio] -version = "1.0" +version = ">=1.4,<1.6" features = ["fs", "io-std", "io-util", "rt-multi-thread", "sync", "signal", "macros"] [dependencies.tokio-util]