Skip to content

Commit 75f98d6

Browse files
Isaccsevenclaude
andcommitted
fix: revert macos-private-api to base tauri dependency
Splitting macos-private-api to the macOS-only Cargo section broke tauri-build on non-macOS CI. The feature validates against the macOSPrivateApi config flag and tauri-build rejects the mismatch. Tauri 2 safely guards all private API code behind #[cfg(target_os = "macos")], so keeping it in the base dep is harmless on Windows/Linux. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent a34ab8e commit 75f98d6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src-tauri/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ crate-type = ["staticlib", "cdylib", "rlib"]
2121
tauri-build = { version = "2", features = [] }
2222

2323
[dependencies]
24-
tauri = { version = "2", features = ["tray-icon"] }
24+
tauri = { version = "2", features = ["macos-private-api", "tray-icon"] }
2525
tauri-plugin-opener = "2"
2626
serde = { version = "1", features = ["derive"] }
2727
serde_json = "1"
@@ -36,5 +36,4 @@ tauri-plugin-global-shortcut = "2"
3636

3737

3838
[target."cfg(target_os = \"macos\")".dependencies]
39-
tauri = { version = "2", features = ["macos-private-api"] }
4039
cocoa = "0.26"

0 commit comments

Comments
 (0)