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:
parent
771af0faf1
commit
869d8afd30
@ -20,9 +20,17 @@ tauri = { version = "2", features = [] }
|
|||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
|
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
|
||||||
keyring = { version = "3", features = ["windows-native", "apple-native"] }
|
|
||||||
protection-core = { path = "protection-core" }
|
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]
|
[profile.release]
|
||||||
strip = true
|
strip = true
|
||||||
lto = true
|
lto = true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user