shuttle-codegen 0.40.0

Proc-macro code generator for the shuttle.rs service
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
shuttle_codegen::app! {
    #[shuttle_codegen::endpoint(method = get)]
    async fn only_method_param() -> &'static str {
        "Hello, World!"
    }

    #[shuttle_codegen::endpoint(route = "/goodbye")]
    async fn only_route_param() -> &'static str {
        "Goodbye, World!"
    }

    #[shuttle_codegen::endpoint()]
    async fn no_params() -> &'static str {
        "Goodbye, World!"
    }
}