I was digging into `trycmd` a bit and I found https://crates.io/crates/escargot which can be used to programmatically trigger a cargo build.