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
+10 -2
View File
@@ -93,7 +93,11 @@ impl EasyTierLauncher {
}
}
#[cfg(any(target_os = "android", target_os = "ios", target_env = "ohos"))]
#[cfg(any(
target_os = "android",
any(target_os = "ios", feature = "macos-ne"),
target_env = "ohos"
))]
async fn run_routine_for_mobile(
instance: &Instance,
data: &EasyTierData,
@@ -152,7 +156,11 @@ impl EasyTierLauncher {
}
});
#[cfg(any(target_os = "android", target_os = "ios", target_env = "ohos"))]
#[cfg(any(
target_os = "android",
any(target_os = "ios", feature = "macos-ne"),
target_env = "ohos"
))]
Self::run_routine_for_mobile(&instance, &data, &mut tasks).await;
instance.run().await?;