浏览代码

The futures crate is only needed when async is enabled

Alessandro Decina 4 年之前
父节点
当前提交
f1da541234
共有 1 个文件被更改,包括 2 次插入2 次删除
  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"]