[package]
name = "rebreak-magic"
version = "0.1.0"
description = "ReBreak Magic — Unified Desktop Protection (macOS + Windows)"
authors = ["Rebreak"]
edition = "2021"

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

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

[dependencies]
tauri = { version = "2", features = [] }
tauri-plugin-shell = "2"
tauri-plugin-fs = "2"
tauri-plugin-http = "2"
tauri-plugin-os = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
chrono = { version = "0.4", features = ["serde"] }
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
tokio = { version = "1", features = ["macros", "rt-multi-thread", "sync"] }
anyhow = "1"
uuid = { version = "1", features = ["v4"] }
base64 = "0.22"
dirs = "5"
tiny_http = "0.12"
local-ip-address = "0.6"
# Pin brotli family to avoid alloc-no-stdlib version conflict
brotli-decompressor = "=5.0.1"
alloc-stdlib = "=0.2.2"

# Plattform-spezifischer Credential-Speicher
[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
