Skip to main content

Crate steam_user_impl

Crate steam_user_impl 

Source
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:

  1. Wraps the function with #[tracing::instrument] so every call carries structured fields (steam.endpoint.method/host/path/kind and steam.module). Args are skipped via skip(...) to avoid logging secrets — self plus any param whose name is in [SENSITIVE_PARAMS].
  2. Emits an inventory::submit! entry so all annotated endpoints are discoverable at runtime via inventory::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.