refactor: 升级 tauri 到 2.x

This commit is contained in:
jeasonnow
2024-07-30 10:53:06 +08:00
parent 1d0628ed19
commit 8c07aaae3c
17 changed files with 6475 additions and 1673 deletions

View File

@@ -9,17 +9,25 @@ default-run = "app"
edition = "2021"
rust-version = "1.78.0"
[lib]
name = "app_lib"
crate-type = ["staticlib", "cdylib", "lib"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies]
tauri-build = { version = "1.5.2", features = [] }
tauri-build = { version = "2.0.0-beta", features = [] }
[dependencies]
serde_json = "1.0.116"
serde = { version = "1.0.200", features = ["derive"] }
tauri = { version = "1.6.3", features = ["api-all", "system-tray"] }
tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
tauri-plugin-oauth = { git = "https://github.com/FabianLars/tauri-plugin-oauth", branch = "main" }
tauri = { version = "2.0.0-beta", features = ["tray-icon"] }
tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
tauri-plugin-oauth = { git = "https://github.com/FabianLars/tauri-plugin-oauth", branch = "v2" }
tauri-plugin-clipboard-manager = "2.1.0-beta.6"
tauri-plugin-http = { version = "2.0.0-beta.12" }
[target."cfg(not(any(target_os = \"android\", target_os = \"ios\")))".dependencies]
tauri-plugin-global-shortcut = { version = "2.0.0-beta.8" }
[dev-dependencies]
cargo-bloat = "0.11.1"