{"repo":"gpu-cli/openapi-to-rust","free":true,"listed":false,"github":"https://github.com/gpu-cli/openapi-to-rust","clone":"git clone https://github.com/gpu-cli/openapi-to-rust.git","description":"OpenAPI generator for Rust: typed models, async Reqwest/SSE clients, and Axum server scaffolding for OpenAPI 3.0/3.1.","language":"Rust","stars":28,"topics":["api-client","codegen","discriminated-unions","http-client","openapi","openapi-generator","openapi3","rest-api","rust","rust-crate"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"openapi-to-rust — OpenAPI generator for Rust openapi-to-rust is an OpenAPI generator for Rust that turns OpenAPI 3.0/3.1 (and experimental 3.2) specifications into strongly-typed structs, async HTTP clients, SSE streaming clients, and opt-in Axum server scaffolding — including for the messy, real-world specs everyone actually ships. Read the guides and documentation for the quickest path from an OpenAPI document to compiling Rust. 5-second trial Paste your spec into the browser playground — the real generator compiled to WebAssembly. See the generated Rust instantly and download it as a complete, compilable crate. Nothing is uploaded. 30-second trial Install the CLI from crates.io, then generate a tiny client from a stable, hosted fixture: This writes src/generated/{types,client,mod}.rs and the exact dependencies needed to compile them in src/generated/REQUIRED DEPS.toml . Use --dry-run to inspect the plan without writing, and --check in CI to detect stale committed output. We originally built this internally at GPU CLI to generate typed Rust clients for OpenAI, Anthropic, Cloudflare, and other large APIs. After battle-testing it against real-world specs with complex union types, discriminated enums, streaming endpoints, and the occasional spec/API drift, we decided to open source it. The repository contains 57 real-world specs . The supported OpenAPI corpus is 56 specs (one Gitea document is Swagger 2.0 and intentionally skipped). Pull requests compile-check the OpenAI and A","default_branch":null,"files":null,"tree":[],"storefront":"/r/gpu-cli","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gpu-cli/openapi-to-rust/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}