1 // Copyright 2022 The Chromium OS Authors. All rights reserved. 2 // SPDX-License-Identifier: Apache-2.0 3 4 //! A wrapper module for platform dependent code. 5 6 cfg_if::cfg_if! { 7 if #[cfg(unix)] { 8 pub mod unix; 9 use unix as platform; 10 } else if #[cfg(windows)] { 11 pub mod windows; 12 use windows as platform; 13 } else { 14 compile_error!("Unsupported platform"); 15 } 16 } 17 18 pub(crate) use platform::PlatformConnection; 19