Struct vergen_git2::CargoBuilder
source · pub struct CargoBuilder { /* private fields */ }Available on crate feature
cargo only.Expand description
Builder for Cargo.
Implementations§
source§impl CargoBuilder
impl CargoBuilder
sourcepub fn debug(&mut self, value: bool) -> &mut CargoBuilder
pub fn debug(&mut self, value: bool) -> &mut CargoBuilder
Emit the DEBUG value set by cargo
cargo:rustc-env=VERGEN_CARGO_DEBUG=true|false
sourcepub fn features(&mut self, value: bool) -> &mut CargoBuilder
pub fn features(&mut self, value: bool) -> &mut CargoBuilder
Emit the CARGO_FEATURE_* values set by cargo
cargo:rustc-env=VERGEN_CARGO_FEATURES=<features>
sourcepub fn opt_level(&mut self, value: bool) -> &mut CargoBuilder
pub fn opt_level(&mut self, value: bool) -> &mut CargoBuilder
Emit the OPT_LEVEL value set by cargo
cargo:rustc-env=VERGEN_CARGO_OPT_LEVEL=<opt_level>
sourcepub fn target_triple(&mut self, value: bool) -> &mut CargoBuilder
pub fn target_triple(&mut self, value: bool) -> &mut CargoBuilder
Emit the TARGET value set by cargo
cargo:rustc-env=VERGEN_CARGO_TARGET_TRIPLE=<target_triple>
sourcepub fn dependencies(&mut self, value: bool) -> &mut CargoBuilder
pub fn dependencies(&mut self, value: bool) -> &mut CargoBuilder
Emit the dependencies value derived from Cargo.toml
cargo:rustc-env=VERGEN_CARGO_DEPENDENCIES=<dependencies>
sourcepub fn name_filter<VALUE>(&mut self, value: VALUE) -> &mut CargoBuilder
pub fn name_filter<VALUE>(&mut self, value: VALUE) -> &mut CargoBuilder
Add a name Regex filter for cargo dependencies
cargo:rustc-env=VERGEN_CARGO_DEPENDENCIES=<deps_filtered_by_name>
sourcepub fn dep_kind_filter<VALUE>(&mut self, value: VALUE) -> &mut CargoBuilder
pub fn dep_kind_filter<VALUE>(&mut self, value: VALUE) -> &mut CargoBuilder
Add a DependencyKind filter for cargo dependencies
cargo:rustc-env=VERGEN_CARGO_DEPENDENCIES=<deps_filtered_by_kind>
Trait Implementations§
source§impl Clone for CargoBuilder
impl Clone for CargoBuilder
source§fn clone(&self) -> CargoBuilder
fn clone(&self) -> CargoBuilder
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 moresource§impl Default for CargoBuilder
impl Default for CargoBuilder
source§fn default() -> CargoBuilder
fn default() -> CargoBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for CargoBuilder
impl Send for CargoBuilder
impl Sync for CargoBuilder
impl Unpin for CargoBuilder
impl UnwindSafe for CargoBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more