Struct system_deps::Config[][src]

pub struct Config { /* fields omitted */ }
Expand description

Structure used to configure metadata before starting to probe for dependencies

Implementations

Create a new set of configuration

Probe all libraries configured in the Cargo.toml [package.metadata.system-deps] section.

The returned hash is using the toml key defining the dependency as key.

Add hook so system-deps can internally build library name if requested by user.

It will only be triggered if the environment variable SYSTEM_DEPS_$NAME_BUILD_INTERNAL is defined with either always or auto as value. In the latter case, func is called only if the requested version of the library was not found on the system.

Arguments

  • name: the name of the library, as defined in Cargo.toml
  • func: closure called when internally building the library. It receives as argument the library name, and the minimum version required.

Trait Implementations

Returns the “default value” for a type. Read more

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.

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.