pub struct Library {
    pub libs: Vec<String>,
    pub link_paths: Vec<PathBuf>,
    pub link_files: Vec<PathBuf>,
    pub frameworks: Vec<String>,
    pub framework_paths: Vec<PathBuf>,
    pub include_paths: Vec<PathBuf>,
    pub ld_args: Vec<Vec<String>>,
    pub defines: HashMap<String, Option<String>>,
    pub version: String,
    /* private fields */
}

Fields

libs: Vec<String>

Libraries specified by -l

link_paths: Vec<PathBuf>

Library search paths specified by -L

link_files: Vec<PathBuf>

Library file paths specified without -l

frameworks: Vec<String>

Darwin frameworks specified by -framework

framework_paths: Vec<PathBuf>

Darwin framework search paths specified by -F

include_paths: Vec<PathBuf>

C/C++ header include paths specified by -I

ld_args: Vec<Vec<String>>

Linker options specified by -Wl

defines: HashMap<String, Option<String>>

C/C++ definitions specified by -D

version: String

Version specified by .pc file’s Version field

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

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.