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 Self
pub fn debug(&mut self, value: bool) -> &mut Self
Emit the DEBUG value set by cargo
cargo:rustc-env=VERGEN_CARGO_DEBUG=true|falseSourcepub fn features(&mut self, value: bool) -> &mut Self
pub fn features(&mut self, value: bool) -> &mut Self
Emit the CARGO_FEATURE_* values set by cargo
cargo:rustc-env=VERGEN_CARGO_FEATURES=<features>Sourcepub fn opt_level(&mut self, value: bool) -> &mut Self
pub fn opt_level(&mut self, value: bool) -> &mut Self
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 Self
pub fn target_triple(&mut self, value: bool) -> &mut Self
Emit the TARGET value set by cargo
cargo:rustc-env=VERGEN_CARGO_TARGET_TRIPLE=<target_triple>Sourcepub fn dependencies(&mut self, value: bool) -> &mut Self
pub fn dependencies(&mut self, value: bool) -> &mut Self
Emit the dependencies value derived from Cargo.toml
cargo:rustc-env=VERGEN_CARGO_DEPENDENCIES=<dependencies>Sourcepub fn name_filter<VALUE: Into<Option<&'static str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn name_filter<VALUE: Into<Option<&'static str>>>( &mut self, value: VALUE, ) -> &mut Self
Add a name Regex filter for cargo dependencies
cargo:rustc-env=VERGEN_CARGO_DEPENDENCIES=<deps_filtered_by_name>Sourcepub fn dep_kind_filter<VALUE: Into<Option<DependencyKind>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn dep_kind_filter<VALUE: Into<Option<DependencyKind>>>( &mut self, value: VALUE, ) -> &mut Self
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 duplicate 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 moreAuto Trait Implementations§
impl Freeze for CargoBuilder
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