Repository navigation
chore(deps): upgrade Tauri - #1412
Conversation
Bump Tauri core/CLI and official plugins (Rust + npm) to the newest stable versions published at least 24 hours ago. Leave pnpm-workspace.yaml untouched.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (6)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Rust stable renamed AtomicUsize::fetch_update to try_update; clippy with -D warnings fails the Tauri upgrade CI on this call site.
Bot reference: dependency upgrade playbook (Tauri / Node+Rust monorepo)This comment is lasting documentation for other bots doing dep upgrades on Hard rules
Find what to upgradegit fetch origin master
git checkout -B chore/upgrade-<name> origin/master
# JS / npm (@tauri-apps/* etc.)
git grep -nE '@tauri-apps|tauri' -- '**/package.json' 'package.json'
# Rust crates
git grep -nE 'tauri' -- '**/Cargo.toml' 'Cargo.toml'Resolve latest eligible versions from npm + crates.io (User-Agent required for crates.io API). Prefer matching majors across Tauri core and plugins (stay on Tauri 2.x until a deliberate 3.x migration). Commands — Node (pnpm)
corepack enable
pnpm install # regenerate pnpm-lock.yaml after package.json edits
pnpm typecheck
pnpm lint # oxfmt + oxlint + eslint
pnpm build # turbo build (desktop vite, etc.)
# optional targeted tests:
# pnpm test --run path/to/relevant.test.tsCommands — Rust (cargo)CI rust-lint = # toolchain
rustup component add rustfmt clippy
# Linux system deps (same set as CI setup-rust)
sudo apt-get install -y \
libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev \
libxdo-dev libssl-dev build-essential curl wget file patchelf
# after Cargo.toml bumps:
cargo update -p <crate> ... # or cargo update for the bumped packages
node apps/desktop/scripts/build-sidecar.mjs
cargo fmt --all -- --check
cargo clippy --workspace --all-targets -- -D warnings
cargo build --workspace
# optional: cargo test --workspaceGotcha: newer Rust stable may deprecate std APIs (e.g. Gotcha: first-party plugins under Apply bumps consistentlyFor Tauri stack upgrades, bump both ecosystems in lockstep where versions exist:
Leave packages already at the latest eligible stable unchanged (note that in the PR body). Do not take Tauri 3 alphas unless asked. PR description requirements (detailed)For each upgraded package/crate, include:
Also state: age-gate cutoff used, that Open the draft PR + watch CIgit add Cargo.toml Cargo.lock apps/desktop/package.json apps/desktop/src-tauri/Cargo.toml pnpm-lock.yaml
# NEVER stage pnpm-workspace.yaml
git diff -- pnpm-workspace.yaml # must be empty
git commit -m "chore(deps): upgrade Tauri"
git push -u origin HEAD
gh pr create --draft --base master --title "chore(deps): upgrade Tauri" --body-file ./pr-body.md
# watch until green
gh pr checks <n> --watch
# if red: fetch failing job logs, fix, push, re-watch
gh run view <run_id> --job <job_id> --log-failedRequired CI signal: workflow job Checklist before “done”
|
Document the age gate, manifest-vs-lock rules, Tauri alignment, local Node+Rust checks, and draft PR expectations used on the Tauri upgrade.
Keep only the hard requirements bots must follow; drop redundant checklists and long command examples.
Drop no-fork and CLI examples; allow workspace age-gate overrides; shorten the CONTRIBUTING blurb.
Document that dep bumps must run pnpm dedupe, and apply it on this branch (lockfile drops one duplicate package).
Summary
Upgrade Tauri core, CLI, and related official plugins to the latest stable versions that are at least 24 hours old (aligned with this repo’s Renovate
minimumReleaseAge: 1 daysfor grouped npm deps). Skipped Tauri 3.0 alphas and any release published within the last 24 hours.pnpm-workspace.yamlis unchanged.Version selection
Resolved against crates.io / npm registry publish times as of ~2026-10-02 03:20 UTC. Cutoff: published ≤ 2026-10-01 03:20 UTC. Prereleases (
alpha/rc) were excluded.Upgrades
Core (Rust)
tauritauri-buildtauri-pluginWhat changed (from release notes):
tauri2.12.0 → 2.12.1: Bug fix —macos-private-api/macOSPrivateAPIis no longer required to use transparency or fullscreen on macOS (#16166). Also bumps internal deps (tauri-utils/runtime/runtime-wry/build/macros).tauri-build2.7.0 → 2.7.1: Bug fix — correctly copyWebView2Loader.dllfor Windows GNU targets when using Cargo’s new nightly build-directory layout (#16164).tauri-plugin2.7.0 → 2.7.1: Bug fix — skip Android/iOS project setup inBuilder::build/try_buildon docs.rs (read-only mounts) so plugins with native mobile projects can build docs for mobile targets (#16186).Official plugins (Rust)
tauri-plugin-openertauri-plugin-dialogtauri-plugin-updatertauri-plugin-deep-linktauri-plugin-single-instanceUnchanged (already latest eligible stable):
tauri-plugin-http2.8.0,tauri-plugin-process2.4.0,tauri-plugin-window-state2.5.0,tauri-plugin-iap0.9.1 (newer0.10.0-rc.*only).What changed (from release notes):
tauri-plugin-opener2.6.0 → 2.7.0: Updated Windows deps (windows→ 0.62). PublicError::Win32Errorwrapswindows::core::Error(#3480).tauri-plugin-dialog2.8.0 → 2.8.1: Fix docs.rs Android build — build script detects docs.rs viaDOCS_RS(569ee82).tauri-plugin-updater2.13.0 → 2.13.1: Updatedwindows-systo 0.61 (#3480); bumpeddirsto v7 (#3573); bumpedinferto 0.22 (#3501).tauri-plugin-deep-link2.5.0 → 2.6.1: 2.6.0 updated Windows registry/result crates (#3480); 2.6.1 same docs.rs Android build-script fix as dialog.tauri-plugin-single-instance2.5.0 → 2.5.2: 2.5.1 updatedwindows-systo 0.61 and deep-link to 2.6.0; 2.5.2 upgrades deep-link dependency to 2.6.1.npm (
@tauri-apps/*)@tauri-apps/api@tauri-apps/cli@tauri-apps/plugin-deep-link@tauri-apps/plugin-dialog@tauri-apps/plugin-http@tauri-apps/plugin-opener@tauri-apps/plugin-updaterUnchanged:
@tauri-apps/plugin-process^2.4.0 (already latest eligible).What changed (from release notes):
@tauri-apps/api2.12.0 → 2.12.1: Same macOS transparency/fullscreen private-API fix as core (#16166).@tauri-apps/cli2.12.0 → 2.12.1: Enhancement — ignoresrc-tauriintauri plugin initexample template (#16165).@tauri-apps/plugin-http2.8.0 is a re-release of the 2.7.0 JS package to align with the Rust crate major/minor (#3656).Files touched
Cargo.toml(workspacetauri/tauri-plugin)apps/desktop/src-tauri/Cargo.tomlapps/desktop/package.jsonCargo.lock,pnpm-lock.yamlVerification
pnpm typecheck— passpnpm lint— passpnpm build— passcargo updatefor the bumped crates (MSRV note: these crates require Rust 1.90+; CI usesdtolnay/rust-toolchainstable)Summary by CodeRabbit