pub struct Cargo { /* private fields */ }
Expand description
Top-level command.
Implementations§
source§impl Cargo
impl Cargo
sourcepub fn arg<S: AsRef<OsStr>>(self, arg: S) -> Self
pub fn arg<S: AsRef<OsStr>>(self, arg: S) -> Self
Manually pass an argument that is unsupported.
Caution: Passing in a sub-command or --
can throw off the API.
sourcepub fn args<I: IntoIterator<Item = S>, S: AsRef<OsStr>>(self, args: I) -> Self
pub fn args<I: IntoIterator<Item = S>, S: AsRef<OsStr>>(self, args: I) -> Self
Manually pass arguments that are unsupported.
Caution: Passing in a sub-command or --
can throw off the API.
sourcepub fn build(self) -> CargoBuild
pub fn build(self) -> CargoBuild
Run the build
subcommand.
sourcepub fn build_with<S: AsRef<OsStr>>(self, name: S) -> CargoBuild
pub fn build_with<S: AsRef<OsStr>>(self, name: S) -> CargoBuild
Run a custom build
subcommand.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Cargo
impl Send for Cargo
impl Sync for Cargo
impl Unpin for Cargo
impl !UnwindSafe for Cargo
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