Function get_directory_toolchain

Source
pub fn get_directory_toolchain() -> Result<String>
Expand description

Get the default rustup toolchain for the current directory.

Affected by directory overrides, but not command line flags (e.g. cargo +nightly ...)

ยงErrors

If the rustup command fails or its output cannot be interpreted as utf-8, an error is returned.