Struct vergen::Config [−][src]
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
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.
pub fn sysinfo_mut(&mut self) -> &mut Sysinfo
[src]
Use this to modify the Sysinfo
feature configuration.
Trait Implementations
impl Clone for Instructions
[src]
fn clone(&self) -> Instructions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Instructions
[src]
impl Debug for Instructions
[src]
impl Default for Instructions
[src]
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
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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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>,