1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// Copyright 2022 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//! A wrapper module for platform dependent code.
cfg_if::cfg_if! {
if #[cfg(unix)] {
mod unix;
pub use unix::*;
} else if #[cfg(windows)] {
mod windows;
pub use windows::*;
} else {
compile_error!("Unsupported platform");
}
}