From 3d28283a81229ccf1ed15d29c4a816e3842f8df8 Mon Sep 17 00:00:00 2001 From: Ryan G Date: Wed, 27 Nov 2019 00:38:18 -0500 Subject: [PATCH] Only use 'extern crate stdweb' on web targets (#1291) The 'extern crate' declaration shouldn't be there even if the stdweb feature is on, unless the crate is being compiled for web. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;