15 lines
256 B
Rust
15 lines
256 B
Rust
#[macro_use]
|
|
extern crate cfg_if;
|
|
|
|
cfg_if! {
|
|
if #[cfg(target_family = "unix")] {
|
|
mod foo;
|
|
#[path = "paths/bar_foo.rs"]
|
|
mod bar_foo;
|
|
} else {
|
|
mod bar;
|
|
#[path = "paths/foo_bar.rs"]
|
|
mod foo_bar;
|
|
}
|
|
}
|