pub fn snoop_build(dir: PathBuf, tools: &Tools, global_opts: &Opts) -> Result<i32, ExecutionError> {
    run_cmd_directly(
        format!(
            "{} run {}",
            tools.cargo_engine, global_opts.cargo_engine_args
        ),
        &dir,
        vec![
            ("PERSEUS_ENGINE_OPERATION", "build"),
            ("CARGO_TARGET_DIR", "dist/target_engine"),
            ("RUSTFLAGS", "--cfg=engine"),
        ],
    )
}
Runs static generation processes directly so the user can see detailed logs.
This is commonly used for allowing users to see `dbg!` and the like in their
builder functions.
packages/perseus-cli/src/snoop.rs