[workspace]
members = ["protection-core", "service"]

[package]
name = "rebreak-magic-win"
version = "0.1.0"
description = "ReBreak Magic für Windows — DNS-basierter Glücksspiel-Schutz"
authors = ["Rebreak"]
edition = "2021"

[lib]
name = "rebreak_magic_win_lib"
crate-type = ["staticlib", "cdylib", "rlib"]

[build-dependencies]
tauri-build = { version = "2", features = [] }

[dependencies]
tauri = { version = "2", features = [] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
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
