Updating Dependencies
Update npm Packages
If you are using the tauri package:
npm install @tauri-apps/cli@latest @tauri-apps/api@latestyarn up @tauri-apps/cli @tauri-apps/apipnpm update @tauri-apps/cli @tauri-apps/api --latestYou can also detect what the latest version of Tauri is on the command line, using:
npm outdated @tauri-apps/cliyarn outdated @tauri-apps/clipnpm outdated @tauri-apps/cliUpdate Cargo Packages
You can check for outdated packages with cargo outdated or on the crates.io pages: tauri / tauri-build.
Go to src-tauri/Cargo.toml and change tauri and tauri-build to
[build-dependencies]tauri-build = "%version%"
[dependencies]tauri = { version = "%version%" }where %version% is the corresponding version number from above.
Then do the following:
cd src-tauricargo updateAlternatively, you can run the cargo upgrade command provided by cargo-edit which does all of this automatically.
© 2024 Tauri Contributors. CC-BY / MIT