axum-controller 0.4.3

Helper macro's for better readability of axum handlers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use axum_controller::controller;

struct ExampleController;

#[controller]
impl ExampleController {
    async fn not_a_route() -> String {
        todo!()
    }
}

fn main() {
    compile_error!("
        intentional error to provoke a compile error so the stderr
        (which includes the no-routes warning) can be checked via compile_fail
    ")
}