blob: b7cc19370e82b24efa16b6712ea04f1628dad617 [file] [log] [blame]
Jason Macnakc417d3b2020-04-06 10:30:28 -07001[package]
2name = "futures-util"
3edition = "2018"
Joel Galenson1fdff8f2021-04-01 16:17:54 -07004version = "0.3.13"
Jason Macnakc417d3b2020-04-06 10:30:28 -07005authors = ["Alex Crichton <alex@alexcrichton.com>"]
6license = "MIT OR Apache-2.0"
7repository = "https://github.com/rust-lang/futures-rs"
8homepage = "https://rust-lang.github.io/futures-rs"
Haibo Huang5bf87962021-02-09 17:18:40 -08009documentation = "https://docs.rs/futures-util/0.3"
Jason Macnakc417d3b2020-04-06 10:30:28 -070010description = """
11Common utilities and extension traits for the futures-rs library.
12"""
13
14[features]
15default = ["std", "async-await", "async-await-macro"]
16std = ["alloc", "futures-core/std", "futures-task/std", "slab"]
17alloc = ["futures-core/alloc", "futures-task/alloc"]
18async-await = []
19async-await-macro = ["async-await", "futures-macro", "proc-macro-hack", "proc-macro-nested"]
20compat = ["std", "futures_01"]
21io-compat = ["io", "compat", "tokio-io"]
22sink = ["futures-sink"]
23io = ["std", "futures-io", "memchr"]
24channel = ["std", "futures-channel"]
25
26# Unstable features
27# These features are outside of the normal semver guarantees and require the
28# `unstable` feature as an explicit opt-in to unstable API.
29unstable = ["futures-core/unstable", "futures-task/unstable"]
30cfg-target-has-atomic = ["futures-core/cfg-target-has-atomic", "futures-task/cfg-target-has-atomic"]
31bilock = []
32read-initializer = ["io", "futures-io/read-initializer", "futures-io/unstable"]
Haibo Huang52627c82020-05-08 19:26:17 -070033write-all-vectored = ["io"]
Jason Macnakc417d3b2020-04-06 10:30:28 -070034
35[dependencies]
Joel Galenson1fdff8f2021-04-01 16:17:54 -070036futures-core = { path = "../futures-core", version = "0.3.13", default-features = false }
37futures-task = { path = "../futures-task", version = "0.3.13", default-features = false }
38futures-channel = { path = "../futures-channel", version = "0.3.13", default-features = false, features = ["std"], optional = true }
39futures-io = { path = "../futures-io", version = "0.3.13", default-features = false, features = ["std"], optional = true }
40futures-sink = { path = "../futures-sink", version = "0.3.13", default-features = false, optional = true }
41futures-macro = { path = "../futures-macro", version = "=0.3.13", default-features = false, optional = true }
Haibo Huang5bf87962021-02-09 17:18:40 -080042proc-macro-hack = { version = "0.5.19", optional = true }
Jason Macnakc417d3b2020-04-06 10:30:28 -070043proc-macro-nested = { version = "0.1.2", optional = true }
Haibo Huang52627c82020-05-08 19:26:17 -070044slab = { version = "0.4.2", optional = true }
Jason Macnakc417d3b2020-04-06 10:30:28 -070045memchr = { version = "2.2", optional = true }
46futures_01 = { version = "0.1.25", optional = true, package = "futures" }
47tokio-io = { version = "0.1.9", optional = true }
Haibo Huang52627c82020-05-08 19:26:17 -070048pin-utils = "0.1.0"
Haibo Huang5bf87962021-02-09 17:18:40 -080049pin-project-lite = "0.2.4"
50
51[dev-dependencies]
52futures = { path = "../futures", features = ["async-await", "thread-pool"] }
53futures-test = { path = "../futures-test" }
54tokio = "0.1.11"
Jason Macnakc417d3b2020-04-06 10:30:28 -070055
56[package.metadata.docs.rs]
57all-features = true
Chih-Hung Hsiehd45e96e2020-10-25 23:16:22 -070058rustdoc-args = ["--cfg", "docsrs"]