From 2fd607bea2c16b781770cd785f4f0eba7be24abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erwan=20de=20L=C3=A9pinau?= Date: Wed, 16 Jun 2021 18:31:15 +0200 Subject: [PATCH] Add proper tokio features to Cargo.toml "rt-core" is required by `tokio::spawn`, "io-util" is required by `tokio::io::copy` --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 38dca95..55513d0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ edition = "2018" [dependencies] log = "0.4" pin-project-lite = "0.1.4" -tokio = { version = "0.2", features= [] } +tokio = { version = "0.2", features = ["rt-core", "io-util"] } async-pipe = "0.1" http-body = "0.3" bytes = "0.5" @@ -22,4 +22,4 @@ http = "0.2" [dev-dependencies] hyper = "0.13" -tokio = { version = "0.2", features = ["full"] } \ No newline at end of file +tokio = { version = "0.2", features = ["full"] }