pub enum ToolchainError {
Show 18 variants
VswhereMissing {
path: PathBuf,
},
VswhereFailed {
detail: String,
},
NoVisualStudio,
ClVersionUnknown {
path: PathBuf,
},
NoWindowsSdk {
looked_in: Vec<PathBuf>,
},
UnknownCompiler {
name: String,
source: String,
},
UnsupportedCompiler {
name: String,
source: String,
},
CompilerNotFound {
compiler: &'static str,
},
NoUsableCompiler {
compiler: &'static str,
excluded: Vec<String>,
},
NoMatchingVersion {
compiler: &'static str,
requirements: Vec<String>,
found: Vec<Version>,
},
InvalidVersionRequirement {
compiler: String,
text: String,
},
VisualStudioNotAt {
path: PathBuf,
},
RejectedByStl {
compiler: &'static str,
version: Version,
needed: Option<String>,
message: String,
},
GccUnreadable {
path: PathBuf,
asked: &'static str,
output: String,
},
ProbeFailed {
compiler: &'static str,
output: String,
},
EditionNotSupported {
compiler: &'static str,
version: Version,
edition: &'static str,
needed: Version,
},
ConfiguredToolMissing {
setting: String,
path: PathBuf,
},
ConfiguredToolUnusable {
setting: String,
path: PathBuf,
why: String,
},
}Expand description
A toolchain problem.
Variants§
VswhereMissing
vswhere.exe is not where every Visual Studio 2017+ installer puts it.
VswhereFailed
vswhere.exe ran but failed, or printed something that is not its JSON.
NoVisualStudio
No Visual Studio or Build Tools installation has the C++ x64 tools.
ClVersionUnknown
cl.exe could not be run, or printed no version.
NoWindowsSdk
No Windows SDK with the x64 headers and libraries.
UnknownCompiler
A compiler name cuno does not know.
UnsupportedCompiler
A compiler cuno does not support yet (gcc, safec).
CompilerNotFound
No copy of the chosen compiler was found.
NoUsableCompiler
Copies were found, but none is eligible (a preview, a MinGW build, one that does not run).
Fields
NoMatchingVersion
Copies were found, but none satisfies the requirements.
Fields
InvalidVersionRequirement
A [toolchain.version] value that is not a requirement.
VisualStudioNotAt
[toolchain.paths] msvc names a directory with no usable Visual Studio.
RejectedByStl
The MSVC standard library rejects this Clang (STL1000).
Fields
GccUnreadable
The GCC selected did not say where its headers or libraries are
(toolchain.md, “MinGW (GCC)”), which the build needs to know.
Fields
ProbeFailed
The standard library probe failed for another reason, so no verdict.
EditionNotSupported
The selected compiler is too old for the package’s edition.
Fields
ConfiguredToolMissing
A tool path the user configured has no file.
Fields
ConfiguredToolUnusable
A tool path the user configured names a tool that cannot be used (it does not run, prints no version, is a preview, or targets MinGW).
Trait Implementations§
Source§impl Clone for ToolchainError
impl Clone for ToolchainError
Source§impl CunoError for ToolchainError
impl CunoError for ToolchainError
Source§impl Debug for ToolchainError
impl Debug for ToolchainError
Source§impl Display for ToolchainError
impl Display for ToolchainError
Source§impl Error for ToolchainError
impl Error for ToolchainError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()