-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Cargo.yml
169 lines (123 loc) · 4.74 KB
/
Cargo.yml
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
package:
# When releasing to crates.io:
#
# - last check for all TODO, FIXME, expect, unwrap.
# - recheck log statements (informative, none left that were just for development, ...)
# - `cargo +nightly doc` 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 +nightly clippy --tests --examples --benches --all-features`
# - `cargo outdated --root-deps-only`
# - `cargo update`
# - `cargo udeps --all-targets --all-features`
# - `cargo audit`
# - `cargo crev crate verify --show-all --recursive` and review.
# - 'cargo test --all-targets --all-features'
#
# - push dev and verify CI result
# - `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`
#
version : 0.5.0
name : async_nursery
authors : [ Naja Melan <[email protected]> ]
description : Primitive for structured concurrency
documentation : https://docs.rs/async_nursery
repository : https://github.com/najamelan/async_nursery
readme : README.md
keywords : [ async, executor, futures ]
categories : [ asynchronous, concurrency ]
license : Unlicense
edition : "2021"
exclude : []
metadata:
docs:
rs:
all-features: true
targets : []
badges:
maintenance : { status : actively-developed }
travis-ci : { repository : najamelan/async_nursery }
features:
default: [ not_wasm, implementation ]
# Disabling this feature allows you to have only the traits without adding async_executors and the full futures crate
# as dependencies.
#
implementation: [ futures, async_executors ]
# Enable tracing instrumented support.
#
tracing: [ tracing-futures, async_executors/tracing, futures ]
# Avoid compiling examples when doing wasm testing. You shouldn't need this in dependant crates.
#
not_wasm: []
dependencies:
# Public dependencies (bump major if changing any version number here)
# Means we use types from these crates in our public API.
#
futures-channel: { version: ^0.3, default-features: false, features: [ std ] }
futures-task : { version: ^0.3, default-features: false, features: [ alloc ] }
futures : { version: ^0.3, default-features: false, optional: true }
async_executors: { version: ^0.6, optional: true }
tracing-futures: { version: ^0.2, optional: true, features: [futures-03] }
dev-dependencies:
# pretty_assertions : ^0.6
# loom : ^0.3
tokio : { version: ^1, features: [ sync ] }
futures : { version: ^0.3, default-features: true }
futures-timer : ^3
rand : ^0.8
tracing-subscriber: { version: ^0.3.5, default-features: false, features: [ fmt, env-filter ] }
tracing_crate : { version: ^0.1, package: tracing }
target:
'cfg(not( target_arch = "wasm32" ))':
dev-dependencies:
async_executors: { version: ^0.6, features: [ async_std, tokio_ct, tokio_tp ] }
async-std : { version: ^1, features: [ attributes ] }
indicatif : ^0.17
log : ^0.4
'cfg( target_arch = "wasm32" )':
dev-dependencies:
async_executors : { version: ^0.6, features: [ bindgen ] }
futures-timer : { version: ^3 , features: [ wasm-bindgen ] }
wasm-bindgen-test: ^0.3
build-dependencies:
rustc_version: ^0.4
# Needed to avoid them being compiled when running: wasm-pack test --firefox --headless -- --no-default-features
#
example:
- name : cancel_coop
required-features: [ not_wasm ]
- name : cancel_coop_all
required-features: [ not_wasm ]
- name : resource_await
required-features: [ not_wasm ]
- name : resource_drop
required-features: [ not_wasm ]
- name : resource_outlive
required-features: [ not_wasm ]
- name : return_catch_unwind
required-features: [ not_wasm ]
- name : return_error
required-features: [ not_wasm ]
- name : return_progress
required-features: [ not_wasm ]
- name : return_value
required-features: [ not_wasm ]
- name : single_thread
required-features: [ not_wasm ]
- name : subtask_ref
required-features: [ not_wasm ]
- name : subtask_spawn
required-features: [ not_wasm ]
- name : timeout
required-features: [ not_wasm ]
- name : type_bound
required-features: [ not_wasm ]
- name : tracing
required-features: [ not_wasm, tracing ]