Skip to main content

Crate salvo_craft_macros

Crate salvo_craft_macros 

Source
Expand description

Procedural macros for building Salvo handlers from service methods.

This crate is normally used through salvo_craft::craft. The macro keeps related handlers inside an impl block and generates small callable handler values for the methods marked with #[craft(handler)] or #[craft(endpoint(...))].

Attribute Macrosยง

craft
Converts selected methods in an impl block into Salvo handlers.