LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

rustup-which

Show path to Rust toolchain binaries

TLDR

Find cargo path
$ rustup which cargo
copy
Find rustc path
$ rustup which rustc
copy
Find tool in specific toolchain
$ rustup which --toolchain nightly rustfmt
copy

SYNOPSIS

rustup which [options] command

DESCRIPTION

rustup which displays the path to Rust tools. Shows which binary would be executed for a given command. Useful for debugging toolchain issues.

PARAMETERS

--toolchain name

Search in specific toolchain.

SEE ALSO

rustup(1), which(1)

Copied to clipboard
Kai