xref: /aosp_15_r20/external/crosvm/base/src/sys.rs (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
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"))]
6 pub mod linux;
7 
8 #[cfg(target_os = "macos")]
9 pub mod macos;
10 
11 #[cfg(unix)]
12 pub mod unix;
13 
14 #[cfg(windows)]
15 pub mod windows;
16 
17 pub 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 
28 pub use platform::*;
29