Rust Code Runner
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.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://x402.freeq.one/tools/cargo_run
| Category | Code and developer |
|---|---|
| Provider host | x402.freeq.one |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 2 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-03 | valid payment request | 402 | $0.010033 | 775 ms |
Example input (from the provider)
{
"body": {
"code": "fn main() { println!(\"hello\"); }",
"edition": "2021",
"job_id": "job_abc123",
"release": false,
"stdin": "hello\n"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$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"
}