[package]
name = "netrunner-app"
version = "0.1.0"
edition = "2021"

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

[build-dependencies]
tauri-build = { version = "2.0.0", features = [] }
winres = "0.1"

[dependencies]
jni = "0.22.3"
tauri = { version = "2.0.0", features = [] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
ndk-context = "0.1"
log = "0.4"

tauri-plugin-vpn = { path = "./src/plugins/vpn-plugin" }
tauri-plugin-shell = "2.0.0"
netrunner-logger = { git = "ssh://git@github.com/nineAp/netrunner-core.git", branch = "main", features = ["desktop"] }

# Автообновление есть только на десктопе — Android/iOS запрещают самообновление
# в обход стора, поэтому эти крейты не тянутся и не регистрируются на мобильных
# таргетах (см. src/lib.rs, #[cfg(desktop)]).
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
tauri-plugin-updater = "2.0.0"
tauri-plugin-process = "2.0.0"

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

[target.x86_64-pc-windows-gnu]
linker = "x86_64-w64-mingw32-gcc"
ar = "x86_64-w64-mingw32-gcc-ar"
