Skip to content

docs: three docs give three different rustup component lists, none matching the pin - #1030

Merged
nihalpasham merged 2 commits into
NVIDIA:mainfrom
vyncint:docs/component-lists-match-the-pin
Aug 19, 2026
Merged

nihalpasham merged 2 commits into
NVIDIA:mainfrom
vyncint:docs/component-lists-match-the-pin

Conversation

@vyncint

@vyncint vyncint commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Summary

The same onboarding step — install the pinned toolchain and its components — appears in three places with three different answers, and the pin has a fourth:

Location Components Count
README.md:183 rust-src rustc-dev llvm-tools 3
book/appendix/building-from-source.md:42 rust-src rustc-dev llvm-tools 3
book/getting-started/installation.md:243 rust-src rustc-dev rust-analyzer llvm-tools 4
rust-toolchain.toml + rust-analyzer clippy rustfmt 6
cargo oxide new scaffold the same 6 6

rustfmt and clippy are missing from all three, and rustfmt is not optional: cargo oxide fmt shells out to cargo fmt, and cuda-intrinsics-gen runs rustfmt_source on every file it generates (generate.rs:35). #727 added it to the pin for exactly that reason.

Why this bites despite the pin

Inside a checkout it doesn't — rust-toolchain.toml makes rustup install whatever the pin names, which is why check-toolchain-parity.sh deliberately leaves these command lines out of scope ("the rustup component add command lines … are not quotes of it").

But README.md:183 sits directly under cargo +nightly-2026-04-03 install --git … cargo-oxide, which is the out-of-checkout path: there is no rust-toolchain.toml there, so rustup installs exactly what the line names and the gap is real.

All three now name the pin's six, matching the scaffold cargo oxide new writes into user projects.

Left alone deliberately

Three narrower lines that name a component because a specific symptom names it, not as the install step:

  • building-from-source.md:265 — rustup component add rustc-dev …
  • installation.md:371 — rustup component add llvm-tools … for a missing llc
  • installation.md:374 — rustup component add rust-src llvm-tools …

The devcontainer's five (llvm-tools omitted because the image ships LLVM 21 and sets CUDA_OXIDE_LLC) is also deliberate and already guarded, so it is unchanged.

Testing

Local, no GPU.

  • All three lines now expand to exactly the pin's component list, compared programmatically against rust-toolchain.toml
  • just book (sphinx-build -W --keep-going) succeeds
  • check-toolchain-parity.sh and check-crate-inventory.sh pass
  • cargo oxide run <example> — not applicable

vyncint and others added 2 commits August 18, 2026 23:58
…tching the pin

The same onboarding step -- install the pinned toolchain and its components --
appears in three places with three different answers, and the pin has a fourth:

  README.md:183                    rust-src rustc-dev llvm-tools                      [3]
  book/appendix/building-from-source.md:42
                                   rust-src rustc-dev llvm-tools                      [3]
  book/getting-started/installation.md:243
                                   rust-src rustc-dev rust-analyzer llvm-tools        [4]
  rust-toolchain.toml              + rust-analyzer clippy rustfmt                     [6]
  `cargo oxide new` scaffold       the same 6

`rustfmt` and `clippy` are missing from all three, and `rustfmt` is not
optional: `cargo oxide fmt` shells out to `cargo fmt`, and
`cuda-intrinsics-gen` runs `rustfmt_source` on every file it generates
(`generate.rs:35`). NVIDIA#727 added it to the pin for exactly that reason.

Inside a checkout none of this bites, because `rust-toolchain.toml` makes rustup
install whatever the pin names -- which is why `check-toolchain-parity.sh`
deliberately leaves these command lines out of scope ("the `rustup component
add` command lines ... are not quotes of it"). But README.md:183 sits directly
under `cargo +nightly-2026-04-03 install --git ... cargo-oxide`, which is the
out-of-checkout path: there is no `rust-toolchain.toml` there, so rustup installs
exactly what the line names and the gap is real.

All three now name the pin's six, matching the scaffold `cargo oxide new` writes
into user projects.

Left alone deliberately -- three narrower lines that name a component because a
specific symptom names it, not as the install step:

  building-from-source.md:265   `rustup component add rustc-dev ...`
  installation.md:371           `rustup component add llvm-tools ...` for a missing llc
  installation.md:374           `rustup component add rust-src llvm-tools ...`

The devcontainer's five (`llvm-tools` omitted because the image ships LLVM 21
and sets `CUDA_OXIDE_LLC`) is also deliberate and already guarded, so it is
unchanged.

Verified: all three lines now expand to exactly the pin's component list,
compared programmatically against `rust-toolchain.toml`; `just book`
(`sphinx-build -W --keep-going`) succeeds; check-toolchain-parity and
check-crate-inventory pass.

Signed-off-by: Vyncint Ng <[email protected]>
@nihalpasham nihalpasham added documentation Improvements or additions to documentation build-related Build scripts, toolchain discovery, or compilation setup labels Aug 19, 2026
@nihalpasham

Copy link
Copy Markdown
Collaborator
  • Verified the three command lines were the tree's only full-install lines; they now quote the pin's six components in pin order. The symptom-specific one-component lines and the guarded devcontainer subset are deliberately untouched.
  • One commit layered on: the lead-ins claimed every listed component is a backend requirement; one sentence per page now accounts for rust-analyzer, clippy, and rustfmt.

@nihalpasham
nihalpasham merged commit a6f5b5b into NVIDIA:main Aug 19, 2026
79 of 82 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-related Build scripts, toolchain discovery, or compilation setup documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants