Toolchains
Install, select, and proxy Rust toolchains through rusty env and PATH shims.
rusty inverts rustup: toolchain management lives in the same binary as package management. No separate rustup install.
Install and select
rusty env install stable
rusty env install nightly
rusty env use stable
rusty env list
rusty env showenv install accepts optional target triples as additional arguments. env uninstall <id> removes a toolchain directory under $RUSTY_HOME/toolchains/.
Resolve binaries
rusty env which rustc
rusty env which cargowhich prints the path to the program in the active toolchain.
PATH shims
After env use, $RUSTY_HOME/bin contains hardlinks to rusty itself. Invoking cargo or rustc through those shims dispatches to the active toolchain:
export PATH="${RUSTY_HOME:-$HOME/.rusty}/bin:$PATH"
cargo build
rustc -vVOverrides
| Mechanism | Example |
|---|---|
+toolchain suffix | cargo +nightly build |
RUSTY_TOOLCHAIN env | RUSTY_TOOLCHAIN=stable rustc -vV |
rusty proxy | rusty proxy cargo build (explicit dispatch) |
Bootstrap layout
env show ensures the rusty home layout exists:
~/.rusty/
├── bin/ # shims (cargo, rustc, rusty-wrapper, …)
├── cache/ # artifact cache
├── store/ # content-addressable blobs
└── toolchains/ # installed compiler treesOverride the root with RUSTY_HOME when running on shared builders or in containers.
Relationship to builds
rusty build, test, and cargo passthrough all expect a toolchain on PATH or a successful env use. If cargo is missing, rusty prints:
rusty: 'cargo' was not found on PATH
install a toolchain with `rusty env install stable`.