#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

#331 in Procedural macros

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