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

Tuple Fields of PkgConfig

0: Error
BuildInternalClosureError(StringBuildInternalClosureError)

One of the Config::add_build_internal closures failed

Tuple Fields of BuildInternalClosureError

0: String1: BuildInternalClosureError
FailToRead(StringError)

Failed to read Cargo.toml

Tuple Fields of FailToRead

0: String1: Error
InvalidMetadata(String)

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

Tuple Fields of InvalidMetadata

0: String
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

Tuple Fields of MissingLib

0: String
BuildInternalInvalid(String)

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

Tuple Fields of BuildInternalInvalid

0: String
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

Tuple Fields of BuildInternalNoClosure

0: String1: String
BuildInternalWrongVersion(StringStringString)

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

Tuple Fields of BuildInternalWrongVersion

0: String1: String2: String
UnsupportedCfg(String)

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

Tuple Fields of UnsupportedCfg

0: String

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.