[][src]Struct cargo::core::compiler::BuildOutput

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

Contains the parsed output of a custom build script.

Fields

library_paths: Vec<PathBuf>

Paths to pass to rustc with the -L flag

library_links: Vec<String>

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

cfgs: Vec<String>

Various --cfg flags to pass to the compiler

env: Vec<(String, String)>

Additional environment variables to run the compiler with.

metadata: Vec<(String, String)>

Metadata to pass to the immediate dependencies

rerun_if_changed: Vec<PathBuf>

Paths to trigger a rerun of this build script. May be absolute or relative paths (relative to package root).

rerun_if_env_changed: Vec<String>

Environment variables which, when changed, will cause a rebuild.

warnings: Vec<String>

Warnings generated by this build,

Methods

impl BuildOutput[src]

pub fn parse_file(
    path: &Path,
    pkg_name: &str,
    script_out_dir_when_generated: &Path,
    script_out_dir: &Path
) -> CargoResult<BuildOutput>
[src]

pub fn parse(
    input: &[u8],
    pkg_name: &str,
    script_out_dir_when_generated: &Path,
    script_out_dir: &Path
) -> CargoResult<BuildOutput>
[src]

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

pub fn parse_rustc_env(
    value: &str,
    whence: &str
) -> CargoResult<(String, String)>
[src]

Trait Implementations

impl Clone for BuildOutput[src]

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

Performs copy-assignment from source. Read more

impl Debug for BuildOutput[src]

impl Hash for BuildOutput[src]

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

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for BuildOutput

impl Sync for BuildOutput

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self