pub fn ensure_installed(toolchain: &str) -> Result<()>
Expand description

Installs a toolchain if it is not already installed.

As a workaround 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.