blob: 46ec854b04aa74f10ba2b048d57d7e4c94664526 [file] [log] [blame]
Jason Macnakc417d3b2020-04-06 10:30:28 -07001[package]
2name = "futures-util"
David LeGare737dc972022-03-02 16:21:21 +00003version = "0.3.21"
Jason Macnakc417d3b2020-04-06 10:30:28 -07004edition = "2018"
David LeGare737dc972022-03-02 16:21:21 +00005rust-version = "1.45"
Jason Macnakc417d3b2020-04-06 10:30:28 -07006license = "MIT OR Apache-2.0"
7repository = "https://github.com/rust-lang/futures-rs"
8homepage = "https://rust-lang.github.io/futures-rs"
Jason Macnakc417d3b2020-04-06 10:30:28 -07009description = """
10Common utilities and extension traits for the futures-rs library.
11"""
12
13[features]
14default = ["std", "async-await", "async-await-macro"]
15std = ["alloc", "futures-core/std", "futures-task/std", "slab"]
16alloc = ["futures-core/alloc", "futures-task/alloc"]
17async-await = []
David LeGare737dc972022-03-02 16:21:21 +000018async-await-macro = ["async-await", "futures-macro"]
Jason Macnakc417d3b2020-04-06 10:30:28 -070019compat = ["std", "futures_01"]
20io-compat = ["io", "compat", "tokio-io"]
21sink = ["futures-sink"]
22io = ["std", "futures-io", "memchr"]
23channel = ["std", "futures-channel"]
24
25# Unstable features
26# These features are outside of the normal semver guarantees and require the
27# `unstable` feature as an explicit opt-in to unstable API.
28unstable = ["futures-core/unstable", "futures-task/unstable"]
Jason Macnakc417d3b2020-04-06 10:30:28 -070029bilock = []
Haibo Huang52627c82020-05-08 19:26:17 -070030write-all-vectored = ["io"]
Jason Macnakc417d3b2020-04-06 10:30:28 -070031
Joel Galenson7a983022021-05-19 15:35:43 -070032# These features are no longer used.
33# TODO: remove in the next major version.
34cfg-target-has-atomic = []
35
Jason Macnakc417d3b2020-04-06 10:30:28 -070036[dependencies]
David LeGare737dc972022-03-02 16:21:21 +000037futures-core = { path = "../futures-core", version = "0.3.21", default-features = false }
38futures-task = { path = "../futures-task", version = "0.3.21", default-features = false }
39futures-channel = { path = "../futures-channel", version = "0.3.21", default-features = false, features = ["std"], optional = true }
40futures-io = { path = "../futures-io", version = "0.3.21", default-features = false, features = ["std"], optional = true }
41futures-sink = { path = "../futures-sink", version = "0.3.21", default-features = false, optional = true }
42futures-macro = { path = "../futures-macro", version = "=0.3.21", default-features = false, optional = true }
Haibo Huang52627c82020-05-08 19:26:17 -070043slab = { version = "0.4.2", optional = true }
Jason Macnakc417d3b2020-04-06 10:30:28 -070044memchr = { version = "2.2", optional = true }
45futures_01 = { version = "0.1.25", optional = true, package = "futures" }
46tokio-io = { version = "0.1.9", optional = true }
Haibo Huang52627c82020-05-08 19:26:17 -070047pin-utils = "0.1.0"
Haibo Huang5bf87962021-02-09 17:18:40 -080048pin-project-lite = "0.2.4"
49
50[dev-dependencies]
51futures = { path = "../futures", features = ["async-await", "thread-pool"] }
52futures-test = { path = "../futures-test" }
53tokio = "0.1.11"
Jason Macnakc417d3b2020-04-06 10:30:28 -070054
55[package.metadata.docs.rs]
56all-features = true
Chih-Hung Hsiehd45e96e2020-10-25 23:16:22 -070057rustdoc-args = ["--cfg", "docsrs"]