• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 //! A wrapper module for platform dependent code.
6 
7 cfg_if::cfg_if! {
8     if #[cfg(unix)] {
9         mod unix;
10         pub use unix::*;
11     } else if #[cfg(windows)] {
12         mod windows;
13         pub use windows::*;
14     } else {
15         compile_error!("Unsupported platform");
16     }
17 }
18