#![feature(plugin)] #![plugin(rocket_codegen)] extern crate rocket; use rocket::Rocket; #[get("/")] fn hello() -> &'static str { "Hello, world!" } fn main() { Rocket::new("localhost", 8000).mount_and_launch("/hello", routes![hello]); }