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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue