diff options
Diffstat (limited to 'src/platform/mod.rs')
| -rw-r--r-- | src/platform/mod.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/platform/mod.rs b/src/platform/mod.rs new file mode 100644 index 00000000..df8869c7 --- /dev/null +++ b/src/platform/mod.rs @@ -0,0 +1,19 @@ +//! Platform-specific process and filesystem operations. +//! +//! Centralizes OS-dependent behavior behind a clean boundary so core +//! modules don't scatter `#[cfg]` branches through product logic. + +#[cfg(target_os = "linux")] +mod linux; +#[cfg(target_os = "linux")] +pub use linux::*; + +#[cfg(target_os = "macos")] +mod macos; +#[cfg(target_os = "macos")] +pub use macos::*; + +#[cfg(not(any(target_os = "linux", target_os = "macos")))] +mod fallback; +#[cfg(not(any(target_os = "linux", target_os = "macos")))] +pub use fallback::*; |
