Skip to main content

Module orpc

Module orpc 

Source
Expand description

Code generation for the #[rorpc(method, path)] attribute macro.

Parses the attribute arguments, analyses the handler signature, and emits:

  • The original function unchanged
  • An inventory::submit! for HandlerMetadata
  • An inventory::submit! for HandlerRegistration (Axum router factory)
  • inventory::submit! blocks for SchemaRegistration fallback schemas

Structs§

OrpcArgs
Parsed arguments for the #[orpc(...)] attribute.

Functions§

expand_orpc
Generate the full expansion for #[orpc(method, path)] async fn handler(...).