storebound/apps/desktop/src-tauri/Cargo.toml

70 lines
2.4 KiB
TOML

[package]
name = "storebound-desktop"
version = "0.8.66"
description = "storebound desktop: every game's releases on both stores in one window"
license = "MIT"
edition = "2021"
rust-version = "1.85"
publish = false
[lib]
name = "storebound_desktop"
path = "src/lib.rs"
[[bin]]
name = "storebound-desktop"
path = "src/main.rs"
[build-dependencies]
tauri-build = { version = "2", features = [] }
[dependencies]
tauri = { version = "2.12", features = ["tray-icon"] }
# Spawns the storebound sidecar from Rust only; no capability grants the plugin's JS API.
tauri-plugin-shell = "2"
tauri-plugin-single-instance = { version = "2", features = ["deep-link"] }
tauri-plugin-deep-link = "2"
tauri-plugin-window-state = "2"
# Opener, dialog, notification, updater and process are driven from Rust only (no JS permissions).
tauri-plugin-opener = "2"
tauri-plugin-dialog = "2"
tauri-plugin-notification = "2"
tauri-plugin-updater = "2"
tauri-plugin-process = "2"
tauri-plugin-autostart = "2"
# Store credentials: macOS Keychain, Windows Credential Manager, Secret Service on Linux.
keyring = { version = "3", features = ["apple-native", "windows-native", "sync-secret-service", "crypto-rust"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
hmac = "0.12"
sha2 = "0.10"
base64 = "0.22"
getrandom = "0.3"
url = "2"
tokio = { version = "1", features = ["sync", "time"] }
# Offline cache of the last store reads (app data cache.sqlite); SQLite compiled in, nothing system-wide.
rusqlite = { version = "0.38", features = ["bundled"] }
# Dependencies screen downloads (ffmpeg, Chrome for Testing): the same HTTP stack the updater already brings.
reqwest = { version = "0.13", default-features = false, features = ["rustls-no-provider", "system-proxy"] }
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
zip = { version = "4", default-features = false, features = ["deflate-flate2-zlib-rs"] }
# Release builds turn off WebView2's browser context menu and accelerator keys (Back, Refresh, Print, Save as).
[target.'cfg(windows)'.dependencies]
webview2-com = "0.39"
windows-core = "0.62"
# reads Startup apps' StartupApproved value (already in the tree through the autostart plugin)
winreg = "0.56"
[dev-dependencies]
tempfile = "3"
[profile.release]
codegen-units = 1
lto = true
opt-level = "s"
panic = "abort"
strip = true
[target.'cfg(unix)'.dependencies]
libc = "0.2"