#html #web #action #no-std

no-std html_form_actions

Generate HTML Form parsers and routing logic for Form Actions

2 releases

Uses new Rust 2024

new 0.1.1 May 21, 2025
0.1.0 May 21, 2025

#530 in HTTP server

MIT license

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 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].

Dependencies

~3.5MB
~73K SLoC