Rocket/examples/hello_2018/src/main.rs

16 lines
276 B
Rust
Raw Normal View History

#![feature(plugin, decl_macro, proc_macro_non_items)]
#![plugin(rocket_codegen)]
2018-09-17 03:28:24 +00:00
use rocket::{self, routes};
#[cfg(test)] mod tests;
#[get("/")]
fn hello() -> &'static str {
"Hello, Rust 2018!"
}
fn main() {
rocket::ignite().mount("/", routes![hello]).launch();
}