rocket_codegen 0.3.17

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

extern crate rocket;

#[get] //~ ERROR incorrect use of attribute
//~^ ERROR malformed attribute
fn get() -> &'static str { "hi" }

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