2017-08-29 03:14:59 +00:00
|
|
|
#![feature(plugin, decl_macro)]
|
2017-02-05 10:11:32 +00:00
|
|
|
#![plugin(rocket_codegen)]
|
|
|
|
#![allow(dead_code, unused_variables)]
|
|
|
|
|
|
|
|
extern crate rocket;
|
|
|
|
|
|
|
|
use rocket::{Rocket, State};
|
|
|
|
|
|
|
|
#[get("/")]
|
|
|
|
fn index(state: State<u32>) { }
|
|
|
|
|
|
|
|
fn rocket() -> Rocket {
|
|
|
|
rocket::ignite()
|
|
|
|
.mount("/", routes![index])
|
|
|
|
.manage(100u32)
|
|
|
|
}
|
|
|
|
|
2017-09-10 08:19:38 +00:00
|
|
|
#[test]
|
2017-02-05 10:11:32 +00:00
|
|
|
fn main() {
|
|
|
|
if false {
|
|
|
|
rocket().launch();
|
|
|
|
}
|
|
|
|
|
|
|
|
let instance = rocket();
|
|
|
|
if false {
|
|
|
|
instance.launch();
|
|
|
|
}
|
|
|
|
}
|