pub struct CargoBuilder { /* private fields */ }
Expand description
Builder for running cargo build commands with JSON output
Implementations§
Source§impl CargoBuilder
impl CargoBuilder
Sourcepub fn arg<S: AsRef<OsStr>>(&mut self, arg: S) -> &mut Self
pub fn arg<S: AsRef<OsStr>>(&mut self, arg: S) -> &mut Self
Add additional arguments to the cargo command
Sourcepub fn current_dir<P: AsRef<Path>>(&mut self, dir: P) -> &mut Self
pub fn current_dir<P: AsRef<Path>>(&mut self, dir: P) -> &mut Self
Set the current directory for the cargo command
Sourcepub fn build(&mut self) -> Result<CargoBuildResult>
pub fn build(&mut self) -> Result<CargoBuildResult>
Execute the cargo build command and return the result
Trait Implementations§
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