]> code.octet-stream.net Git - netwatcher/blobdiff - src/lib.rs
Move things around
[netwatcher] / src / lib.rs
index 47c5ae11957466f7e233e0f2690105d431fad154..36cbddc7d5037a74bc13d654c7dea42f40aea2cb 100644 (file)
@@ -5,16 +5,14 @@ use std::{
 };
 
 #[cfg_attr(windows, path = "list_win.rs")]
 };
 
 #[cfg_attr(windows, path = "list_win.rs")]
-#[cfg_attr(target_vendor = "apple", path = "list_mac.rs")]
+#[cfg_attr(unix, path = "list_unix.rs")]
 mod list;
 
 #[cfg_attr(windows, path = "watch_win.rs")]
 #[cfg_attr(target_vendor = "apple", path = "watch_mac.rs")]
 mod list;
 
 #[cfg_attr(windows, path = "watch_win.rs")]
 #[cfg_attr(target_vendor = "apple", path = "watch_mac.rs")]
+#[cfg_attr(target_os = "linux", path = "watch_linux.rs")]
 mod watch;
 
 mod watch;
 
-#[cfg(target_vendor = "apple")]
-mod util;
-
 type IfIndex = u32;
 
 #[derive(Debug, Clone, PartialEq, Eq)]
 type IfIndex = u32;
 
 #[derive(Debug, Clone, PartialEq, Eq)]