From 1501a93915b3704a1d57da4c390a8ebca4e35c8b Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 30 Apr 2020 05:51:41 +0200 Subject: Disable `time` module on Wasm for now --- src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib.rs') 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; -- cgit