Enum pkg_config::Error [−][src]
pub enum Error {
EnvNoPkgConfig(String),
CrossCompilation,
Command {
command: String,
cause: Error,
},
Failure {
command: String,
output: Output,
},
// some variants omitted
}
Expand description
Represents all reasons pkg-config
might not succeed or be run at all.
Variants
EnvNoPkgConfig(String)
Aborted because of *_NO_PKG_CONFIG
environment variable.
Contains the name of the responsible environment variable.
Tuple Fields of EnvNoPkgConfig
0: String
Detected cross compilation without a custom sysroot.
Ignore the error with PKG_CONFIG_ALLOW_CROSS=1
,
which may let pkg-config
select libraries
for the host’s architecture instead of the target’s.
Failed to run pkg-config
.
Contains the command and the cause.
pkg-config
did not exit sucessfully.
Contains the command and output.