Function rustup_toolchain::install

source ·
pub fn install(toolchain: impl AsRef<str>) -> Result<()>
Expand description

Installs a toolchain if it is not already installed.

As a workaround for Rustup (including proxies) is not safe for concurrent use this function is protected by a process-global lock. If you use multiple processes, you need to prevent concurrent rustup usage yourself.

Errors

If rustup is not installed on your system, for example.