{"slug":"x402-freeq-one-tools-cargo-run-994028","title":"Rust Code Runner","host":"x402.freeq.one","method":"POST","resource":"https://x402.freeq.one/tools/cargo_run","category":"code","description":"Rust Code Runner: Run a Rust file in a sandbox. One call buys up to an hour: submit code (64 KB) and optional stdin (16 KB), get a job_id, then poll the free result endpoint for stdout/stderr (64 KB each), exit code, timings. Results kept 7 days; extend with same code and job_id. Network access outs","price_listed":0.009941,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":2,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"code":"fn main() { println!(\"hello\"); }","edition":"2021","job_id":"job_abc123","release":false,"stdin":"hello\n"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"description":"JSON request body. See GET /tools for the parameter catalog.","properties":{"code":{"description":"A single Rust source file, max 64 KB, no dependencies","example":"fn main() { println!(\"hello\"); }","type":"string"},"edition":{"description":"Rust edition: 2015, 2018, 2021 (default), or 2024","example":"2021","type":"string"},"job_id":{"description":"Extend a previous job with the same code for one more hour","example":"job_abc123","type":"string"},"release":{"description":"Build in release mode (slower to compile, default false)","example":false,"type":"boolean"},"stdin":{"description":"Optional input fed to the program's stdin, max 16 KB","example":"hello\n","type":"string"}},"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"description":{"type":"string"},"headers":{"additionalProperties":{"type":"string"},"type":"object"},"mcpServerUrl":{"type":"string"},"method":{"enum":["POST"],"type":"string"},"queryParams":{"additionalProperties":{"type":"string"},"type":"object"},"toolName":{"type":"string"},"transport":{"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"content":{"type":"array"},"isError":{"type":"boolean"},"structuredContent":{"type":"object"}},"type":"object"},"type":{"const":"json","type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-03","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.010033,"price_match":false,"latency_ms":775,"error":null}],"description_full":"Rust Code Runner: Run a Rust file in a sandbox. One call buys up to an hour: submit code (64 KB) and optional stdin (16 KB), get a job_id, then poll the free result endpoint for stdout/stderr (64 KB each), exit code, timings. Results kept 7 days; extend with same code and job_id. Network access outside the major clouds. Price varies with upstream compute ($0.002–$0.10), shown before you pay. Pay per call in USDC on Base via x402 — POST https://x402.freeq.one/tools/cargo_run.","last_updated":"2026-11-04T00:18:15.795Z","schemes":["exact"]}