mirror of
https://gitlab.com/Anson-Projects/shuttle-christmas-code-hunt-2023.git
synced 2025-06-15 14:46:47 +00:00
init commit
This commit is contained in:
commit
90d5e96c21
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
/target
|
||||||
|
.shuttle-storage
|
||||||
|
Secrets*.toml
|
2820
Cargo.lock
generated
Normal file
2820
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
10
Cargo.toml
Normal file
10
Cargo.toml
Normal 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
13
src/main.rs
Normal 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())
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user