fd_lock/sys/mod.rs
1use cfg_if::cfg_if;
2
3cfg_if! {
4 if #[cfg(unix)] {
5 mod unix;
6 pub use unix::*;
7 pub(crate) use rustix::fd::AsFd as AsOpenFile;
8 } else if #[cfg(windows)] {
9 mod windows;
10 pub use windows::*;
11 #[doc(no_inline)]
12 pub(crate) use std::os::windows::io::AsHandle as AsOpenFile;
13 } else {
14 mod unsupported;
15 pub use unsupported;
16 }
17}