17 lines
257 B
Rust
17 lines
257 B
Rust
|
#![feature(proc_macro_hygiene, decl_macro)]
|
||
|
|
||
|
use rocket::{get, routes, Rocket};
|
||
|
|
||
|
#[get("/")]
|
||
|
fn index() -> &'static str {
|
||
|
"Hello, world!"
|
||
|
}
|
||
|
|
||
|
fn rocket() -> Rocket {
|
||
|
rocket::ignite().mount("/", routes![index])
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
rocket().launch();
|
||
|
}
|