Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 1 | [package] |
| 2 | name = "futures-util" |
| 3 | edition = "2018" |
Joel Galenson | 1fdff8f | 2021-04-01 16:17:54 -0700 | [diff] [blame] | 4 | version = "0.3.13" |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 5 | authors = ["Alex Crichton <alex@alexcrichton.com>"] |
| 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" |
Haibo Huang | 5bf8796 | 2021-02-09 17:18:40 -0800 | [diff] [blame] | 9 | documentation = "https://docs.rs/futures-util/0.3" |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 10 | description = """ |
| 11 | Common utilities and extension traits for the futures-rs library. |
| 12 | """ |
| 13 | |
| 14 | [features] |
| 15 | default = ["std", "async-await", "async-await-macro"] |
| 16 | std = ["alloc", "futures-core/std", "futures-task/std", "slab"] |
| 17 | alloc = ["futures-core/alloc", "futures-task/alloc"] |
| 18 | async-await = [] |
| 19 | async-await-macro = ["async-await", "futures-macro", "proc-macro-hack", "proc-macro-nested"] |
| 20 | compat = ["std", "futures_01"] |
| 21 | io-compat = ["io", "compat", "tokio-io"] |
| 22 | sink = ["futures-sink"] |
| 23 | io = ["std", "futures-io", "memchr"] |
| 24 | channel = ["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. |
| 29 | unstable = ["futures-core/unstable", "futures-task/unstable"] |
| 30 | cfg-target-has-atomic = ["futures-core/cfg-target-has-atomic", "futures-task/cfg-target-has-atomic"] |
| 31 | bilock = [] |
| 32 | read-initializer = ["io", "futures-io/read-initializer", "futures-io/unstable"] |
Haibo Huang | 52627c8 | 2020-05-08 19:26:17 -0700 | [diff] [blame] | 33 | write-all-vectored = ["io"] |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 34 | |
| 35 | [dependencies] |
Joel Galenson | 1fdff8f | 2021-04-01 16:17:54 -0700 | [diff] [blame] | 36 | futures-core = { path = "../futures-core", version = "0.3.13", default-features = false } |
| 37 | futures-task = { path = "../futures-task", version = "0.3.13", default-features = false } |
| 38 | futures-channel = { path = "../futures-channel", version = "0.3.13", default-features = false, features = ["std"], optional = true } |
| 39 | futures-io = { path = "../futures-io", version = "0.3.13", default-features = false, features = ["std"], optional = true } |
| 40 | futures-sink = { path = "../futures-sink", version = "0.3.13", default-features = false, optional = true } |
| 41 | futures-macro = { path = "../futures-macro", version = "=0.3.13", default-features = false, optional = true } |
Haibo Huang | 5bf8796 | 2021-02-09 17:18:40 -0800 | [diff] [blame] | 42 | proc-macro-hack = { version = "0.5.19", optional = true } |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 43 | proc-macro-nested = { version = "0.1.2", optional = true } |
Haibo Huang | 52627c8 | 2020-05-08 19:26:17 -0700 | [diff] [blame] | 44 | slab = { version = "0.4.2", optional = true } |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 45 | memchr = { version = "2.2", optional = true } |
| 46 | futures_01 = { version = "0.1.25", optional = true, package = "futures" } |
| 47 | tokio-io = { version = "0.1.9", optional = true } |
Haibo Huang | 52627c8 | 2020-05-08 19:26:17 -0700 | [diff] [blame] | 48 | pin-utils = "0.1.0" |
Haibo Huang | 5bf8796 | 2021-02-09 17:18:40 -0800 | [diff] [blame] | 49 | pin-project-lite = "0.2.4" |
| 50 | |
| 51 | [dev-dependencies] |
| 52 | futures = { path = "../futures", features = ["async-await", "thread-pool"] } |
| 53 | futures-test = { path = "../futures-test" } |
| 54 | tokio = "0.1.11" |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 55 | |
| 56 | [package.metadata.docs.rs] |
| 57 | all-features = true |
Chih-Hung Hsieh | d45e96e | 2020-10-25 23:16:22 -0700 | [diff] [blame] | 58 | rustdoc-args = ["--cfg", "docsrs"] |