LinuxCommandLibrary

rustup-run

Run commands with a specific Rust toolchain

TLDR

Run command with toolchain

$ rustup run stable cargo build
copy
Run with nightly
$ rustup run nightly rustc --version
copy
Run specific version
$ rustup run [1.70.0] cargo test
copy

SYNOPSIS

rustup run toolchain command [args...]

DESCRIPTION

rustup run executes a command with a specific Rust toolchain. Temporarily uses specified toolchain regardless of default or override settings.

PARAMETERS

--install

Install toolchain if missing.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community