Diagnose a Rust Cargo build or test error
Extract Rust compiler error codes, source locations, Cargo dependency failures, borrow-checker diagnostics, failed tests, and panics; return focused cargo commands and evidence-linked repair guidance.
$0.003 USDC POST /v1/cargo-error
developer-tools · rust · cargo · compiler
Use it for
- diagnose Rust cargo error
- parse rustc compiler error
- fix Cargo test failure
Example input
{
"log": "FAILED tests/test_math.py::test_total - AssertionError: assert 1 == 2",
"step_name": "pytest"
}Example output
{
"success": true,
"language": "rust",
"rerun_command": "cargo check",
"repair_steps": [
"Run cargo check to reproduce the first compiler diagnostic."
]
}Call it
Use an x402 v2 payment-aware client from the quickstart. An unpaid request safely returns the exact payment challenge before any work runs.