2025-03-14 21:59:59 -06:00
|
|
|
# rustup which
|
|
|
|
|
|
|
|
|
|
> Display which binary will be run for a command managed by `rustup`.
|
|
|
|
|
> Like `which`, but searches a Rust toolchain instead of `$PATH`.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://rust-lang.github.io/rustup/>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display the path to the binary in the default toolchain:
|
|
|
|
|
|
|
|
|
|
`rustup which {{command}}`
|
|
|
|
|
|
|
|
|
|
- Display the path to the binary in the specified toolchain (see `rustup help toolchain` for more information):
|
|
|
|
|
|
|
|
|
|
`rustup which --toolchain {{toolchain}} {{command}}`
|