Expand description
Procedural macros for the Kit framework
This crate provides compile-time validated macros for:
- Inertia.js responses with component validation
- Named route redirects with route validation
- Service auto-registration
- Handler attribute for controller methods
- FormRequest for validated request data
- Jest-like testing with describe! and test! macros
Macros§
- describe
- Group related tests with a descriptive name
- inertia_
response - Create an Inertia response with compile-time component validation
- redirect
- Create a redirect to a named route with compile-time validation
- test
- Define an individual test case with a descriptive name
Attribute Macros§
- domain_
error - Define a domain error with automatic HTTP response conversion
- handler
- Attribute macro for controller handler methods
- injectable
- Attribute macro to auto-register a concrete type as a singleton
- kit_
test - Attribute macro for database-enabled tests
- request
- Attribute macro for clean request data definition
- service
- Mark a trait as a service for the App container
Derive Macros§
- Form
Request - Derive macro for FormRequest trait
- Inertia
Props - Derive macro for generating
Serializeimplementation for Inertia props