From f1da5412342e6839e80555912f08a13a9e3a976c Mon Sep 17 00:00:00 2001 From: Alessandro Decina Date: Sat, 13 Feb 2021 09:54:23 +0000 Subject: [PATCH] The futures crate is only needed when async is enabled --- aya/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aya/Cargo.toml b/aya/Cargo.toml index fe8ab69b..b2fb954f 100644 --- a/aya/Cargo.toml +++ b/aya/Cargo.toml @@ -11,7 +11,7 @@ object = "0.23" bytes = "1" lazy_static = "1" parking_lot = { version = "0.11.1", features = ["send_guard"] } -futures = "0.3.12" +futures = { version = "0.3.12", optional = true } tokio = { version = "1.2.0", features = ["macros", "rt", "rt-multi-thread", "net"], optional = true } async-std = { version = "1.9.0", optional = true } async-io = { version = "1.3", optional = true } @@ -21,6 +21,6 @@ matches = "0.1.8" [features] default = [] -async = [] +async = ["futures"] async_tokio = ["tokio", "async"] async_std = ["async-std", "async-io", "async"] \ No newline at end of file