#endpoint #tracing #handlers #macro #wraps #zoo #dropshot

macro zoo-endpoint

Macro used by zoo consumers for registering handlers. This wraps dropshot’s Endpoint and adds some extra functionality for tracing.

3 releases

0.1.2 Mar 7, 2024
0.1.1 Mar 7, 2024
0.1.0 Feb 28, 2024

#216 in Procedural macros

Download history 144/week @ 2024-02-26 298/week @ 2024-03-04 33/week @ 2024-03-11 36/week @ 2024-03-18 26/week @ 2024-03-25 53/week @ 2024-04-01

160 downloads per month

Apache-2.0

45KB
1K SLoC

This package defines macro attributes associated with HTTP handlers. These attributes are used both to define an HTTP API and to generate an OpenAPI Spec (OAS) v3 document that describes the API. This wraps the dropshot crate to provide a more ergonomic way to define endpoints and channels while also allowing for tracing.

Dependencies

~0.5–1MB
~25K SLoC