Skip to main content

Module build_runner

Module build_runner 

Source
Expand description

Build runner — orchestrates cargo build/test/run cycles.

Wraps cargo build and cargo test with structured error parsing, retry, and timeout handling. Uses tokio::process::Command with the same environment scrubbing as the shell tool so secrets never reach the child.

Designed to be driven by the agent loop (via BuildRunnerTool) or by the autonomous loop’s validation step, replacing the bare sh -c test runner with one that returns compiler diagnostics in a structured form the model can act on directly.

Structs§

BuildResult
Result of a single build or test invocation.
BuildRunner
The build/run orchestrator.
BuildRunnerConfig
Configuration for the build runner.
CompileError
A single parsed compiler diagnostic.

Enums§

DiagnosticSeverity
Severity of a parsed compiler diagnostic.

Functions§

parse_diagnostics
Parse cargo/rustc diagnostic output into structured errors and warnings.