Type-safe OpenAPI server for Rust?

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • openapi-generator

    OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)

  • I was assuming the main (official??) Generator https://github.com/OpenAPITools/openapi-generator and one output language. Their cli(frontend) tool seems to save the version of the backend and recommends checking in the version file and sticking with one version.

  • poem

    A full-featured and easy-to-use web framework with the Rust programming language.

  • I see that Poem is doing something: https://github.com/poem-web/poem but I don’t find anything about it online other than this repo (and some posts here on Reddit)

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • okapi

    OpenAPI (AKA Swagger) document generation for Rust projects

  • okapi looks decent as well. Has codegen for Rocket: https://github.com/GREsau/okapi

  • oaph

  • too simple and framework agnostic helper to build openapi spec for api https://github.com/estin/oaph/

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts