Skip to content

doc: add Rust toolchain general install instructions#63426

Open
MikeMcC399 wants to merge 2 commits into
nodejs:mainfrom
MikeMcC399:rust-install-instructions
Open

doc: add Rust toolchain general install instructions#63426
MikeMcC399 wants to merge 2 commits into
nodejs:mainfrom
MikeMcC399:rust-install-instructions

Conversation

@MikeMcC399
Copy link
Copy Markdown
Contributor

@MikeMcC399 MikeMcC399 commented May 19, 2026

Refs: #63225

Situation

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

It does not provide any guidance on how to install in this section.

Change

Add link:

Install Rust

to the documentation sections:

Describe alternate use of distro packages rust and cargo

Notes

By default, Install Rust installs in a per-user configuration.

Platform advice may differ depending on the use-case. A local developer's system is probably best served by using a downloaded rustup. A build-and-test CI system may alternatively prefer to install distro specific rustup / rust / cargo packages.

Node.js 26 requires a minimum Rust toolchain version 1.82. Some older distros package incompatible versions. For example,
Debian 12 (bookworm / oldstable) offers version 1.63, whereas Debian 13 (trixie / stable) offers the compatible Rust toolchain version 1.85.

Backporting

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

@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 19, 2026
Signed-off-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
@MikeMcC399 MikeMcC399 force-pushed the rust-install-instructions branch from a114673 to 47c1e91 Compare May 19, 2026 10:20
@MikeMcC399 MikeMcC399 marked this pull request as ready for review May 19, 2026 10:21
Comment thread BUILDING.md Outdated
@richardlau richardlau added commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. author ready PRs that have at least one approval, no pending requests for changes, and a CI started. labels May 19, 2026
Comment thread BUILDING.md
Comment on lines +240 to +241
* A Rust toolchain if [Building Node.js with Temporal support](#building-nodejs-with-temporal-support)
is required (enabled by default starting in Node.js 26)
Copy link
Copy Markdown
Contributor

@aduh95 aduh95 May 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* A Rust toolchain if [Building Node.js with Temporal support](#building-nodejs-with-temporal-support)
is required (enabled by default starting in Node.js 26)
* A Rust toolchain if [building Node.js with `Temporal` support](#building-nodejs-with-temporal-support)
(auto-detect by default as of Node.js 26.0.0).

Comment thread BUILDING.md

Developers should use the official [Install Rust](https://rust-lang.org/tools/install/)
instructions to install a Rust toolchain, required for Temporal support introduced in Node.js 26.

Copy link
Copy Markdown
Contributor

@aduh95 aduh95 May 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not developer-specific, and in fact I wouldn't be surprised if most developers don't need any Rust toolchain

Suggested change
Consult the official [Install Rust](https://rust-lang.org/tools/install/)
instructions to install a Rust toolchain, required for Temporal support introduced in Node.js 25.4.0.

Comment thread BUILDING.md
instructions to install a Rust toolchain, required for Temporal support introduced in Node.js 26.

Individual packages such as `rust` and `cargo` in some operating system distributions may be considered
as an alternative for CI environments.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why just for CI? There's nothing CI specific about those distributions of Rust AFAIK

Suggested change
as an alternative for CI environments.
as an alternative, for example in CI environments.

Comment thread BUILDING.md
Comment on lines +252 to +253
meet the minimum version specified in
[Building Node.js with Temporal support](#building-nodejs-with-temporal-support),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
meet the minimum version specified in
[Building Node.js with Temporal support](#building-nodejs-with-temporal-support),
meet the minimum version specified in the
[Building Node.js with Temporal support](#building-nodejs-with-temporal-support) section,

@aduh95 aduh95 removed the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 19, 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. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. doc Issues and PRs related to the documentations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants