Rocket/examples/hello_2018/src/main.rs

15 lines
234 B
Rust
Raw Normal View History

#![feature(proc_macro_hygiene)]
#[cfg(test)] mod tests;
use rocket::{get, routes};
#[get("/")]
fn hello() -> &'static str {
"Hello, Rust 2018!"
}
fn main() {
let _ = rocket::ignite().mount("/", routes![hello]).launch();
}