rustup
$ rustup Foundation Low Riskrustup is the official Rust toolchain multiplexer that installs stable, beta, and nightly compilers alongside components (clippy, rustfmt, rust-analyzer) and cross-compilation targets. It runs cleanly non-interactively (-y), though its query commands output plain text rather than JSON.
brew install rustup rustup provisions local compiler binaries, cross targets, and rust-toolchain.toml overrides on disk; MCP cannot replace local toolchain management.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Deterministic subcommands (show, toolchain list, target list --installed, check) run headlessly without prompts, though no --json output or --dry-run is supported.
rustup showandrustup checkrun cleanly non-interactively- No
--jsonoutput flag across query commands
Downloads official signed/checksummed Rust manifests into ~/.rustup/, and respects per-repo rust-toolchain.toml pins cleanly.
- Toolchain files stay isolated in
~/.rustup/(RUSTUP_HOME)
Single static Rust binary with first-class support across macOS, Linux, and Windows, though toolchain downloads are sizable.
- Universal
rustup.rsinstaller and Homebrew formula across major OSes
Indispensable for managing Rust channels, clippy/rustfmt components, and cross-compilation targets cleanly.
- One-command
rustup target addandrustup component add
Official Rust Foundation project (rust-lang/rustup) dual-licensed MIT/Apache-2.0.
- First-party
rust-lang/rustuprepository
Thorough rustup book at rust-lang.github.io/rustup/ and crisp --help output.
- Official Rustup Book documentation
Security, Auth & Guardrails
No authentication required; toolchains and components are stored under ~/.rustup/ (or RUSTUP_HOME).
MIT OR Apache-2.0 open-source CLI maintained by the Rust Project; free to use.
# rustup Agent Rules - Inspect `rustup show` and `rust-toolchain.toml` before installing new toolchains or targets. - Pass `-y` when bootstrapping via `rustup-init` and avoid changing `rustup default` globally when `rustup override` or `rust-toolchain.toml` suffices.
Agent-Ready Command Recipes
Safe Read-Only Queries
rustup show
Displays the host triple, installed toolchains, active override, and rustc version.
rustup check
Queries release manifests to report whether stable/nightly toolchains have updates.
Controlled Writes & Previews
rustup component add clippy rustfmt
Installs official linter and formatter components for the active toolchain non-interactively.
Strengths for Agents
- + Official, deterministic manager for Rust channels,
clippy/rustfmt, and cross targets. - + Respects repo-level
rust-toolchain.tomlautomatically in CI and agent shells. - + Fast single static binary with clean non-interactive subcommands.
Caveats & Pitfalls
- ! No
--jsonoutput onrustup show,toolchain list, ortarget list. - ! Interactive installer (
rustup-init) requires-yin headless CI/agent setups.