feat: support macOS Network Extension (#1902)

* feat: support macOS Network Extension
* fix: disable macOS NE feature in cargo hack check
This commit is contained in:
Chenx Dust
2026-02-14 14:54:36 +08:00
committed by GitHub
parent 5a777959e3
commit 7a26640c26
15 changed files with 180 additions and 42 deletions
@@ -26,7 +26,7 @@ cfg_if::cfg_if! {
}
}
}
} else if #[cfg(target_os = "macos")] {
} else if #[cfg(all(target_os = "macos", not(feature = "macos-ne")))] {
pub mod macos_bpf;
pub fn create_tun(