[−][src]Function probe_rs_cli_util::build_artifact
pub fn build_artifact(work_dir: &Path, args: &[String]) -> Result<PathBuf>
Run cargo build
and return the path to the generated binary artifact.
args
will be passed to cargo build, and --message-format json
will be
added to the list of arguments.
The output of cargo build
is parsed to detect the path to the generated binary artifact.
If either no artifact, or more than a single artifact are created, an error is returned.