1 | [package] |
2 | name = "futures-util" |
3 | version = "0.3.30" |
4 | edition = "2018" |
5 | rust-version = "1.56" |
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" |
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 = [] |
18 | async-await-macro = ["async-await" , "futures-macro" ] |
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 | portable-atomic = ["futures-core/portable-atomic" ] |
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 | bilock = [] |
31 | write-all-vectored = ["io" ] |
32 | |
33 | # These features are no longer used. |
34 | # TODO: remove in the next major version. |
35 | cfg-target-has-atomic = [] |
36 | |
37 | [dependencies] |
38 | futures-core = { path = "../futures-core" , version = "0.3.30" , default-features = false } |
39 | futures-task = { path = "../futures-task" , version = "0.3.30" , default-features = false } |
40 | futures-channel = { path = "../futures-channel" , version = "0.3.30" , default-features = false, features = ["std" ], optional = true } |
41 | futures-io = { path = "../futures-io" , version = "0.3.30" , default-features = false, features = ["std" ], optional = true } |
42 | futures-sink = { path = "../futures-sink" , version = "0.3.30" , default-features = false, optional = true } |
43 | futures-macro = { path = "../futures-macro" , version = "=0.3.30" , default-features = false, optional = true } |
44 | slab = { version = "0.4.2" , optional = true } |
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 } |
48 | pin-utils = "0.1.0" |
49 | pin-project-lite = "0.2.6" |
50 | |
51 | [dev-dependencies] |
52 | futures = { path = "../futures" , features = ["async-await" , "thread-pool" ] } |
53 | futures-test = { path = "../futures-test" } |
54 | tokio = "0.1.11" |
55 | |
56 | [package.metadata.docs.rs] |
57 | all-features = true |
58 | rustdoc-args = ["--cfg" , "docsrs" ] |
59 | |