diff --git a/futures/src/lib.rs b/futures/src/lib.rs index d1a149f7..46fc59fc 100644 --- a/futures/src/lib.rs +++ b/futures/src/lib.rs @@ -14,7 +14,10 @@ mod runtime; pub mod executor; pub mod subscription; -#[cfg(any(feature = "tokio", feature = "async-std"))] +#[cfg(all( + any(feature = "tokio", feature = "async-std"), + not(target_arch = "wasm32") +))] #[cfg_attr(docsrs, doc(cfg(any(feature = "tokio", feature = "async-std"))))] pub mod time; diff --git a/src/lib.rs b/src/lib.rs index d1e5fb94..7885ee12 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -190,7 +190,10 @@ pub mod settings; pub mod widget; pub mod window; -#[cfg(any(feature = "tokio", feature = "async-std"))] +#[cfg(all( + any(feature = "tokio", feature = "async-std"), + not(target_arch = "wasm32") +))] #[cfg_attr(docsrs, doc(cfg(any(feature = "tokio", feature = "async-std"))))] pub mod time;