From ae20cf1f6b53d5a5df72d4d5b314bb629bd734dc Mon Sep 17 00:00:00 2001 From: Andrey Brusnik Date: Sat, 24 Aug 2024 17:15:00 +0400 Subject: [PATCH] Explicitly depend on tokio 1.39 and enable `io-util` feature for tokio in teloxide-core --- crates/teloxide-core/Cargo.toml | 2 +- crates/teloxide/Cargo.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/teloxide-core/Cargo.toml b/crates/teloxide-core/Cargo.toml index 4a7253d6..e3d1fdd3 100644 --- a/crates/teloxide-core/Cargo.toml +++ b/crates/teloxide-core/Cargo.toml @@ -49,7 +49,7 @@ full = ["throttle", "trace_adaptor", "erased", "cache_me"] [dependencies] futures = "0.3.5" -tokio = { version = "1.12.0", features = ["fs"] } +tokio = { version = "1.39", features = ["fs", "io-util"] } tokio-util = { version = "0.7.0", features = ["codec"] } pin-project = "1.0.12" bytes = "1.0.0" diff --git a/crates/teloxide/Cargo.toml b/crates/teloxide/Cargo.toml index 71324730..9c46a1e9 100644 --- a/crates/teloxide/Cargo.toml +++ b/crates/teloxide/Cargo.toml @@ -89,7 +89,7 @@ dptree = "0.3.0" # Uncomment this if you want to test teloxide with a specific dptree commit # dptree = { git = "https://github.com/teloxide/dptree", rev = "df578e4" } -tokio = { version = "1.8", features = ["fs"] } +tokio = { version = "1.39", features = ["fs"] } tokio-util = "0.7" tokio-stream = "0.1.8" @@ -123,7 +123,7 @@ rand = "0.8.3" pretty_env_logger = "0.5.0" serde = "1" serde_json = "1" -tokio = { version = "1.8", features = ["fs", "rt-multi-thread", "macros"] } +tokio = { version = "1.39", features = ["fs", "rt-multi-thread", "macros"] } reqwest = "0.12.7" chrono = "0.4" tokio-stream = "0.1"