Files
netrunner-app/src-tauri/Cargo.toml
T
nineap 24f3e5f454 Добавляет tauri-plugin-updater/process (desktop-only)
Регистрируется только под cfg(desktop) — Android/iOS самообновление
запрещено политиками сторов, там плагин не подключается вообще.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-09 16:36:39 +07:00

43 lines
1.3 KiB
TOML

[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"