1 | [package] |
2 | name = "futures" |
3 | version = "0.3.30" |
4 | edition = "2018" |
5 | rust-version = "1.56" |
6 | license = "MIT OR Apache-2.0" |
7 | readme = "../README.md" |
8 | keywords = ["futures" , "async" , "future" ] |
9 | repository = "https://github.com/rust-lang/futures-rs" |
10 | homepage = "https://rust-lang.github.io/futures-rs" |
11 | description = "" " |
12 | An implementation of futures and streams featuring zero allocations, |
13 | composability, and iterator-like interfaces. |
14 | " "" |
15 | categories = ["asynchronous" ] |
16 | |
17 | [dependencies] |
18 | futures-core = { path = "../futures-core" , version = "0.3.30" , default-features = false } |
19 | futures-task = { path = "../futures-task" , version = "0.3.30" , default-features = false } |
20 | futures-channel = { path = "../futures-channel" , version = "0.3.30" , default-features = false, features = ["sink" ] } |
21 | futures-executor = { path = "../futures-executor" , version = "0.3.30" , default-features = false, optional = true } |
22 | futures-io = { path = "../futures-io" , version = "0.3.30" , default-features = false } |
23 | futures-sink = { path = "../futures-sink" , version = "0.3.30" , default-features = false } |
24 | futures-util = { path = "../futures-util" , version = "0.3.30" , default-features = false, features = ["sink" ] } |
25 | |
26 | [dev-dependencies] |
27 | futures-executor = { path = "../futures-executor" , features = ["thread-pool" ] } |
28 | futures-test = { path = "../futures-test" } |
29 | assert_matches = "1.3.0" |
30 | pin-project = "1.0.11" |
31 | pin-utils = "0.1.0" |
32 | static_assertions = "1" |
33 | tokio = "0.1.11" |
34 | |
35 | [features] |
36 | default = ["std" , "async-await" , "executor" ] |
37 | std = ["alloc" , "futures-core/std" , "futures-task/std" , "futures-io/std" , "futures-sink/std" , "futures-util/std" , "futures-util/io" , "futures-util/channel" ] |
38 | alloc = ["futures-core/alloc" , "futures-task/alloc" , "futures-sink/alloc" , "futures-channel/alloc" , "futures-util/alloc" ] |
39 | async-await = ["futures-util/async-await" , "futures-util/async-await-macro" ] |
40 | compat = ["std" , "futures-util/compat" ] |
41 | io-compat = ["compat" , "futures-util/io-compat" ] |
42 | executor = ["std" , "futures-executor/std" ] |
43 | thread-pool = ["executor" , "futures-executor/thread-pool" ] |
44 | |
45 | # Unstable features |
46 | # These features are outside of the normal semver guarantees and require the |
47 | # `unstable` feature as an explicit opt-in to unstable API. |
48 | unstable = ["futures-core/unstable" , "futures-task/unstable" , "futures-channel/unstable" , "futures-io/unstable" , "futures-util/unstable" ] |
49 | bilock = ["futures-util/bilock" ] |
50 | write-all-vectored = ["futures-util/write-all-vectored" ] |
51 | |
52 | # These features are no longer used. |
53 | # TODO: remove in the next major version. |
54 | cfg-target-has-atomic = [] |
55 | |
56 | [package.metadata.docs.rs] |
57 | all-features = true |
58 | rustdoc-args = ["--cfg" , "docsrs" ] |
59 | |
60 | [package.metadata.playground] |
61 | features = ["std" , "async-await" , "compat" , "io-compat" , "executor" , "thread-pool" ] |
62 | |