Created Shuttle project

This commit is contained in:
Entity 2024-10-18 20:20:01 +00:00
parent 612ab2d102
commit 70462d91db
Signed by: Entity
SSH Key Fingerprint: SHA256:zdOcLEK0rgkzxXEN6vZ1EuWYnQSp4+5l+j2y3omc7Tk
4 changed files with 2608 additions and 0 deletions

3
.gitignore vendored Normal file
View File

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

2579
Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

14
Cargo.toml Normal file
View File

@ -0,0 +1,14 @@
[package]
name = "RemoteShell"
version = "0.1.0"
edition = "2021"
[[bin]]
name = "RemoteShell"
path = "Source/App.rs"
[dependencies]
axum = "0.7.4"
shuttle-axum = "0.48.0"
shuttle-runtime = "0.48.0"
tokio = "1.28.2"

12
Source/App.rs Normal file
View File

@ -0,0 +1,12 @@
use axum::{routing::get, Router};
async fn hello_world() -> &'static str {
"Hello, world!"
}
#[shuttle_runtime::main]
async fn main() -> shuttle_axum::ShuttleAxum {
let router = Router::new().route("/", get(hello_world));
Ok(router.into())
}