Macro catalyzer::App

App!() { /* proc-macro */ }
Expand description

A shortcut for creating an App instance.

§Example

#[main]
fn main() {
App![index]
    .bind("0.0.0.0:3000")?
    .launch()
}
 
#[get("/")]
fn index() {
    "Hello, world!"
}