Struct vergen::Config [−][src]
pub struct Config { /* fields omitted */ }
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::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;
// Turn off the sysinfo name instruction
*config.sysinfo_mut().name_mut() = false;
Implementations
Use this to modify the Sysinfo
feature configuration.
Trait Implementations
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
Mutably borrows from an owned value. Read more