forked from najamelan/async_executors
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
270 lines (220 loc) · 6.68 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
# When releasing to crates.io:
#
# - last check for all TODO, FIXME, expect, unwrap, todo!, unreachable!.
# - recheck log statements (informative, none left that were just for development, ...)
# - `cargo +nightly doc --no-deps --all-features --open` and re-read and final polish of documentation.
#
# - Update CHANGELOG.md.
# - Update version numbers in Cargo.yml, Cargo.toml, install section of readme.
#
# - `touch **.rs && cargo clippy --tests --examples --benches --all-features`
# - `cargo update`
# - `cargo outdated --root-deps-only`
# - `cargo audit`
# - `cargo udeps --all-targets --all-features`
# - `cargo crev crate verify --show-all --recursive` and review.
# - 'cargo test --all-targets --all-features'
#
# - push dev and verify CI result
# - check code coverage
# - `cargo test` on dependent crates
#
# - cargo publish
# - `git checkout master && git merge dev --no-ff`
# - `git tag x.x.x` with version number.
# - `git push && git push --tags`
#
[package]
version = "0.4.1"
name = "async_executors"
authors = ["Naja Melan <[email protected]>", "Jiangkun Qiu <[email protected]>"]
description = "Implements Spawn, SpawnLocal and SpawnHandle for commonly used executors."
documentation = "https://docs.rs/async_executors"
repository = "https://github.com/HappyCodingPro/async_executors"
readme = "README.md"
keywords = ["async", "executor", "futures"]
categories = ["asynchronous", "concurrency"]
license = "Unlicense"
edition = "2018"
exclude = [
"examples",
"tests",
"TODO.md",
"deny.toml",
".travis.yml",
"CONTRIBUTING.md"
]
[package.metadata.docs.rs]
all-features = true
targets = []
# Please see the readme for details.
[features]
# The feature only exists so that cargo test doesn't try to compile the examples when testing wasm.
default = []
# Enables the async-std task executor. Not available on WASM.
async_std = ["async_std_crate"]
# Enables the tokio current_thread executor. Not available on WASM.
tokio_ct = ["tokio/rt"]
# Enables the tokio thread_pool executor. Not available on WASM.
tokio_tp = ["tokio/rt-multi-thread"]
# Enables the wasm-bindgen-futures executor. Only available on WASM. If no other executors are enabled
# this will be enabled by default. Currently the only executor available on WASM, so it makes no sense
# for it not to be enabled, and it's providing dependency wasm-bindgen-futures will always be compiled in.
bindgen = ["wasm-bindgen-futures"]
# Enabled the glommio executor support. Glommio is a cooperative thread-per-core model. Requires a very
# new linux kernel(5.8+) This includes a current_thread and a thread_pool(with work-stealing algorithm) implementation
glommio = ["glommio_crate", "crossbeam", "futures-executor", "nix"]
# Add support for the futures LocalPool to SpawnHandle and LocalSpawnHandle
# only makes sense in conjunction with spawn_handle.
localpool = ["futures-executor"]
# Add support for the futures ThreadPool to SpawnHandle and LocalSpawnHandle
# only makes sense in conjunction with spawn_handle.
threadpool = ["futures-executor/thread-pool"]
# Add support for the executor from async-global-executor.
async_global = ["async-global-executor"]
# Enable integration with tracing-futures. This implements the SpawnHandle family of traits
# on wrapped executors Instrumented<T> and WithDispatch<T>.
tracing = ["tracing-futures"]
[badges.maintenance]
status = "actively-developed"
[badges.travis-ci]
repository = "najamelan/async_executors"
[dependencies.futures-task]
version = "^0.3"
[dependencies.futures-util]
version = "^0.3"
features = ["channel"]
[dependencies.futures-executor]
version = "^0.3"
optional = true
[dependencies.futures-channel]
version = "^0.3"
optional = true
[dependencies.tracing-futures]
version = "^0.2"
optional = true
features = ["futures-03"]
[dependencies.async-global-executor]
version = "^2"
optional = true
default-features = false
[dependencies.async_std_crate]
version = "^1.6"
optional = true
package = "async-std"
features = ["unstable"]
[dependencies.tokio]
version = "^1"
optional = true
[dependencies.pin-utils]
version = "^0.1"
optional = true
[dependencies.crossbeam]
version = "^0.8"
optional = true
[dependencies.nix]
version = "^0.20"
optional = true
[dependencies.glommio_crate]
version = "^0.4"
optional = true
package = "glommio"
# necessary for the crate to compile for `cargo doc`
[dependencies.wasm-bindgen-futures]
version = "^0.4"
optional = true
[dev-dependencies]
static_assertions = "^1"
[dev-dependencies.futures]
version = "^0.3"
features = ["thread-pool"]
[dev-dependencies.futures-timer]
version = "^3"
features = ["wasm-bindgen"]
[dev-dependencies.tracing-subscriber]
version = "^0.2"
default-features = false
features = ["fmt"]
[dev-dependencies.tracing_crate]
version = "^0.1"
package = "tracing"
[build-dependencies]
rustc_version = "^0.3"
[target."cfg(target_arch = \"wasm32\")".dev-dependencies]
wasm-bindgen-test = "^0.3"
[target."cfg(not(target_os = \"unknown\"))".dev-dependencies.async_std_crate]
version = "^1"
package = "async-std"
features = ["attributes", "unstable"]
[[example]]
name = "async_std"
path = "examples/async_std.rs"
required-features = ["async_std"]
[[example]]
name = "tokio_ct"
path = "examples/tokio_ct.rs"
required-features = ["tokio_ct"]
[[example]]
name = "tokio_tp"
path = "examples/tokio_tp.rs"
required-features = ["tokio_tp"]
[[example]]
name = "spawn_handle_multi"
path = "examples/spawn_handle_multi.rs"
required-features = ["async_std"]
[[example]]
name = "tracing"
path = "examples/tracing.rs"
required-features = ["tracing", "async_std"]
[[example]]
name = "glommio_ct"
path = "examples/glommio_ct.rs"
required-features = ["glommio"]
[[example]]
name = "glommio_ct_static"
path = "examples/glommio_ct_static.rs"
required-features = ["glommio"]
[[example]]
name = "glommio_tp"
path = "examples/glommio_tp.rs"
required-features = ["glommio"]
[[test]]
name = "async_global"
path = "tests/async_global.rs"
required-features = ["async_global"]
[[test]]
name = "async_global_wasm"
path = "tests/async_global_wasm.rs"
required-features = ["async_global"]
[[test]]
name = "async_std"
path = "tests/async_std.rs"
required-features = ["async_std"]
[[test]]
name = "async_std_wasm"
path = "tests/async_std_wasm.rs"
required-features = ["async_std"]
[[test]]
name = "glommio_ct"
path = "tests/glommio_ct.rs"
required-features = ["glommio"]
[[test]]
name = "bindgen"
path = "tests/bindgen.rs"
required-features = ["bindgen"]
[[test]]
name = "localpool"
path = "tests/localpool.rs"
required-features = ["localpool"]
[[test]]
name = "threadpool"
path = "tests/threadpool.rs"
required-features = ["threadpool"]
[[test]]
name = "tokio_ct"
path = "tests/tokio_ct.rs"
required-features = ["tokio_ct"]
[[test]]
name = "tokio_tp"
path = "tests/tokio_tp.rs"
required-features = ["tokio_tp"]