ferro-macros
Procedural macros for the Ferro framework.
Macros
#[handler]
Transform functions into HTTP handlers with automatic parameter extraction:
use ;
pub async
#[request]
Define validated request data:
use request;
#[service]
Mark traits for dependency injection:
use service;
#[injectable]
Auto-register implementations as singletons:
use injectable;
#[domain_error]
Define domain errors with HTTP response conversion:
use domain_error;
inertia_response!
Create Inertia.js responses with compile-time component validation:
use inertia_response;
inertia_response!
describe! and test!
Jest-like testing macros:
use ;
describe!;
License
MIT