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|falseSourcepub 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more