3 unstable releases
Uses new Rust 2024
| 0.2.0 | Aug 5, 2025 |
|---|---|
| 0.1.1 | May 21, 2025 |
| 0.1.0 | May 21, 2025 |
#844 in HTTP server
16KB
350 lines
html_form_actions
Generate HTML Form parsers and routing logic for Form Actions.
The main usage is the actions proc-macro, which allows you to declare a module of "Action" handlers.
Action Handlers, which are declared as such with the #[action] attribute, may have parameters with the #[form_input] attribute, which generates a structure which describes the form structure, allowing code to use them in template code to ensure that the HTML form and the parsing logic matches.
See the docs for more info.
Features
axumwill enable integration withaxum, generating a function which can be used as an axumHandler, which routes the request to the appropriate#[action].picoservewill enable integration withpicoserve, generating a struct which implementsRequestHandlerServiceby routing the request to the appropriate#[action].
Dependencies
~3.5MB
~73K SLoC