1 #![feature(proc_macro_hygiene)] 2 3 #[cfg(test)] mod tests; 4 5 use rocket::{get, routes}; 6 7 #[get("/")] hello() -> &'static str8 fn hello() -> &'static str { 9 "Hello, Rust 2018!" 10 } 11 main()12 fn main() { 13 rocket::ignite().mount("/", routes![hello]).launch(); 14 } 15