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
shuttle_codegen::app! {
    #[shuttle_codegen::endpoint(method = get, route = "/hello" extra = abundant)]
    async fn hello() -> &'static str {
        "Hello, World!"
    }

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