summer-boot-macro

Crates.iosummer-boot-macro
lib.rssummer-boot-macro
version1.4.1
sourcesrc
created_at2022-06-23 17:31:14.38179
updated_at2023-12-27 12:28:23.438066
descriptionsummer boot macro
homepagehttps://crates.io/crates/summer-boot
repositoryhttps://github.com/wansenai/summer-boot
max_upload_size
id611976
size19,588
James Zow (Jzow)

documentation

https://github.com/wansenai/summer-boot#readme

README

Summer Boot Macro

Used to write all macros of summer boot

Getting Started

summer-boot-macro = "1.4.0"

Macro description

1. Macro attribute summer_boot::main

This macro is mainly used to start asynchronous methods and create a new instance of summer boot

#[summer_boot::main]
async fn main() {
    async { println!("Hello world"); }.await
}

2. Macro attribute summer_boot::auto_scan

This macro is mainly used to automatically scan the workspace or under a single project API, and to automatically complete the scanning of YML configuration files under the resource directory

#[summer_boot::auto_scan]
async fn main() {
    summer_boot::run();
}
Commit count: 258

cargo fmt