Struct vergen::Cargo [−][src]
Configuration for the VERGEN_CARGO_*
instructions
Instructions
The following instructions can be generated:
Instruction | Default |
---|---|
cargo:rustc-env=VERGEN_CARGO_TARGET_TRIPLE=x86_64-unknown-linux-gnu | * |
cargo:rustc-env=VERGEN_CARGO_PROFILE=debug | * |
cargo:rustc-env=VERGEN_CARGO_FEATURES=git,build | * |
- If the
features
field is false, the features instruction will not be generated. - If the
profile
field is false, the profile instruction will not be generated. - If the
target_triple
field is false, the target triple instruction will not be generated. - NOTE - the
target_triple
instruction can differ from thehost_triple
instruction, i.e. during cross compilation
Example
use vergen::{vergen, Config}; let mut config = Config::default(); // Turn off the features instruction *config.cargo_mut().features_mut() = false; // Generate the instructions vergen(config)?;
Implementations
impl Cargo
[src]
pub fn features_mut(&mut self) -> &mut bool
[src]
Enable/Disable the VERGEN_CARGO_FEATURES
instruction
pub fn profile_mut(&mut self) -> &mut bool
[src]
Enable/Disable the VERGEN_CARGO_PROFILE
instruction
pub fn target_triple_mut(&mut self) -> &mut bool
[src]
Enable/Disable the VERGEN_CARGO_TARGET_TRIPLE
instruction
Trait Implementations
impl Clone for Cargo
[src]
impl Copy for Cargo
[src]
impl Debug for Cargo
[src]
impl Default for Cargo
[src]
Auto Trait Implementations
impl RefUnwindSafe for Cargo
impl Send for Cargo
impl Sync for Cargo
impl Unpin for Cargo
impl UnwindSafe for Cargo
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> 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>,