Enum system_deps::Error[][src]

pub enum Error {
    PkgConfig(Error),
    BuildInternalClosureError(StringBuildInternalClosureError),
    FailToRead(StringError),
    InvalidMetadata(String),
    MissingLib(String),
    BuildInternalInvalid(String),
    BuildInternalNoClosure(StringString),
    BuildInternalWrongVersion(StringStringString),
    UnsupportedCfg(String),
}
Expand description

system-deps errors

Variants

PkgConfig(Error)

pkg-config error

BuildInternalClosureError(StringBuildInternalClosureError)

One of the Config::add_build_internal closures failed

FailToRead(StringError)

Failed to read Cargo.toml

InvalidMetadata(String)

Raised when an error is detected in the metadata defined in Cargo.toml

MissingLib(String)

Raised when dependency defined manually using SYSTEM_DEPS_$NAME_NO_PKG_CONFIG did not define at least one lib using SYSTEM_DEPS_$NAME_LIB or SYSTEM_DEPS_$NAME_LIB_FRAMEWORK

BuildInternalInvalid(String)

An environment variable in the form of SYSTEM_DEPS_$NAME_BUILD_INTERNAL contained an invalid value (allowed: auto, always, never)

BuildInternalNoClosure(StringString)

system-deps has been asked to internally build a lib, through SYSTEM_DEPS_$NAME_BUILD_INTERNAL=always' or SYSTEM_DEPS_$NAME_BUILD_INTERNAL=auto’, but not closure has been defined using Config::add_build_internal to build this lib

BuildInternalWrongVersion(StringStringString)

The library which has been build internally does not match the required version defined in Cargo.toml

UnsupportedCfg(String)

The cfg() expression used in Cargo.toml is currently not supported

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.