mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
wasm: support the wasm32-unknown-emscripten target (#8281)
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
#![warn(rust_2018_idioms)]
|
||||
#![cfg(all(feature = "full", not(target_os = "wasi")))] // Wasi does not support panic recovery
|
||||
#![cfg(any(
|
||||
all(feature = "full", not(target_os = "wasi")), // Wasi does not support panic recovery
|
||||
all(
|
||||
target_os = "emscripten",
|
||||
feature = "rt",
|
||||
feature = "macros",
|
||||
feature = "io-util"
|
||||
)
|
||||
))]
|
||||
|
||||
use std::pin::Pin;
|
||||
use std::task::{Context, Poll};
|
||||
|
||||
Reference in New Issue
Block a user