rocket_codegen 0.2.9

Code generation for the Rocket web framework.
1
2
3
4
5
6
7
8
9
10
11
12
#![feature(plugin)]
#![plugin(rocket_codegen)]

extern crate rocket;

#[get(path = "/hello", unknown = 123)]  //~ ERROR 'unknown' is not a known param
fn get() -> &'static str { "hi" }

fn main() {
    let _ = routes![get];
}