[package]
name = "app"
version = "0.1.0"
description = "A Tauri App"
authors = ["you"]
license = ""
repository = ""
default-run = "app"
edition = "2021"
rust-version = "1.57"
[build-dependencies]
tauri-build = { version = "1.0.0" }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.0.0", features = [ "api-all" ] }
[features]
# by default Tauri runs in production mode
# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL
default = [ "custom-protocol" ]
# this feature is used for production builds where `devPath` points to the filesystem
# DO NOT remove this
custom-protocol = [ "tauri/custom-protocol" ]
您要注意的最主要部分是 及 依賴。 Generally, they must both be on the latest minor versions as the Tauri CLI, but this is not strictly required. 如果你在運行你的應用時遇到問題,應檢查 和 是否是最新的次要版本上。tauri-buildtauritauritauri-cli
Cargo 版本號使用語義化版本(SemVer)控制。 運行 指令將拉取最新可用的語義版本依賴。 For example, if you specify as the version for , Cargo will detect and download version because it is the latest Semver-compatible version available. 當出現(xiàn)突破性更改時,Tauri 將更新主要版本號。 你能夠安全地升級到最新的次要版本和補丁版本,而不必擔心你的代碼中會有破壞性改變。cargo update1.0.0tauri-build1.0.4
更多建議: