From e08a271eb93711f7209da98ab6261851f92da235 Mon Sep 17 00:00:00 2001 From: Bastien Orivel Date: Sat, 18 Apr 2020 17:18:28 +0200 Subject: [PATCH] chore(dependencies): Force tokio to be at least 0.2.5 (#2186) Without this, you can end up with tokio 0.2.4 and hyper 0.13.5 in your project, leading to a compile error like this: ``` error[E0599]: no method named `try_recv` found for struct `tokio::sync::mpsc::unbounded::UnboundedReceiver>` in the current scope --> src/client/dispatch.rs:161:26 | 161 | match self.inner.try_recv() { | ^^^^^^^^ method not found in `tokio::sync::mpsc::unbounded::UnboundedReceiver>` error: aborting due to previous error For more information about this error, try `rustc --explain E0599`. error: could not compile `hyper`. ``` --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 578a9280..6d3e6825 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ log = "0.4" pin-project = "0.4" time = "0.1" tower-service = "0.3" -tokio = { version = "0.2", features = ["sync"] } +tokio = { version = "0.2.5", features = ["sync"] } want = "0.3" # Optional