fix(magic-win): keyring plattform-spezifisch (apple-native bricht Windows-Build)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
chahinebrini 2026-06-07 13:45:04 +02:00
parent 771af0faf1
commit 869d8afd30

View File

@ -20,9 +20,17 @@ tauri = { version = "2", features = [] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
keyring = { version = "3", features = ["windows-native", "apple-native"] }
protection-core = { path = "protection-core" }
# keyring plattform-spezifisch: `apple-native` würde auf Windows das macOS-only
# security-framework ziehen und den Build brechen. Pro Target nur das passende
# Backend (Windows-Build nutzt windows-native, Mac-cargo-check apple-native).
[target.'cfg(windows)'.dependencies]
keyring = { version = "3", features = ["windows-native"] }
[target.'cfg(not(windows))'.dependencies]
keyring = { version = "3", features = ["apple-native"] }
[profile.release]
strip = true
lto = true