From 5a974fe72d9bbf49dc7cdb9a114a6bb2e796469b Mon Sep 17 00:00:00 2001 From: Gabriel Konat Date: Tue, 3 Dec 2019 20:49:57 +0100 Subject: Use cfg and path attribute instead of cfg_attr for IntelliJ Rust support --- src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index dd828afd..1ef11378 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -180,8 +180,11 @@ #![deny(unsafe_code)] #![deny(rust_2018_idioms)] mod application; -#[cfg_attr(target_arch = "wasm32", path = "web.rs")] -#[cfg_attr(not(target_arch = "wasm32"), path = "native.rs")] +#[cfg(target_arch = "wasm32")] +#[path = "web.rs"] +mod platform; +#[cfg(not(target_arch = "wasm32"))] +#[path = "native.rs"] mod platform; mod sandbox; -- cgit