pub struct Cargo { /* private fields */ }
Expand description
Top-level command.
Implementations
sourceimpl 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 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more