#tracing #endpoint #macro #consumer #handlers #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

#330 in Procedural macros

Download history 1/week @ 2024-06-24 25/week @ 2024-07-01 31/week @ 2024-07-29 8/week @ 2024-09-09 4/week @ 2024-09-16 19/week @ 2024-09-23 37/week @ 2024-09-30

68 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.4–1MB
~24K SLoC