@@ -125,11 +125,11 @@ pub(super) enum Scheduler {
125
125
CurrentThread ( CurrentThread ) ,
126
126
127
127
/// Execute tasks across multiple threads.
128
- #[ cfg( all( feature = "rt-multi-thread" , not( tokio_wasi ) ) ) ]
128
+ #[ cfg( all( feature = "rt-multi-thread" , not( target_os = "wasi" ) ) ) ]
129
129
MultiThread ( MultiThread ) ,
130
130
131
131
/// Execute tasks across multiple threads.
132
- #[ cfg( all( tokio_unstable, feature = "rt-multi-thread" , not( tokio_wasi ) ) ) ]
132
+ #[ cfg( all( tokio_unstable, feature = "rt-multi-thread" , not( target_os = "wasi" ) ) ) ]
133
133
MultiThreadAlt ( MultiThreadAlt ) ,
134
134
}
135
135
@@ -345,9 +345,9 @@ impl Runtime {
345
345
346
346
match & self . scheduler {
347
347
Scheduler :: CurrentThread ( exec) => exec. block_on ( & self . handle . inner , future) ,
348
- #[ cfg( all( feature = "rt-multi-thread" , not( tokio_wasi ) ) ) ]
348
+ #[ cfg( all( feature = "rt-multi-thread" , not( target_os = "wasi" ) ) ) ]
349
349
Scheduler :: MultiThread ( exec) => exec. block_on ( & self . handle . inner , future) ,
350
- #[ cfg( all( tokio_unstable, feature = "rt-multi-thread" , not( tokio_wasi ) ) ) ]
350
+ #[ cfg( all( tokio_unstable, feature = "rt-multi-thread" , not( target_os = "wasi" ) ) ) ]
351
351
Scheduler :: MultiThreadAlt ( exec) => exec. block_on ( & self . handle . inner , future) ,
352
352
}
353
353
}
@@ -463,13 +463,13 @@ impl Drop for Runtime {
463
463
let _guard = context:: try_set_current ( & self . handle . inner ) ;
464
464
current_thread. shutdown ( & self . handle . inner ) ;
465
465
}
466
- #[ cfg( all( feature = "rt-multi-thread" , not( tokio_wasi ) ) ) ]
466
+ #[ cfg( all( feature = "rt-multi-thread" , not( target_os = "wasi" ) ) ) ]
467
467
Scheduler :: MultiThread ( multi_thread) => {
468
468
// The threaded scheduler drops its tasks on its worker threads, which is
469
469
// already in the runtime's context.
470
470
multi_thread. shutdown ( & self . handle . inner ) ;
471
471
}
472
- #[ cfg( all( tokio_unstable, feature = "rt-multi-thread" , not( tokio_wasi ) ) ) ]
472
+ #[ cfg( all( tokio_unstable, feature = "rt-multi-thread" , not( target_os = "wasi" ) ) ) ]
473
473
Scheduler :: MultiThreadAlt ( multi_thread) => {
474
474
// The threaded scheduler drops its tasks on its worker threads, which is
475
475
// already in the runtime's context.
0 commit comments