Added rocket hello world code

This commit is contained in:
Jef Roosens 2021-03-05 18:55:18 +01:00
parent 284e8a428a
commit 07d92715de
Signed by: Jef Roosens
GPG key ID: 955C0660072F691F
3 changed files with 793 additions and 3 deletions

View file

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