[package]
name = "frenocorp-desktop"
version = "0.1.0"
description = "FrenoCorp Desktop Application"
authors = ["FrenoCorp"]
edition = "2021"

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

[[bin]]
name = "frenocorp"
path = "src/main.rs"

[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tauri = { version = "2", features = ["tray-icon", "macos-private-api"] }
tauri-plugin-fs = "2"
tauri-plugin-http = "2"
tauri-plugin-dialog = "2"
tauri-plugin-shell = "2"
tauri-plugin-store = "2"
tokio = { version = "1.35", features = ["full"] }
thiserror = "1.0"
log = "0.4"
env_logger = "0.10"

[target.'cfg(windows)'.dependencies]
windows = { version = "0.52", features = ["Win32_UI_Shell"] }

[target.'cfg(target_os = "macos")'.dependencies]
cocoa = "0.25"

[target.'cfg(target_os = "linux")'.dependencies]
gtk = "0.18"

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

[profile.release]
panic = "abort"
codegen-units = 1
lto = true
opt-level = "s"
strip = true
