mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-02 06:40:06 -04:00
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.
This commit is contained in:
@@ -127,7 +127,7 @@ extern crate bitflags;
|
|||||||
#[cfg(any(target_os = "macos", target_os = "ios"))]
|
#[cfg(any(target_os = "macos", target_os = "ios"))]
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate objc;
|
extern crate objc;
|
||||||
#[cfg(feature = "std_web")]
|
#[cfg(all(target_arch = "wasm32", feature = "std_web"))]
|
||||||
extern crate std_web as stdweb;
|
extern crate std_web as stdweb;
|
||||||
|
|
||||||
pub mod dpi;
|
pub mod dpi;
|
||||||
|
|||||||
Reference in New Issue
Block a user