Configure rocket.rs project

This commit is contained in:
Elnu 2023-05-31 12:07:36 -07:00
parent 9b386cd7b0
commit 234458e11c
5 changed files with 1491 additions and 2 deletions

11
src/main.rs Normal file
View file

@ -0,0 +1,11 @@
#[macro_use] extern crate rocket;
#[get("/")]
fn index() -> &'static str {
"Hello, world!"
}
#[launch]
fn rocket() -> _ {
rocket::build().mount("/", routes![index])
}