wasm: use build script to detect wasm (#4865)

Co-authored-by: Taiki Endo <[email protected]>
This commit is contained in:
Alice Ryhl
2022-07-26 11:26:54 +00:00
committed by GitHub
co-authored by Taiki Endo
parent 0dc62da21b
commit b2ada60e70
91 changed files with 222 additions and 195 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ const KEEP_ALIVE: Duration = Duration::from_secs(10);
/// Tasks will be scheduled as non-mandatory, meaning they may not get executed
/// in case of runtime shutdown.
#[track_caller]
#[cfg_attr(target_os = "wasi", allow(dead_code))]
#[cfg_attr(tokio_wasi, allow(dead_code))]
pub(crate) fn spawn_blocking<F, R>(func: F) -> JoinHandle<R>
where
F: FnOnce() -> R + Send + 'static,