pub struct CargoCommand { /* private fields */ }
Expand description
Helper to deal with the cargo
command.
Implementations§
Source§impl CargoCommand
impl CargoCommand
Sourcepub fn new() -> CargoCommand
pub fn new() -> CargoCommand
Initialize new cargo command.
Source§impl CargoCommand
impl CargoCommand
Sourcepub fn set_manifest_path(&mut self, path: PathBuf)
pub fn set_manifest_path(&mut self, path: PathBuf)
Set path to the Cargo.toml
file.
Sourcepub fn set_target_dir(&mut self, path: PathBuf)
pub fn set_target_dir(&mut self, path: PathBuf)
Set path to the target
directory.
Sourcepub fn set_profile(&mut self, profile: String)
pub fn set_profile(&mut self, profile: String)
Set profile.
Possible values: dev
, release
.
Sourcepub fn set_features(&mut self, features: &[String])
pub fn set_features(&mut self, features: &[String])
Set features.
Sourcepub fn set_check_recommended_toolchain(
&mut self,
check_recommended_toolchain: bool,
)
pub fn set_check_recommended_toolchain( &mut self, check_recommended_toolchain: bool, )
Sets whether to check the version of the recommended toolchain.
Sourcepub fn set_force_recommended_toolchain(
&mut self,
force_recommended_toolchain: bool,
)
pub fn set_force_recommended_toolchain( &mut self, force_recommended_toolchain: bool, )
Sets whether to force the version of the recommended toolchain.
Trait Implementations§
Source§impl Clone for CargoCommand
impl Clone for CargoCommand
Source§fn clone(&self) -> CargoCommand
fn clone(&self) -> CargoCommand
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 moreAuto Trait Implementations§
impl Freeze for CargoCommand
impl RefUnwindSafe for CargoCommand
impl Send for CargoCommand
impl Sync for CargoCommand
impl Unpin for CargoCommand
impl UnwindSafe for CargoCommand
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