Environment variables
Environment variables rusty reads and sets during builds.
User-configured
| Variable | Default | Description |
|---|---|---|
RUSTY_HOME | ~/.rusty | Global data root (store, cache, toolchains, shims) |
RUSTY_TOOLCHAIN | (from env use) | Override active toolchain name |
RUSTY_JOBS | (unset) | Shared parallel job budget for rusty test (overrides -j / CARGO_BUILD_JOBS) |
RUSTY_TEST_CACHE | on | Set to 0 / false / off to disable file-test binary compile cache |
Set by rusty during builds
| Variable | Description |
|---|---|
RUSTY_PROJECT_ROOT | Workspace root during compile |
CARGO_HOME | CAS-backed cargo home (not ~/.cargo) |
CARGO_TARGET_DIR | <workspace>/.rusty/target |
CARGO_PROFILE | debug or release |
RUSTC_WRAPPER | $RUSTY_HOME/bin/rusty-wrapper for layer caching |
PATH
Add $RUSTY_HOME/bin after rusty env use so cargo, rustc, and related tools resolve through rusty shims.
export PATH="${RUSTY_HOME:-$HOME/.rusty}/bin:$PATH"Example: CI job
export RUSTY_HOME=/cache/rusty
export PATH="$RUSTY_HOME/bin:$PATH"
rusty env use stable
rusty fetch
rusty build --releaseExample: nightly override
cargo +nightly check
# or
RUSTY_TOOLCHAIN=nightly rustc -vV