55 releases (35 stable)

7.0.0 Nov 17, 2025
7.0.0-rc2 Jun 10, 2025
7.0.0-rc1 Dec 10, 2024
6.5.3 Oct 6, 2025
0.7.0 Oct 2, 2017

#97 in HTTP server

Download history 932/week @ 2025-08-26 1254/week @ 2025-09-02 1078/week @ 2025-09-09 1153/week @ 2025-09-16 694/week @ 2025-09-23 1079/week @ 2025-09-30 526/week @ 2025-10-07 699/week @ 2025-10-14 751/week @ 2025-10-21 706/week @ 2025-10-28 934/week @ 2025-11-04 1204/week @ 2025-11-11 1006/week @ 2025-11-18 905/week @ 2025-11-25 548/week @ 2025-12-02 544/week @ 2025-12-09

3,248 downloads per month
Used in 31 crates (26 directly)

Apache-2.0

125KB
2.5K SLoC

Support crate for Swagger codegen.

Crate features

Crate features exist to reduce the dependencies on the crate. Most features should be enabled by the generator when relevant.

By default, the serdejson feature is enabled.

Format support

  • multipart_form - Enable support for multipart/form-data as described in RFC 7578
  • multipart_related - Enable support for multipart/related as described in RFC 2387
  • serdejson - Enable JSON serialization/deserialization support using serde.

Feature support

  • serdevalid - Enable support for JSON schema based validation
  • conversion - Enable support for Frunk-based conversion - in particular, transmogrification

Use case support

  • client - Enable support for providing an OpenAPI client
  • server - Enable support for providing an OpenAPI server
  • http1 - Enable support for HTTP/1 based APIs - RFC 9112
  • http2 - Enable support for HTTP/2 based APIs - RFC 9113
  • tls - Enable support for HTTP over TLS (HTTPS)
  • uds - Enable support for HTTP over UDS (Unix Domain Sockets)

swagger-rs

Build Status crates.io

A set of common utilities for crates generated by the rust-server openapi-generator generator

Releasing a new version

  1. Run ./release-changelog.sh <version> to update the changelog and Cargo.toml
  2. Commit and push your changes.
  3. Wait for a travis build to complete successfully.
  4. Run cargo publish.
  5. Tag the new version and push the tag.

Dependencies

~5–23MB
~289K SLoC