返回命令列表

Linux command

rustup-default 命令

文本

Copy it and replace filenames, paths, or keywords as needed.

命令示例

Set default toolchain

rustup default stable

Set nightly as default

rustup default nightly

Set specific version

rustup default [1.70.0]

Show current default

rustup default

说明

rustup default sets or shows the default Rust toolchain. The default toolchain is used when no override is active (via `rustup override` or `rust-toolchain.toml`). Common choices are stable, beta, or nightly. If the specified toolchain is not installed, rustup will download and install it automatically.

FAQ

What is the rustup-default command used for?

rustup default sets or shows the default Rust toolchain. The default toolchain is used when no override is active (via `rustup override` or `rust-toolchain.toml`). Common choices are stable, beta, or nightly. If the specified toolchain is not installed, rustup will download and install it automatically.

How do I run a basic rustup-default example?

Run `rustup default stable` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more rustup-default examples?

This page includes 4 examples for rustup-default, plus related commands for nearby Linux tasks.