/// Execute `cargo build` command
Execute `cargo build` command
Execute ` cargo build ` command
pub fn execute(&self) -> Result<()> {
        let mut build = self.build_command("build")?;
        let mut child = build.spawn().context("Failed to run cargo build")?;
        let status = child.wait().expect("Failed to wait on cargo build process");
        if !status.success() {
            process::exit(status.code().unwrap_or(1));
        }
        Ok(())
    }
pub fn execute ( & self ) -> Result < ( ) > { let mut build = self . build_command ( " " ) ? ; let mut child = build . spawn ( ) . context ( " " ) ? ; let status = child . wait ( ) . expect ( " " ) ; if ! status . success ( ) { process :: exit ( status . code ( ) . unwrap_or ( 1 ) ) ; } Ok ( ( ) ) }
Execute `cargo build` command
Execute ` cargo build ` command
&self