Skip to main content

Module router

Module router 

Source
Expand description

Code generation for the router!(...) proc macro.

Parses 0–2 arguments (state expression and/or module path pattern) in any order, then emits an Axum Router that merges all matching registered handlers from the inventory.

Structs§

RouterArgs
Parsed arguments for the router!(...) macro.

Enums§

Pattern
Module path filter pattern.

Functions§

expand_router
Generate the router!(...) expansion.