Expand description
Procedural macros for the steam-user crate.
Provides #[steam_endpoint(METHOD, host = ..., path = ..., kind = ...)],
which annotates a method that issues an HTTP call to a Steam network
endpoint. The macro:
- Wraps the function with
#[tracing::instrument]so every call carries structured fields (steam.endpoint.method/host/path/kindandsteam.module). Args are skipped viaskip(...)to avoid logging secrets —selfplus any param whose name is in [SENSITIVE_PARAMS]. - Emits an
inventory::submit!entry so all annotated endpoints are discoverable at runtime viainventory::iter::<EndpointInfo>().
The macro generates paths under crate::endpoint::*, so it is intended to
be used from inside the steam-user crate. Generated paths also assume
inventory and tracing are direct dependencies of the using crate.
Attribute Macros§
- steam_
endpoint - Annotate a Steam HTTP endpoint method with structured metadata.