pub fn get_active_toolchain() -> Result<String>Expand description
Get the profile that was used to call the current executable.
Affected by directory overrides and command line flags (e.g. cargo +nightly ...)
ยงErrors
If the RUSTUP_TOOLCHAIN variable is not set, get_active_toolchain falls back to get_directory_toolchain.
That function returns an error if running rustup or parsing its output as utf-8 fails.