@@ -186,10 +186,10 @@ jobs:
186
186
runs-on : ${{ matrix.os }}
187
187
strategy :
188
188
matrix :
189
- os :
190
- - windows-latest
191
- - ubuntu-latest
192
- - macos-latest
189
+ include :
190
+ - os : windows-latest
191
+ - os : ubuntu-latest
192
+ - os : macos-latest
193
193
steps :
194
194
- uses : actions/checkout@v3
195
195
- name : Install Rust ${{ env.rust_stable }}
@@ -206,6 +206,31 @@ jobs:
206
206
# in order to run doctests for unstable features, we must also pass
207
207
# the unstable cfg to RustDoc
208
208
RUSTDOCFLAGS : --cfg tokio_unstable
209
+
210
+ test-unstable-taskdump :
211
+ name : test tokio full --unstable --taskdump
212
+ needs : basics
213
+ runs-on : ${{ matrix.os }}
214
+ strategy :
215
+ matrix :
216
+ include :
217
+ - os : ubuntu-latest
218
+ steps :
219
+ - uses : actions/checkout@v3
220
+ - name : Install Rust ${{ env.rust_stable }}
221
+ uses : dtolnay/rust-toolchain@master
222
+ with :
223
+ toolchain : ${{ env.rust_stable }}
224
+ - uses : Swatinem/rust-cache@v2
225
+ # Run `tokio` with "unstable" and "taskdump" cfg flags.
226
+ - name : test tokio full --cfg unstable --cfg taskdump
227
+ run : cargo test --all-features
228
+ working-directory : tokio
229
+ env :
230
+ RUSTFLAGS : --cfg tokio_unstable --cfg tokio_taskdump -Dwarnings
231
+ # in order to run doctests for unstable features, we must also pass
232
+ # the unstable cfg to RustDoc
233
+ RUSTDOCFLAGS : --cfg tokio_unstable --cfg tokio_taskdump
209
234
210
235
miri :
211
236
name : miri
@@ -293,9 +318,11 @@ jobs:
293
318
matrix :
294
319
include :
295
320
- target : i686-unknown-linux-gnu
321
+ rustflags : --cfg tokio_taskdump
296
322
- target : arm-unknown-linux-gnueabihf
297
323
- target : armv7-unknown-linux-gnueabihf
298
324
- target : aarch64-unknown-linux-gnu
325
+ rustflags : --cfg tokio_taskdump
299
326
300
327
# Run a platform without AtomicU64 and no const Mutex::new
301
328
- target : arm-unknown-linux-gnueabihf
@@ -341,15 +368,15 @@ jobs:
341
368
target : i686-unknown-linux-gnu
342
369
- run : cargo test -Zbuild-std --target target-specs/i686-unknown-linux-gnu.json -p tokio --all-features
343
370
env :
344
- RUSTFLAGS : --cfg tokio_unstable -Dwarnings --cfg tokio_no_atomic_u64
371
+ RUSTFLAGS : --cfg tokio_unstable --cfg tokio_taskdump - Dwarnings --cfg tokio_no_atomic_u64
345
372
# https://github.com/tokio-rs/tokio/pull/5356
346
373
# https://github.com/tokio-rs/tokio/issues/5373
347
374
- run : cargo hack build -p tokio --feature-powerset --depth 2 -Z avoid-dev-deps --keep-going
348
375
env :
349
- RUSTFLAGS : --cfg tokio_unstable -Dwarnings --cfg tokio_no_atomic_u64 --cfg tokio_no_const_mutex_new
376
+ RUSTFLAGS : --cfg tokio_unstable --cfg tokio_taskdump - Dwarnings --cfg tokio_no_atomic_u64 --cfg tokio_no_const_mutex_new
350
377
- run : cargo hack build -p tokio --feature-powerset --depth 2 -Z avoid-dev-deps --keep-going
351
378
env :
352
- RUSTFLAGS : --cfg tokio_unstable -Dwarnings --cfg tokio_no_atomic_u64
379
+ RUSTFLAGS : --cfg tokio_unstable --cfg tokio_taskdump - Dwarnings --cfg tokio_no_atomic_u64
353
380
354
381
features :
355
382
name : features
@@ -372,6 +399,11 @@ jobs:
372
399
run : cargo hack check --all --feature-powerset --depth 2 -Z avoid-dev-deps --keep-going
373
400
env :
374
401
RUSTFLAGS : --cfg tokio_unstable -Dwarnings
402
+ # Try with unstable and taskdump feature flags
403
+ - name : check --feature-powerset --unstable --taskdump
404
+ run : cargo hack check --all --feature-powerset --depth 2 -Z avoid-dev-deps --keep-going
405
+ env :
406
+ RUSTFLAGS : --cfg tokio_unstable --cfg tokio_taskdump -Dwarnings
375
407
376
408
minrust :
377
409
name : minrust
@@ -424,7 +456,7 @@ jobs:
424
456
cargo hack check --all-features --ignore-private
425
457
- name : " check --all-features --unstable -Z minimal-versions"
426
458
env :
427
- RUSTFLAGS : --cfg tokio_unstable -Dwarnings
459
+ RUSTFLAGS : --cfg tokio_unstable --cfg tokio_taskdump - Dwarnings
428
460
run : |
429
461
# Remove dev-dependencies from Cargo.toml to prevent the next `cargo update`
430
462
# from determining minimal versions based on dev-dependencies.
@@ -481,8 +513,8 @@ jobs:
481
513
- name : " doc --lib --all-features"
482
514
run : cargo doc --lib --no-deps --all-features --document-private-items
483
515
env :
484
- RUSTFLAGS : --cfg docsrs --cfg tokio_unstable
485
- RUSTDOCFLAGS : --cfg docsrs --cfg tokio_unstable -Dwarnings
516
+ RUSTFLAGS : --cfg docsrs --cfg tokio_unstable --cfg tokio_taskdump
517
+ RUSTDOCFLAGS : --cfg docsrs --cfg tokio_unstable --cfg tokio_taskdump - Dwarnings
486
518
487
519
loom-compile :
488
520
name : build loom tests
0 commit comments