Struct pkg_config::Config [] [src]

pub struct Config {
    // some fields omitted
}

Methods

impl Config
[src]

fn new() -> Config

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

fn statik(&mut self, statik: bool) -> &mut Config

Indicate whether the --static flag should be passed.

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

fn atleast_version(&mut self, vers: &str) -> &mut Config

Indicate that the library must be at least version vers.

fn arg<S: AsRef<OsStr>>(&mut self, arg: S) -> &mut Config

Add an argument to pass to pkg-config.

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

fn cargo_metadata(&mut self, cargo_metadata: bool) -> &mut Config

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

fn probe(&self, name: &str) -> Result<LibraryError>

Run pkg-config to find the library name.

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

Trait Implementations

impl Clone for Config
[src]

fn clone(&self) -> Config

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more