2 releases
Uses new Rust 2024
new 0.1.1 | May 21, 2025 |
---|---|
0.1.0 | May 21, 2025 |
#530 in HTTP server
11KB
203 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]
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
axum
will enable integration withaxum
, generating a function which can be used as an axumHandler
, which routes the request to the appropriate#[action]
.picoserve
will enable integration withpicoserve
, generating a struct which implementsRequestHandlerService
by routing the request to the appropriate#[action]
.
Dependencies
~3.5MB
~73K SLoC