Skip to content

fix(ci): add nightly toolchain with rust-src to Tauri desktop builds#8115

Merged
h0lybyte merged 1 commit intodevfrom
trunk/tauri-nightly-fix-1773668416
Mar 16, 2026
Merged

fix(ci): add nightly toolchain with rust-src to Tauri desktop builds#8115
h0lybyte merged 1 commit intodevfrom
trunk/tauri-nightly-fix-1773668416

Conversation

@h0lybyte
Copy link
Member

Summary

  • All three Tauri desktop builds (Linux, macOS, Windows) were failing because build:wasm uses RUSTUP_TOOLCHAIN=nightly with -Z build-std=panic_abort,std, but only the stable toolchain was installed
  • The nightly toolchain requires rust-src component to rebuild std for wasm32-unknown-unknown
  • Without it, cargo silently fails and wasm-bindgen can't find isometric_game.wasm

Root cause

error: "/root/.rustup/toolchains/nightly-.../lib/rustlib/src/rust/library/Cargo.lock" does not exist, unable to build with the standard library

Fix

Add dtolnay/rust-toolchain@nightly with targets: wasm32-unknown-unknown and components: rust-src to all three desktop build jobs (Linux, macOS, Windows), alongside the existing stable toolchain.

Test plan

  • CI runs Tauri builds on all three platforms without the failed reading .wasm error

The beforeBuildCommand runs build:wasm which uses RUSTUP_TOOLCHAIN=nightly
with -Z build-std=panic_abort,std. Without nightly + rust-src installed,
the WASM cargo build fails and wasm-bindgen cannot find the output binary.
@github-actions
Copy link
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@h0lybyte h0lybyte merged commit 624c0dd into dev Mar 16, 2026
4 checks passed
@h0lybyte h0lybyte deleted the trunk/tauri-nightly-fix-1773668416 branch March 16, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant