Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 1 | [package] |
| 2 | name = "futures-util" |
David LeGare | 737dc97 | 2022-03-02 16:21:21 +0000 | [diff] [blame] | 3 | version = "0.3.21" |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 4 | edition = "2018" |
David LeGare | 737dc97 | 2022-03-02 16:21:21 +0000 | [diff] [blame] | 5 | rust-version = "1.45" |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 6 | license = "MIT OR Apache-2.0" |
| 7 | repository = "https://github.com/rust-lang/futures-rs" |
| 8 | homepage = "https://rust-lang.github.io/futures-rs" |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 9 | description = """ |
| 10 | Common utilities and extension traits for the futures-rs library. |
| 11 | """ |
| 12 | |
| 13 | [features] |
| 14 | default = ["std", "async-await", "async-await-macro"] |
| 15 | std = ["alloc", "futures-core/std", "futures-task/std", "slab"] |
| 16 | alloc = ["futures-core/alloc", "futures-task/alloc"] |
| 17 | async-await = [] |
David LeGare | 737dc97 | 2022-03-02 16:21:21 +0000 | [diff] [blame] | 18 | async-await-macro = ["async-await", "futures-macro"] |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 19 | compat = ["std", "futures_01"] |
| 20 | io-compat = ["io", "compat", "tokio-io"] |
| 21 | sink = ["futures-sink"] |
| 22 | io = ["std", "futures-io", "memchr"] |
| 23 | channel = ["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. |
| 28 | unstable = ["futures-core/unstable", "futures-task/unstable"] |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 29 | bilock = [] |
Haibo Huang | 52627c8 | 2020-05-08 19:26:17 -0700 | [diff] [blame] | 30 | write-all-vectored = ["io"] |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 31 | |
Joel Galenson | 7a98302 | 2021-05-19 15:35:43 -0700 | [diff] [blame] | 32 | # These features are no longer used. |
| 33 | # TODO: remove in the next major version. |
| 34 | cfg-target-has-atomic = [] |
| 35 | |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 36 | [dependencies] |
David LeGare | 737dc97 | 2022-03-02 16:21:21 +0000 | [diff] [blame] | 37 | futures-core = { path = "../futures-core", version = "0.3.21", default-features = false } |
| 38 | futures-task = { path = "../futures-task", version = "0.3.21", default-features = false } |
| 39 | futures-channel = { path = "../futures-channel", version = "0.3.21", default-features = false, features = ["std"], optional = true } |
| 40 | futures-io = { path = "../futures-io", version = "0.3.21", default-features = false, features = ["std"], optional = true } |
| 41 | futures-sink = { path = "../futures-sink", version = "0.3.21", default-features = false, optional = true } |
| 42 | futures-macro = { path = "../futures-macro", version = "=0.3.21", default-features = false, optional = true } |
Haibo Huang | 52627c8 | 2020-05-08 19:26:17 -0700 | [diff] [blame] | 43 | slab = { version = "0.4.2", optional = true } |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 44 | memchr = { version = "2.2", optional = true } |
| 45 | futures_01 = { version = "0.1.25", optional = true, package = "futures" } |
| 46 | tokio-io = { version = "0.1.9", optional = true } |
Haibo Huang | 52627c8 | 2020-05-08 19:26:17 -0700 | [diff] [blame] | 47 | pin-utils = "0.1.0" |
Haibo Huang | 5bf8796 | 2021-02-09 17:18:40 -0800 | [diff] [blame] | 48 | pin-project-lite = "0.2.4" |
| 49 | |
| 50 | [dev-dependencies] |
| 51 | futures = { path = "../futures", features = ["async-await", "thread-pool"] } |
| 52 | futures-test = { path = "../futures-test" } |
| 53 | tokio = "0.1.11" |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 54 | |
| 55 | [package.metadata.docs.rs] |
| 56 | all-features = true |
Chih-Hung Hsieh | d45e96e | 2020-10-25 23:16:22 -0700 | [diff] [blame] | 57 | rustdoc-args = ["--cfg", "docsrs"] |