Use cfg and path attribute instead of cfg_attr for IntelliJ Rust support

This commit is contained in:
Gabriel Konat 2019-12-03 20:49:57 +01:00
parent d1eb187e26
commit 5a974fe72d
3 changed files with 15 additions and 6 deletions

View file

@ -1,7 +1,10 @@
//! Configure your application.
#[cfg_attr(target_os = "windows", path = "windows.rs")]
#[cfg_attr(not(target_os = "windows"), path = "not_windows.rs")]
#[cfg(target_os = "windows")]
#[path = "windows.rs"]
mod platform;
#[cfg(not(target_os = "windows"))]
#[path = "not_windows.rs"]
mod platform;
pub use platform::PlatformSpecific;