Compatibility
What the crate is built and tested against, so you can tell whether it fits before you add it.
| Needs | Supported |
|---|---|
| axum | 0.8, the range axum = "0.8" allows (any 0.8.x) |
| axum-extra | 0.12, behind the extra feature |
| Rust | 1.88 or later (the minimum supported version) |
| OpenAPI document | 3.2.0 by default; 3.1.0 and 3.0.x with .openapi_version(..) |
axum-extra
Turn on the extra feature to document the axum-extra 0.12 extractors and responses. axum-autodoc enables axum-extra's typed-header, cookie, cookie-signed, cookie-private, query, form, with-rejection, json-lines, erased-json and attachment features itself.
axum-autodoc = { version = "0.2", features = ["extra"] }The coverage tables list each type and what it documents.
OpenAPI versions
The document is OpenAPI 3.2.0. .openapi_version("3.1.1") (the 0.1 default), .openapi_version("3.1.0") or .openapi_version("3.0.3") writes that version instead. What is documented differs only for streams: text/event-stream and the sequential JSON media types (application/jsonl, application/x-ndjson, application/json-seq). 3.2 describes each item with itemSchema and no schema, while older versions keep a string schema and put the item under x-autodoc-item-schema (Event streams).
Cookie parameters carry no style: cookie yet, which 3.2 recommends and common linters do not require.
Rust
The minimum supported Rust version is 1.88. CI checks the library on it.