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§

MethodShorthandArgs
Parsed arguments for method-specific shorthand macros like #[orpc::get("/path")].
OrpcArgs
Parsed arguments for the #[orpc(...)] attribute.

Functions§

expand_orpc
Generate the full expansion for #[rorpc::route(method, path)] or shorthand macros.