#routes #axum #minimalist #macro

macro axum-route

Minimalistic route macro for axum

2 releases

0.1.1 Sep 11, 2022
0.1.0 Sep 11, 2022

#114 in #minimalist

MIT license

4KB
56 lines

axum-route

#[route(get, "/")]
pub async fn index() -> String {
    "Hello World!".into_string()
}

Dependencies

~1.5MB
~33K SLoC