Skip to main content

Crate actus_controller_macros

Crate actus_controller_macros 

Source
Expand description

Procedural macros for the Actus controller system: the #[controller] attribute and the app_routes! macro. (The routes! macro that appears inside a #[controller] impl is a macro_rules! in actus-controller; #[controller] consumes the block it produces.)

This crate is an implementation detail — depend on actus (or actus-controller) and use the macros through their prelude re-exports rather than depending on this crate directly.

Supports HTTP verb constraints, path parameters (including a trailing {...rest}), strict/lax parameter modes, prepare hooks, per-controller rate_limit / max_body_bytes, and per-route docs sourced from each handler’s /// comment.

Macros§

app_routes
Declares the application’s URL blueprint and generates its init().

Attribute Macros§

controller
Attribute macro for a controller’s impl block.