| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2018" |
| 14 |
rust-version = "1.56" |
| 15 |
name = "futures-executor" |
| 16 |
version = "0.3.31" |
| 17 |
build = false |
| 18 |
autobins = false |
| 19 |
autoexamples = false |
| 20 |
autotests = false |
| 21 |
autobenches = false |
| 22 |
description = """ |
| 23 |
Executors for asynchronous tasks based on the futures-rs library. |
| 24 |
""" |
| 25 |
homepage = "https://rust-lang.github.io/futures-rs" |
| 26 |
readme = "README.md" |
| 27 |
license = "MIT OR Apache-2.0" |
| 28 |
repository = "https://github.com/rust-lang/futures-rs" |
| 29 |
|
| 30 |
[package.metadata.docs.rs] |
| 31 |
all-features = true |
| 32 |
rustdoc-args = [ |
| 33 |
"--cfg", |
| 34 |
"docsrs", |
| 35 |
] |
| 36 |
|
| 37 |
[lib] |
| 38 |
name = "futures_executor" |
| 39 |
path = "src/lib.rs" |
| 40 |
|
| 41 |
[[test]] |
| 42 |
name = "local_pool" |
| 43 |
path = "tests/local_pool.rs" |
| 44 |
|
| 45 |
[[bench]] |
| 46 |
name = "thread_notify" |
| 47 |
path = "benches/thread_notify.rs" |
| 48 |
|
| 49 |
[dependencies.futures-core] |
| 50 |
version = "0.3.31" |
| 51 |
default-features = false |
| 52 |
|
| 53 |
[dependencies.futures-task] |
| 54 |
version = "0.3.31" |
| 55 |
default-features = false |
| 56 |
|
| 57 |
[dependencies.futures-util] |
| 58 |
version = "0.3.31" |
| 59 |
default-features = false |
| 60 |
|
| 61 |
[dependencies.num_cpus] |
| 62 |
version = "1.8.0" |
| 63 |
optional = true |
| 64 |
|
| 65 |
[dev-dependencies] |
| 66 |
|
| 67 |
[features] |
| 68 |
default = ["std"] |
| 69 |
std = [ |
| 70 |
"futures-core/std", |
| 71 |
"futures-task/std", |
| 72 |
"futures-util/std", |
| 73 |
] |
| 74 |
thread-pool = [ |
| 75 |
"std", |
| 76 |
"num_cpus", |
| 77 |
] |
| 78 |
|
| 79 |
[lints.rust] |
| 80 |
missing_debug_implementations = "warn" |
| 81 |
rust_2018_idioms = "warn" |
| 82 |
single_use_lifetimes = "warn" |
| 83 |
unreachable_pub = "warn" |
| 84 |
|
| 85 |
[lints.rust.unexpected_cfgs] |
| 86 |
level = "warn" |
| 87 |
priority = 0 |
| 88 |
check-cfg = ["cfg(futures_sanitizer)"] |