Struct vergen::Config[][src]

pub struct Config { /* fields omitted */ }

Configure vergen to produce the cargo: instructions you need

  • See Build for details on VERGEN_BUILD_* instruction configuration
  • See Cargo for details on VERGEN_CARGO_* instruction configuration
  • See Git for details on VERGEN_GIT_* instruction configuration
  • See Rustc for details on VERGEN_RUSTC_* instruction configuration

Example

use vergen::Config;
use vergen::TimeZone;

let mut config = Config::default();
// Turn off the build semver instruction
*config.build_mut().semver_mut() = false;
// Change the commit timestamp timezone to local
*config.git_mut().commit_timestamp_timezone_mut() = TimeZone::Local;
// Turn off the LLVM version instruction
*config.rustc_mut().llvm_version_mut() = false;
// Turn off the cargo profile instruction
*config.cargo_mut().profile_mut() = false;

Implementations

impl Instructions[src]

pub fn build_mut(&mut self) -> &mut Build[src]

Use this to modify the Build feature configuration.

pub fn cargo_mut(&mut self) -> &mut Cargo[src]

Use this to modify the Cargo feature configuration.

pub fn git_mut(&mut self) -> &mut Git[src]

Use this to modify the Git feature configuration.

pub fn rustc_mut(&mut self) -> &mut Rustc[src]

Use this to modify the Rustc feature configuration.

Trait Implementations

impl Clone for Instructions[src]

impl Copy for Instructions[src]

impl Debug for Instructions[src]

impl Default for Instructions[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> 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.