Decision Workspace
openapi-contract vs openapi-contract-macros vs utoipa-gen
Side-by-side comparison of Rust crates
42
openapi-contract
experimentalv0.1.1
Compile-time OpenAPI contract checking for Rust HTTP clients. Validates paths, parameters, and response types against your OpenAPI spec at macro expansion.
44
openapi-contract-macros
experimentalv0.1.1
Proc-macro implementation for the openapi-contract crate. Not intended to be used directly — depend on `openapi-contract` instead.
65
utoipa-gen
stablev6.0.1
Code generation implementation for utoipa
Core Metrics
| openapi-contract | openapi-contract-macros | utoipa-gen | |
|---|---|---|---|
| Health Score | 42 | 44 | 65 |
| Total Downloads | 766 | 849 | 52.6M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 2 | 86 |
| Releases | 2 | 2 | 61 |
| Last Updated | 181d ago | 181d ago | 16d ago |
| Age | 6m | 6m | 4y 8m |
Health Breakdown
openapi-contract
Maintenance
9
Quality
12
Community
6
Popularity
3
Documentation
12
openapi-contract-macros
Maintenance
9
Quality
13
Community
7
Popularity
3
Documentation
12
utoipa-gen
Maintenance
18
Quality
19
Community
8
Popularity
8
Documentation
12
Technical Details
| openapi-contract | openapi-contract-macros | utoipa-gen | |
|---|---|---|---|
| Version | 0.1.1 | 0.1.1 | 6.0.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 11 | 6 | 23 |
| Crate Size | 29KB | 17KB | 161KB |
| Features | 0 | 0 | 22 |
| Yanked % | 0.0% | 0.0% | 1.6% |
| Edition | 2024 | 2024 | 2021 |
| MSRV | 1.86 | 1.86 | 1.88 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •utoipa-gen leads with a health score of 65/100, but none of the options score above 80.
- •openapi-contract, openapi-contract-macros are pre-1.0 — API may change.