Skip to content

Generate Rust models and reqwest API clients - #14

Merged
meoyawn merged 1 commit into
masterfrom
codex/rust-client-generation
Sep 24, 2026
Merged

meoyawn merged 1 commit into
masterfrom
codex/rust-client-generation

Conversation

@meoyawn

@meoyawn meoyawn commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

Add --lang rust for types and client generation. Rust consumers get serde models, typed operation inputs, reqwest request builders, and status-specific response enums from the same OpenAPI contract as the Go and TypeScript clients.

The generated client accepts an owned HTTP client so applications retain control of TLS, proxies, timeouts, and cancellation. Path escaping, repeated query parameters, headers, JSON and raw bodies, optional bodies, and unconsumed SSE responses are covered. Models preserve wire names, nullable/optional fields, string enums, discriminated oneOf alternatives, and closed objects. Sequential multipart remains explicitly unsupported by the Rust target.

Validation: moon run oasmith:lint oasmith:test oasmith:test-rust; generated Rust fixtures compile and all four protocol/model tests pass. Listenbox's generated public API and CLI configuration compile and pass its integrated CLI E2Es.

@meoyawn
meoyawn merged commit fba565f into master Sep 24, 2026
1 check passed
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