# juhaku/utoipa

Simple, Fast, Code first and Compile time generated OpenAPI documentation for Rust

Repository: https://github.com/juhaku/utoipa
Canonical: https://ross.abutalabs.com/products/utoipa
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: rust, openapi, documentation, rest, rest-api, rest-api-documentation, openapi-documentation, generated, auto-generated, compile-time, swagger, openapi31
Last push: 2026-08-24T20:00:52+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 82, longevity 100
- inputs: {"age_days": 1798, "days_push": 9, "days_rel": 121, "gap_med": 0, "n_releases_24m": 52}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4054, forks 443 (observed 2026-08-28T04:08:33.886036+00:00)

## What it is
Utoipa is a Rust library that auto-generates OpenAPI documentation at compile time using proc macros, treating a code-first approach as a first-class citizen. It is framework-agnostic and also allows writing OpenAPI specs directly with Rust types.

## Use cases
- generate OpenAPI docs for a Rust REST API from code annotations
- avoid manually maintaining OpenAPI YAML or JSON files
- serve Swagger UI for a Rust web service
- document actix-web, axum, or rocket endpoints with macros
- build an OpenAPI spec using Rust types without a web framework

## When to choose
- you write REST APIs in Rust and want compile-time generated OpenAPI documentation
- you want docs to stay in sync with your code automatically
- you need framework-agnostic OpenAPI generation with integrations for popular Rust web frameworks

## When to avoid
- your API is not in Rust
- you prefer spec-first (OpenAPI YAML/JSON) workflows with generated code
- you need runtime-generated documentation rather than compile-time

## Facets
- artifact type: library
- maturity: stable
- function: api-documentation, documentation
- domain: web-development, backend, apis, documentation
- platform: rust, cross-platform
- tags: openapi, swagger, rest-api, proc-macros, compile-time, code-first, actix-web, axum, rocket, codegen

## Member repositories
- juhaku/utoipa (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:33.886036+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:23:38.139528+00:00, confidence not recorded.
  - readme: https://github.com/juhaku/utoipa (fetched 2026-08-28T04:08:33.886036+00:00, sha 74823b47d3e0)
  - registry_crates: https://crates.io/api/v1/crates/utoipa (fetched 2026-08-29T09:15:51.916172+00:00, sha d730b7626966)
- Data as of 2026-08-30T08:39:29.467469+00:00.
