Crate summer_boot_macro

Source
Expand description

运行时宏处理

§main

使用运行时宏来设置summerboot async运行时。参见main宏文档。

§auto_scan

提供了基础的auto_scan功能用于发现并自动注册路由。

§post、get、delete、put、patch、head、options、connect、trace

提供了简单的路由宏标注。

Attribute Macros§

auto_scan
完成 summer_boot 项目下的自动扫描功能,会先扫描找到summer_boot::run(); 函数,然后在此处进行装配活动。也可以手动增加过滤路径或过滤文件。 如果增加过滤路径,需要在末尾添加 /,如果增加过滤文件,需要在末尾添加 .rs
connect
功能
delete
功能
get
功能
head
功能
main
用于标记 summer_boot web 的入口点
options
功能
patch
功能
post
功能
put
功能
trace
功能