Rocket/examples/hello_2018/src/main.rs

15 lines
238 B
Rust
Raw Normal View History

2018-10-06 04:56:46 +00:00
#![feature(proc_macro_hygiene, decl_macro)]
#[cfg(test)] mod tests;
use rocket::{get, routes};
#[get("/")]
fn hello() -> &'static str {
"Hello, Rust 2018!"
}
fn main() {
rocket::ignite().mount("/", routes![hello]).launch();
}