Disable `time` module on Wasm for now

This commit is contained in:
Héctor Ramón Jiménez 2020-04-30 05:51:41 +02:00
parent e2076612cb
commit 1501a93915
2 changed files with 8 additions and 2 deletions

View File

@ -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;

View File

@ -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;