diff --git a/src/lib.rs b/src/lib.rs index 5a3f6c9b..92b35b41 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -127,7 +127,7 @@ extern crate bitflags; #[cfg(any(target_os = "macos", target_os = "ios"))] #[macro_use] extern crate objc; -#[cfg(feature = "std_web")] +#[cfg(all(target_arch = "wasm32", feature = "std_web"))] extern crate std_web as stdweb; pub mod dpi;