1
0

init commit

This commit is contained in:
Anson Biggs 2023-11-27 19:39:48 -07:00
commit 90d5e96c21
4 changed files with 2846 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
/target
.shuttle-storage
Secrets*.toml

2820
Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

10
Cargo.toml Normal file
View File

@ -0,0 +1,10 @@
[package]
name = "cch23-anson"
version = "0.1.0"
edition = "2021"
[dependencies]
rocket = "0.5.0"
shuttle-rocket = "0.34.0"
shuttle-runtime = "0.34.0"
tokio = "1.26.0"

13
src/main.rs Normal file
View File

@ -0,0 +1,13 @@
use rocket::{get, routes};
#[get("/")]
fn index() -> &'static str {
"Hello, world!"
}
#[shuttle_runtime::main]
async fn main() -> shuttle_rocket::ShuttleRocket {
let rocket = rocket::build().mount("/", routes![index]);
Ok(rocket.into())
}