Crates.io | summer-boot-macro |
lib.rs | summer-boot-macro |
version | 1.4.1 |
source | src |
created_at | 2022-06-23 17:31:14.38179 |
updated_at | 2023-12-27 12:28:23.438066 |
description | summer boot macro |
homepage | https://crates.io/crates/summer-boot |
repository | https://github.com/wansenai/summer-boot |
max_upload_size | |
id | 611976 |
size | 19,588 |
Used to write all macros of summer boot
summer-boot-macro = "1.4.0"
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
}
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();
}