Struct cargo::core::compiler::BuildOutput [−][src]
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.
linker_args: Vec<String>
Linker arguments suitable to be passed to -C link-arg=<args>
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.
Implementations
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]
path: &Path,
pkg_name: &str,
script_out_dir_when_generated: &Path,
script_out_dir: &Path
) -> CargoResult<BuildOutput>
pub fn parse(
input: &[u8],
pkg_name: &str,
script_out_dir_when_generated: &Path,
script_out_dir: &Path
) -> CargoResult<BuildOutput>
[src]
input: &[u8],
pkg_name: &str,
script_out_dir_when_generated: &Path,
script_out_dir: &Path
) -> CargoResult<BuildOutput>
pub fn parse_rustc_flags(
value: &str,
whence: &str
) -> CargoResult<(Vec<PathBuf>, Vec<String>)>
[src]
value: &str,
whence: &str
) -> CargoResult<(Vec<PathBuf>, Vec<String>)>
pub fn parse_rustc_env(
value: &str,
whence: &str
) -> CargoResult<(String, String)>
[src]
value: &str,
whence: &str
) -> CargoResult<(String, String)>
Trait Implementations
impl Clone for BuildOutput
[src]
fn clone(&self) -> BuildOutput
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BuildOutput
[src]
impl Hash for BuildOutput
[src]
Auto Trait Implementations
impl RefUnwindSafe for BuildOutput
impl Send for BuildOutput
impl Sync for BuildOutput
impl Unpin for BuildOutput
impl UnwindSafe for BuildOutput
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,