first commit

This commit is contained in:
Lucas Schumacher 2023-10-08 12:51:42 -04:00
commit 14f2edbc59
3 changed files with 22 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

9
Cargo.toml Normal file
View File

@ -0,0 +1,9 @@
[package]
name = "hello-rocket"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
rocket = "=0.5.0-rc.3"

12
src/main.rs Normal file
View File

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