pub struct Config { /* private fields */ }
Expand description
Configure vergen
to produce the cargo:
instructions you need
- See
Build
for details onVERGEN_BUILD_*
instruction configuration - See
Cargo
for details onVERGEN_CARGO_*
instruction configuration - See
Git
for details onVERGEN_GIT_*
instruction configuration - See
Rustc
for details onVERGEN_RUSTC_*
instruction configuration - See
Sysinfo
for details onVERGEN_SYSINFO_*
instruction configuration
Example
use vergen::Config;
use vergen::ShaKind;
let mut config = Config::default();
// Turn off the build semver instruction
*config.build_mut().semver_mut() = false;
// Change the SHA output to the short variant
*config.git_mut().sha_kind_mut() = ShaKind::Short;
// 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;
// Turn off the sysinfo name instruction
*config.sysinfo_mut().name_mut() = false;
Implementations
sourceimpl Instructions
impl Instructions
sourcepub fn sysinfo_mut(&mut self) -> &mut Sysinfo
pub fn sysinfo_mut(&mut self) -> &mut Sysinfo
Use this to modify the Sysinfo
feature configuration.
Trait Implementations
sourceimpl Clone for Instructions
impl Clone for Instructions
sourcefn clone(&self) -> Instructions
fn clone(&self) -> Instructions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Instructions
impl Debug for Instructions
Auto Trait Implementations
impl RefUnwindSafe for Instructions
impl Send for Instructions
impl Sync for Instructions
impl Unpin for Instructions
impl UnwindSafe for Instructions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more