installs rocket, hello world endpoint

This commit is contained in:
2026-05-15 14:16:27 +01:00
parent 8585cac606
commit e433feddbe
3 changed files with 1715 additions and 2 deletions
+10 -2
View File
@@ -1,3 +1,11 @@
fn main() {
println!("Hello, world!");
#[macro_use] extern crate rocket;
#[launch]
fn rocket() -> _ {
rocket::build().mount("/", routes![index])
}
#[get("/")]
fn index() -> &'static str {
"Hello, world!"
}