pub struct Config { /* private fields */ }Expand description
Configure vergen to produce the cargo: instructions you need
- See
Buildfor details onVERGEN_BUILD_*instruction configuration - See
Cargofor details onVERGEN_CARGO_*instruction configuration - See
Gitfor details onVERGEN_GIT_*instruction configuration - See
Rustcfor details onVERGEN_RUSTC_*instruction configuration - See
Sysinfofor 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§
source§impl 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§
source§impl Clone for Instructions
impl Clone for Instructions
source§fn clone(&self) -> Instructions
fn clone(&self) -> Instructions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more