mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-29 08:41:15 -03:00
When cargo is installed via rustup, running cargo actually goes through a proxy managed by rustup. This proxy determines the actual toolchain to use, depending on environment variables, directory overrides etc. In some cases, the proxy may automatically install the selected toolchain if it's not yet installed, for example when first working on a project that pins its rust toolchain via a `rust-toolchain.toml` file. In that case, running cargo in the completion script can block the prompt for a very long time. To avoid this, we instruct the rustup proxy not to auto-install any toolchain with an environment variable. Closes #12575