openapi-contract-macros 0.1.1

Proc-macro implementation for the openapi-contract crate. Not intended to be used directly — depend on `openapi-contract` instead.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# openapi-contract-macros

Proc-macro implementation crate for [`openapi-contract`][oc]. It exposes
the `api!` and `generate_types!` macros, which validate HTTP calls and
generate request/response types against an OpenAPI 3.x spec at compile
time.

**This crate is an implementation detail. Don't depend on it directly
— depend on [`openapi-contract`][oc] instead**, which re-exports both
macros and the runtime types (`ApiClient`, `ApiRequest`, `ApiError`,
`SseStream`, …) they produce.

See the [main README][oc-readme] for usage, examples, and the full
feature list.

[oc]: https://crates.io/crates/openapi-contract
[oc-readme]: https://github.com/ZacharyL2/openapi-contract#readme