#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.

5 releases

0.1.4 Feb 17, 2025
0.1.3 Feb 17, 2025
0.1.2 Mar 7, 2024
0.1.1 Mar 7, 2024
0.1.0 Feb 28, 2024

#242 in Procedural macros

Download history 1/week @ 2024-11-20 2/week @ 2024-12-04 6/week @ 2024-12-11 2/week @ 2025-01-29 1/week @ 2025-02-05 193/week @ 2025-02-12 88/week @ 2025-02-19 9/week @ 2025-02-26 82/week @ 2025-03-05

372 downloads per month

Apache-2.0

46KB
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
~23K SLoC