Skip to main content

0008: Tauri 2.13 and a Rust 1.94 minimum

Status: Accepted Date: 2026-12-03

Context

GitHub reported four open security alerts on crates the app could not update on its own:
  • zip 4.6.1 (three alerts, one critical), pulled in by tauri-plugin-updater 2.12. The fix is zip 9, which the plugin uses from 2.14.1. That plugin version needs Tauri 2.12 or newer.
  • glib 0.18.5 (one alert), pinned by Tauri 2.11’s Linux stack (gtk 0.18). Tauri 2.13 moved to gtk 0.19, which uses a fixed glib.
Real exposure was low: the updater only opens a zip on Windows, only for a zip payload, and only after the signature check (we ship the raw NSIS installer), and nothing in the dependency tree calls the affected glib function. The alerts could still only be closed by moving Tauri. Two things made the upgrade more than a version bump:
  • Tauri 2.13 needs tray-icon 0.27, and the workspace patched tray-icon 0.24.2 (see 0004).
  • The new crates raise the compiler floor. Tauri 2.13 needs Rust 1.92, and tauri-plugin-dialog 2.9 and tauri-plugin-fs 2.8 need 1.94.

Decision

Upgrade to Tauri 2.13, tauri-plugin-updater 2.14.1 and the matching npm packages, and declare rust-version = "1.94". The tray-icon fork stays, rebased: branch echophrase/0.27.0-guid is tray-icon 0.27.0 plus one commit adding the process-wide set_default_guid. The GUID attribute itself (tauri-apps/tray-icon#366) shipped upstream in 0.27, but Tauri 2.13’s TrayIconBuilder still does not pass it through.

Consequences

  • Breaking for contributors: building needs Rust 1.94 or newer (rustup update stable). The old declared floor was 1.89 and was never verified by a build on that version; neither is 1.94. CI builds on the latest stable.
  • No change to the Linux system packages: the new crates still use webkit2gtk-4.1, libsoup-3.0 and gtk+-3.0.
  • The updater changed behavior between 2.12 and 2.14: it verifies the package bytes again before installing, uses a stricter signature library, and on macOS swaps the app bundle atomically so a failed install no longer deletes the installed app. The first release on this version must be tested with a real update on Windows and macOS.
  • The three Tauri and tao workarounds in KNOWN_ISSUES.md were re-checked against the new versions and all stay. In particular tao 0.38 still delivers the loop-destroyed event before its own process::exit on Windows session end, so the force-exit from 0003 still runs first.
  • Every future Tauri upgrade that changes the tray-icon version needs the one fork commit redone on the new tag, until Tauri exposes the GUID attribute.

Alternatives considered

  • Dismiss the alerts as not exploitable. Rejected: true today, but it leaves a critical alert open on a public repo and depends on nobody ever shipping a zip update payload.
  • Bump only the updater plugin. Not possible: 2.14.1 requires Tauri 2.12 or newer.
  • Drop the tray-icon fork and lose the stable GUID. Rejected: Scoop users would lose their tray pin on every update again.