|
7 | 7 | // option. This file may not be copied, modified, or distributed
|
8 | 8 | // except according to those terms.
|
9 | 9 |
|
10 |
| -mod os { |
11 |
| - #[cfg(all(not(feature = "force-inprocess"), target_os = "linux"))] |
12 |
| - include!("linux/mod.rs"); |
| 10 | +#[cfg(all(not(feature = "force-inprocess"), target_os = "linux"))] |
| 11 | +mod linux; |
13 | 12 |
|
14 |
| - #[cfg(all(not(feature = "force-inprocess"), target_os = "macos"))] |
15 |
| - include!("macos/mod.rs"); |
| 13 | +#[cfg(all(not(feature = "force-inprocess"), target_os = "macos"))] |
| 14 | +mod macos; |
16 | 15 |
|
17 |
| - #[cfg(all(not(feature = "force-inprocess"), target_os = "windows"))] |
18 |
| - include!("windows/mod.rs"); |
| 16 | +#[cfg(all(not(feature = "force-inprocess"), target_os = "windows"))] |
| 17 | +mod windows; |
19 | 18 |
|
20 |
| - #[cfg(any(feature = "force-inprocess", target_os = "android"))] |
21 |
| - include!("inprocess/mod.rs"); |
22 |
| -} |
| 19 | +#[cfg(any(feature = "force-inprocess", target_os = "android"))] |
| 20 | +mod inprocess; |
23 | 21 |
|
24 |
| -pub use self::os::{OsIpcChannel, OsIpcOneShotServer, OsIpcReceiver, OsIpcReceiverSet}; |
25 |
| -pub use self::os::{OsIpcSelectionResult, OsIpcSender, OsIpcSharedMemory}; |
26 |
| -pub use self::os::{OsOpaqueIpcChannel, channel}; |
| 22 | +#[cfg(all(not(feature = "force-inprocess"), target_os = "linux"))] |
| 23 | +pub use self::linux::{OsIpcChannel, OsIpcOneShotServer, OsIpcReceiver, |
| 24 | + OsIpcReceiverSet, OsIpcSelectionResult, OsIpcSender, |
| 25 | + OsIpcSharedMemory, OsOpaqueIpcChannel, channel}; |
| 26 | + |
| 27 | +#[cfg(all(not(feature = "force-inprocess"), target_os = "macos"))] |
| 28 | +pub use self::macos::{OsIpcChannel, OsIpcOneShotServer, OsIpcReceiver, |
| 29 | + OsIpcReceiverSet, OsIpcSelectionResult, OsIpcSender, |
| 30 | + OsIpcSharedMemory, OsOpaqueIpcChannel, channel}; |
| 31 | + |
| 32 | +#[cfg(all(not(feature = "force-inprocess"), target_os = "windows"))] |
| 33 | +pub use self::windows::{OsIpcChannel, OsIpcOneShotServer, OsIpcReceiver, |
| 34 | + OsIpcReceiverSet, OsIpcSelectionResult, OsIpcSender, |
| 35 | + OsIpcSharedMemory, OsOpaqueIpcChannel, channel}; |
| 36 | + |
| 37 | +#[cfg(any(feature = "force-inprocess", target_os = "android"))] |
| 38 | +pub use self::inprocess::{OsIpcChannel, OsIpcOneShotServer, OsIpcReceiver, |
| 39 | + OsIpcReceiverSet, OsIpcSelectionResult, OsIpcSender, |
| 40 | + OsIpcSharedMemory, OsOpaqueIpcChannel, channel}; |
27 | 41 |
|
28 | 42 | #[cfg(test)]
|
29 | 43 | mod test;
|
0 commit comments