Skip to content

build,win: add Rust toolchain automated configuration Windows#63381

Open
MikeMcC399 wants to merge 1 commit into
nodejs:mainfrom
MikeMcC399:rust-on-windows-winget
Open

build,win: add Rust toolchain automated configuration Windows#63381
MikeMcC399 wants to merge 1 commit into
nodejs:mainfrom
MikeMcC399:rust-on-windows-winget

Conversation

@MikeMcC399
Copy link
Copy Markdown
Contributor

@MikeMcC399 MikeMcC399 commented May 17, 2026

Refs: #63225
Refs: #63367

Situation

Temporal support is enabled by default starting in Node.js 26. Building it requires a Rust toolchain.

Windows prerequisites - Automated install with WinGet states:

WinGet configuration files can be used to install all the required prerequisites for Node.js development easily.

This is no longer true, because a Rust toolchain is required and not automatically installed. The WinGet configuration files do not install Rust.

Change

Verification

On Windows 11 25H2 (amd64)

Uninstall any related previously installed prerequisites from Settings > Apps, such as:

  • Rust
  • Microsoft Visual Studio Installer
  • Python
  • Python Install Manager
  • Git

Uninstall:

  • NASM (delete C:\Program Files\NASM)

In a PowerShell terminal, execute each of the following separately. Between each test,
uninstall Microsoft Visual Studio Installer:

winget configure .\.configurations\configuration.vsBuildTools.dsc.yaml
winget configure .\.configurations\configuration.dsc.yaml # Community Edition
winget configure .\.configurations\configuration.vsProfessional.dsc.yaml
winget configure .\.configurations\configuration.vsEnterprise.dsc.yaml

Check installation:

rustc --version
cargo --version

Expect the following versions or above:

rustc 1.95.0 (59807616e 2026-04-14)
cargo 1.95.0 (f2d3ce0bd 2026-03-21)

Backporting

This PR is applicable to Node.js >=26 only and should not be backported to earlier release lines.

Signed-off-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/build
  • @nodejs/tsc

@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to build files or the CI. doc Issues and PRs related to the documentations. labels May 17, 2026
@MikeMcC399 MikeMcC399 marked this pull request as ready for review May 17, 2026 11:29
@targos targos added dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. dont-land-on-v24.x PRs that should not land on the v24.x-staging branch and should not be released in v24.x. labels May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Issues and PRs related to build files or the CI. doc Issues and PRs related to the documentations. dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. dont-land-on-v24.x PRs that should not land on the v24.x-staging branch and should not be released in v24.x.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants