Expand description
Procedural macros for Luxid.
Neither macro emits salvo types — generated code depends only on Luxid’s own traits, which keeps the substrate sealed even in macro output.
Attribute Macros§
- controller
- Turn an inherent
implblock into routable actions. - middleware
- Implement
Middlewarefrom an inherentasync fn handle(&self, ctx: HttpContext, next: Next) -> Result<Response>. - model
- Declare a model’s relations.
- test
- A test that leaves the database as it found it.