1 2 3 4 5 6 7 8 9 10 11 12 13
//! Provides low-level support operations for file locking. cfg_if::cfg_if! { if #[cfg(windows)] { pub mod windows; pub use self::windows::{raw_file_lock, raw_file_downgrade}; } else if #[cfg(unix)] { #[macro_use] pub mod unix; pub use self::unix::{raw_file_lock, raw_file_downgrade}; } else { // Unknown target_family } }