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, method = get)]
    async fn hello() -> &'static str {
        "Hello, World!"
    }

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