pub struct Config { /* private fields */ }

Implementations

Creates a new set of configuration options which are all initially set to “blank”.

Indicate whether the --static flag should be passed.

This will override the inference from environment variables described in the crate documentation.

Indicate that the library must be at least version vers.

Indicate that the library must be equal to version vers.

Indicate that the library’s version must be in range.

Add an argument to pass to pkg-config.

It’s placed after all of the arguments generated by this library.

Define whether metadata should be emitted for cargo allowing it to automatically link the binary. Defaults to true.

Define whether metadata should be emitted for cargo allowing to automatically rebuild when environment variables change. Defaults to true.

Enable or disable the PKG_CONFIG_ALLOW_SYSTEM_LIBS environment variable.

This env var is enabled by default.

Enable or disable the PKG_CONFIG_ALLOW_SYSTEM_CFLAGS environment variable.

This env var is enabled by default.

Run pkg-config to find the library name.

This will use all configuration previously set to specify how pkg-config is run.

True if pkg-config is used for the host system, or configured for cross-compilation

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. 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.