Use cfg and path attribute instead of cfg_attr for IntelliJ Rust support
This commit is contained in:
parent
d1eb187e26
commit
5a974fe72d
3 changed files with 15 additions and 6 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue