base/sys.rs
1// Copyright 2022 The ChromiumOS Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#[cfg(any(target_os = "android", target_os = "linux"))]
6pub mod linux;
7
8#[cfg(target_os = "macos")]
9pub mod macos;
10
11#[cfg(unix)]
12pub mod unix;
13
14#[cfg(windows)]
15pub mod windows;
16
17pub mod platform {
18 #[cfg(any(target_os = "android", target_os = "linux"))]
19 pub use super::linux::*;
20 #[cfg(target_os = "macos")]
21 pub use super::macos::*;
22 #[cfg(unix)]
23 pub use super::unix::*;
24 #[cfg(windows)]
25 pub use super::windows::*;
26}
27
28pub use platform::*;