Skip to main content

Module toolchain

Module toolchain 

Source

Structs§

Toolchain
ToolchainFile 🔒
This struct is used to deserialize the “rust-toolchain” file.

Statics§

PINNED_TOOLCHAIN 🔒

Functions§

driver_cmd
driver_path
get_pinned_toolchain 🔒
in_toolchain
Build a command that calls the given binary in the correct toolchain environment. This uses rustup to provide the correct toolchain, unless we’re in a nix context where the toolchain is already in PATH.
toolchain_path
Get the path to the sysroot, where the cargo and rustc binaries can be found. Prefer using in_toolchain instead of this as much as possible.
toolchain_version