Skip to main content

build_codegen_cmd

Function build_codegen_cmd 

Source
fn build_codegen_cmd(
    direct: Option<&PathBuf>,
    cargo: Option<&str>,
    rust_root: &Path,
) -> Command
Expand 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.