Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

rustup

$ rustup Foundation Low Risk
Rust Foundation · Code & DevOps · MIT OR Apache-2.0 · macos / linux / windows

rustup 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.

FCRS-1.0 Score
85 /100
Good
Medium Confidence
Zero-Friction Install
brew install rustup
CLI vs MCP Decision CLI Only

rustup provisions local compiler binaries, cross targets, and rust-toolchain.toml overrides on disk; MCP cannot replace local toolchain management.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

Deterministic subcommands (show, toolchain list, target list --installed, check) run headlessly without prompts, though no --json output or --dry-run is supported.

  • rustup show and rustup check run cleanly non-interactively
  • No --json output flag across query commands
Trust & Safety 21 / 25

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)
Setup & Portability 14 / 15

Single static Rust binary with first-class support across macOS, Linux, and Windows, though toolchain downloads are sizable.

  • Universal rustup.rs installer and Homebrew formula across major OSes
Utility & Efficiency 13 / 15

Indispensable for managing Rust channels, clippy/rustfmt components, and cross-compilation targets cleanly.

  • One-command rustup target add and rustup component add
Maintenance & Lineage 10 / 10

Official Rust Foundation project (rust-lang/rustup) dual-licensed MIT/Apache-2.0.

  • First-party rust-lang/rustup repository
Docs & Verifiability 9 / 10

Thorough rustup book at rust-lang.github.io/rustup/ and crisp --help output.

  • Official Rustup Book documentation

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No authentication required; toolchains and components are stored under ~/.rustup/ (or RUSTUP_HOME).

Side Effects
Read-Only Local Write
Cost & Quotas

MIT OR Apache-2.0 open-source CLI maintained by the Rust Project; free to use.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Inspect active toolchain and installed targets
rustup show

Displays the host triple, installed toolchains, active override, and rustc version.

Check for toolchain updates without installing
rustup check

Queries release manifests to report whether stable/nightly toolchains have updates.

Controlled Writes & Previews

Add clippy and rustfmt components
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.toml automatically in CI and agent shells.
  • + Fast single static binary with clean non-interactive subcommands.

Caveats & Pitfalls

  • ! No --json output on rustup show, toolchain list, or target list.
  • ! Interactive installer (rustup-init) requires -y in headless CI/agent setups.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI