html_form_actions

Crates.iohtml_form_actions
lib.rshtml_form_actions
version0.2.0
created_at2025-05-21 12:44:20.51682+00
updated_at2025-08-05 13:34:46.396438+00
descriptionGenerate HTML Form parsers and routing logic for Form Actions
homepage
repositoryhttps://github.com/sammhicks/html_form_actions
max_upload_size
id1683361
size36,651
Samuel Hicks (sammhicks)

documentation

README

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

  • axum will enable integration with axum, generating a function which can be used as an axum Handler, which routes the request to the appropriate #[action].
  • picoserve will enable integration with picoserve, generating a struct which implements RequestHandlerService by routing the request to the appropriate #[action].
Commit count: 2

cargo fmt