1 2 3 4 5 6 7 8 9 10 11
use std::process::Command; use crate::util::SubstrateResult; pub fn build() -> SubstrateResult<()> { Command::new("cargo-contract") .args(["contract", "build"]) .status()?; Ok(()) }