From e215ff90d34856971b1401a051fd0f4340cd3d7e Mon Sep 17 00:00:00 2001 From: Tony <68118705+Legend-Master@users.noreply.github.com> Date: Tue, 4 Aug 2026 15:45:25 +0800 Subject: [PATCH] chore: remove outdated prod features (#3525) --- examples/api/src-tauri/Cargo.toml | 3 --- plugins/deep-link/examples/app/src-tauri/Cargo.toml | 6 ------ .../single-instance/examples/vanilla/src-tauri/Cargo.toml | 3 --- .../store/examples/AppSettingsManager/src-tauri/Cargo.toml | 5 ----- plugins/updater/tests/app-updater/Cargo.toml | 3 --- plugins/websocket/examples/tauri-app/src-tauri/Cargo.toml | 3 --- 6 files changed, 23 deletions(-) diff --git a/examples/api/src-tauri/Cargo.toml b/examples/api/src-tauri/Cargo.toml index ec8b6c3d4..d56ad942a 100644 --- a/examples/api/src-tauri/Cargo.toml +++ b/examples/api/src-tauri/Cargo.toml @@ -66,6 +66,3 @@ tauri-plugin-nfc = { path = "../../../plugins/nfc", version = "2.3.5" } tauri-plugin-biometric = { path = "../../../plugins/biometric/", version = "2.3.2" } tauri-plugin-geolocation = { path = "../../../plugins/geolocation/", version = "2.3.2" } tauri-plugin-haptics = { path = "../../../plugins/haptics/", version = "2.3.2" } - -[features] -prod = ["tauri/custom-protocol"] diff --git a/plugins/deep-link/examples/app/src-tauri/Cargo.toml b/plugins/deep-link/examples/app/src-tauri/Cargo.toml index 130a7fef2..1ebb5ac8b 100644 --- a/plugins/deep-link/examples/app/src-tauri/Cargo.toml +++ b/plugins/deep-link/examples/app/src-tauri/Cargo.toml @@ -26,9 +26,3 @@ tauri-plugin-single-instance = { path = "../../../../single-instance", features "deep-link", ] } log = "0.4" - -[features] -# this feature is used for production builds or when `devUrl` points to the filesystem and the built-in dev server is disabled. -# If you use cargo directly instead of tauri's cli you can use this feature flag to switch between tauri's `dev` and `build` modes. -# DO NOT REMOVE!! -prod = ["tauri/custom-protocol"] diff --git a/plugins/single-instance/examples/vanilla/src-tauri/Cargo.toml b/plugins/single-instance/examples/vanilla/src-tauri/Cargo.toml index dd9c8d8aa..c98659a25 100644 --- a/plugins/single-instance/examples/vanilla/src-tauri/Cargo.toml +++ b/plugins/single-instance/examples/vanilla/src-tauri/Cargo.toml @@ -16,6 +16,3 @@ tauri-plugin-cli = { path = "../../../../cli" } [build-dependencies] tauri-build = { workspace = true } - -[features] -prod = ["tauri/custom-protocol"] diff --git a/plugins/store/examples/AppSettingsManager/src-tauri/Cargo.toml b/plugins/store/examples/AppSettingsManager/src-tauri/Cargo.toml index 9a30f0b16..d005f10ef 100644 --- a/plugins/store/examples/AppSettingsManager/src-tauri/Cargo.toml +++ b/plugins/store/examples/AppSettingsManager/src-tauri/Cargo.toml @@ -17,8 +17,3 @@ tauri = { workspace = true, features = ["wry", "common-controls-v6", "x11"] } serde = { workspace = true } serde_json = { workspace = true } tauri-plugin-store = { path = "../../../" } - -[features] -# this feature is used for production builds or when `devPath` points to the filesystem -# DO NOT REMOVE!! -prod = ["tauri/custom-protocol"] diff --git a/plugins/updater/tests/app-updater/Cargo.toml b/plugins/updater/tests/app-updater/Cargo.toml index 57072824e..6ab6d798d 100644 --- a/plugins/updater/tests/app-updater/Cargo.toml +++ b/plugins/updater/tests/app-updater/Cargo.toml @@ -13,6 +13,3 @@ serde_json = { workspace = true } tauri-plugin-updater = { path = "../.." } tiny_http = "0.12" time = { version = "0.3", features = ["formatting"] } - -[features] -prod = ["tauri/custom-protocol"] diff --git a/plugins/websocket/examples/tauri-app/src-tauri/Cargo.toml b/plugins/websocket/examples/tauri-app/src-tauri/Cargo.toml index 6b7b284a1..7c719eb3b 100644 --- a/plugins/websocket/examples/tauri-app/src-tauri/Cargo.toml +++ b/plugins/websocket/examples/tauri-app/src-tauri/Cargo.toml @@ -15,6 +15,3 @@ tokio-tungstenite = "0.29" [build-dependencies] tauri-build = { workspace = true } - -[features] -prod = ["tauri/custom-protocol"]