Struct cargo::ops::BuildOutput [] [src]

pub struct BuildOutput {
    pub library_paths: Vec<PathBuf>,
    pub library_links: Vec<String>,
    pub cfgs: Vec<String>,
    pub metadata: Vec<(String, String)>,
    pub rerun_if_changed: Vec<String>,
}

Contains the parsed output of a custom build script.

Fields

library_paths

Paths to pass to rustc with the -L flag

Names and link kinds of libraries, suitable for the -l flag

cfgs

Various --cfg flags to pass to the compiler

metadata

Metadata to pass to the immediate dependencies

rerun_if_changed

Glob paths to trigger a rerun of this build script.

Methods

impl BuildOutput

fn parse_file(path: &Path, pkg_name: &str) -> CargoResult<BuildOutput>

fn parse(input: &str, pkg_name: &str) -> CargoResult<BuildOutput>

fn parse_rustc_flags(value: &str, whence: &str) -> CargoResult<(Vec<PathBuf>, Vec<String>)>

Trait Implementations

Derived Implementations

impl Hash for BuildOutput

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Debug for BuildOutput

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for BuildOutput

fn clone(&self) -> BuildOutput

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