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
@@ -1,4 +1,4 @@
#![cfg(all(feature = "full", not(target_os = "wasi")))] // Wasi doesn't support threads
#![cfg(all(feature = "full", not(tokio_wasi)))] // Wasi doesn't support threads
use std::future::Future;
use std::pin::Pin;
use std::task::{Context, Poll};