fn build_codegen_cmd(
direct: Option<&PathBuf>,
cargo: Option<&str>,
rust_root: &Path,
) -> CommandExpand description
Build a fresh Command invoking robonix-codegen either directly
(preferred — picks up $ROBONIX_CODEGEN_BIN / installed bin / target/
in that order) or via cargo run -p robonix-codegen as a last
resort. Caller appends the actual --lang … -I … -o … args.