wasm: support the wasm32-unknown-emscripten target (#8281)

This commit is contained in:
Guy Bedford
2026-09-05 10:35:22 +02:00
committed by GitHub
parent 4917528a97
commit 060cc4e46a
101 changed files with 1013 additions and 182 deletions
+9 -1
View File
@@ -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};