We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c465771 commit c291b23Copy full SHA for c291b23
src/lib.rs
@@ -481,6 +481,10 @@ compile_error!("`wasm-bindgen` cannot be used with `no-std`");
481
#[cfg(feature = "stdweb")]
482
compile_error!("`stdweb` cannot be used with `no-std`");
483
484
+#[cfg(target_family = "wasm")]
485
+#[cfg(not(any(feature = "no_time", feature = "wasm-bindgen", feature = "stdweb")))]
486
+compile_error!("WASM targets have to use either the `wasm-bindgen`, `stdweb` or `no_time` feature");
487
+
488
#[cfg(target_family = "wasm")]
489
#[cfg(feature = "no_std")]
490
compile_error!("`no_std` cannot be used for WASM target");
0 commit comments