chore: init

This commit is contained in:
jabuxas 2025-01-15 21:57:51 -03:00
commit ee3aaac746
4 changed files with 1625 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

1598
Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

7
Cargo.toml Normal file
View File

@ -0,0 +1,7 @@
[package]
name = "grotto"
version = "0.1.0"
edition = "2021"
[dependencies]
rocket = "0.5.1"

19
src/main.rs Normal file
View File

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