-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
doc: add Rust toolchain general install instructions #63426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -237,10 +237,24 @@ tarball and/or browse the git repository checked out at the relevant tag. | |||||||||
| ### Prerequisites | ||||||||||
|
|
||||||||||
| * [A supported version of Python][Python versions] for building and testing. | ||||||||||
| * 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) | ||||||||||
| * Memory: at least 8GB of RAM is typically required when compiling with 4 parallel jobs (e.g: `make -j4`) | ||||||||||
|
|
||||||||||
| ### Unix and macOS | ||||||||||
|
|
||||||||||
| 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. | ||||||||||
|
|
||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
|
||||||||||
| Individual packages such as `rust` and `cargo` in some operating system distributions may be considered | ||||||||||
| as an alternative for CI environments. | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
|
||||||||||
| Consult with relevant operating system documentation to ensure that packages | ||||||||||
| meet the minimum version specified in | ||||||||||
| [Building Node.js with Temporal support](#building-nodejs-with-temporal-support), | ||||||||||
|
Comment on lines
+252
to
+253
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| as packaged versions may lag behind the `stable` version installed by the official instructions. | ||||||||||
| Avoid mixing `rustup` together with `rust` and `cargo` package installations, due to | ||||||||||
| potential version conflicts. | ||||||||||
|
|
||||||||||
| #### Unix prerequisites | ||||||||||
|
|
||||||||||
| * `gcc` and `g++` >= 13.2 or `clang` and `clang++` >= 19.1 | ||||||||||
|
|
@@ -1055,6 +1069,8 @@ requires a Rust toolchain: | |||||||||
| * rustc >= 1.82 (with LLVM >= 19) | ||||||||||
| * cargo >= 1.82 | ||||||||||
|
|
||||||||||
| Refer to [Install Rust](https://rust-lang.org/tools/install/) for instructions. | ||||||||||
|
|
||||||||||
| If `--v8-enable-temporal-support` and `--v8-disable-temporal-support` are both | ||||||||||
| omitted, `configure.py` probes for `cargo` and `rustc`. If either is missing, | ||||||||||
| a warning is printed and Temporal support is disabled. | ||||||||||
|
|
||||||||||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.