Created Shuttle project
This commit is contained in:
parent
612ab2d102
commit
70462d91db
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
/target
|
||||||
|
.shuttle*
|
||||||
|
Secrets*.toml
|
2579
Cargo.lock
generated
Normal file
2579
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
14
Cargo.toml
Normal file
14
Cargo.toml
Normal 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
12
Source/App.rs
Normal 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())
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user