Skip to content

Add openapi-to-rust to sdk category#96

Open
lightsofapollo wants to merge 2 commits into
APIs-guru:masterfrom
lightsofapollo:add-openapi-to-rust
Open

Add openapi-to-rust to sdk category#96
lightsofapollo wants to merge 2 commits into
APIs-guru:masterfrom
lightsofapollo:add-openapi-to-rust

Conversation

@lightsofapollo

Copy link
Copy Markdown

Adds openapi-to-rust — a Rust code generator that produces strongly-typed structs, async HTTP clients, and SSE streaming clients from OpenAPI 3.1 specs.

Why it fills a gap in the existing list

The current Rust entries in tools.yaml are mostly OpenAPI 3.0 parsers/serializers (openapi3-rust, keycloak-openapi). There isn't a Rust 3.1 client generator with first-class streaming support listed. openapi-to-rust covers:

  • OpenAPI 3.1 — objects, arrays, enums, oneOf/anyOf/allOf, discriminated unions
  • HTTP client generation — async clients with retry, tracing, and auth middleware
  • SSE streaming — reconnecting Server-Sent Events clients with typed event unions (built for LLM APIs like OpenAI and Anthropic)
  • Smart \$ref resolution — handles circular references and deep nesting
  • TOML config — declarative alternative to the Rust API
  • MIT licensed, on crates.io and docs.rs

Entry

```yaml

  • name: openapi-to-rust
    description: Generate strongly-typed Rust structs, async HTTP clients, and SSE streaming clients from OpenAPI 3.1 specs. Supports discriminated unions, anyOf/oneOf, allOf composition, circular $refs, and reconnecting SSE — built for LLM APIs (OpenAI, Anthropic) and similar.
    github: https://github.com/gpu-cli/openapi-to-rust
    v3: true
    language: Rust
    category: sdk
    uuid: 2bf0f104-2acd-41ef-9fd4-4fa32e35eb50
    downloads: 0
    ```

Format follows the same minimal style used in recent add-tool PRs (#88, #95) — auto-populated fields (stars/forks/etc.) left for the upstream tooling.

Rust code generator for OpenAPI 3.1 specs that produces typed structs,
async HTTP clients, and SSE streaming clients. Handles discriminated
unions, anyOf/oneOf, allOf composition, and reconnecting SSE — useful
for LLM APIs like OpenAI and Anthropic.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds the openapi-to-rust tool to the tools.yaml data file. Feedback was provided to move the new entry to its correct alphabetical position based on the GitHub URL to maintain consistency with the project's sorting logic.

Comment thread docs/_data/tools.yaml Outdated
Per review on PR APIs-guru#96, tools.yaml is sorted by GitHub URL. Move the
openapi-to-rust entry from the end of the file to its correct slot
between gopher-fleece/gleece and grpc-ecosystem/grpc-gateway.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant