Browse Source

The futures crate is only needed when async is enabled

Alessandro Decina 4 years ago
parent
commit
f1da541234
1 changed files with 2 additions and 2 deletions
  1. 2 2
      aya/Cargo.toml

+ 2 - 2
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"]