[][src]Struct cargo_metadata::BuildScript

pub struct BuildScript {
    pub package_id: PackageId,
    pub linked_libs: Vec<PathBuf>,
    pub linked_paths: Vec<PathBuf>,
    pub cfgs: Vec<String>,
    pub env: Vec<(String, String)>,
    pub out_dir: PathBuf,
    // some fields omitted
}

Output of a build script execution.

Fields

package_id: PackageId

The package this build script execution belongs to

linked_libs: Vec<PathBuf>

The libs to link

linked_paths: Vec<PathBuf>

The paths to search when resolving libs

cfgs: Vec<String>

Various --cfg flags to pass to the compiler

env: Vec<(String, String)>

The environment variables to add to the compilation

out_dir: PathBuf

The OUT_DIR environment variable where this script places its output

Added in Rust 1.41.

Trait Implementations

impl Clone for BuildScript[src]

impl Debug for BuildScript[src]

impl<'de> Deserialize<'de> for BuildScript[src]

impl Eq for BuildScript[src]

impl Hash for BuildScript[src]

impl PartialEq<BuildScript> for BuildScript[src]

impl Serialize for BuildScript[src]

impl StructuralEq for BuildScript[src]

impl StructuralPartialEq for BuildScript[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.