Add Hello, world! Rocket

This commit is contained in:
finga 2021-01-11 23:10:26 +01:00
parent 0b57113e7f
commit 822cf5b037
5 changed files with 834 additions and 4 deletions

View file

@ -1,3 +1,12 @@
fn main() {
println!("Hello, world!");
#![feature(proc_macro_hygiene, decl_macro)]
use rocket::{get, routes};
#[get("/")]
fn index() -> &'static str {
"Hello, world!"
}
fn main() {
rocket::ignite().mount("/", routes![index]).launch();
}