diff options
author | Adam T. Carpenter <atc@53hor.net> | 2023-11-08 22:50:42 -0500 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2023-11-08 22:50:42 -0500 |
commit | 595556a089057993604485070f0f12cc2952e01d (patch) | |
tree | ee43428e704f0fad1de8ce9de6a941b47680c824 /src | |
parent | 17bf761fe95b621e66f1b023c6b5f229e488daa3 (diff) | |
download | carpentertutoring-595556a089057993604485070f0f12cc2952e01d.tar.xz carpentertutoring-595556a089057993604485070f0f12cc2952e01d.zip |
feat: rust serverdev
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..06e4243 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,16 @@ +use axum::Router; +use axum::routing::get; +use axum::Server; + +#[tokio::main] +async fn main() { + //let app = Router::new().route("/", get(hello)); + let test: Vec<String> = Vec::new(); + if test.len() == 0 {} + + //Server::bind(([0, 0, 0, 0], 8000u16)).serve().await.expect("failed to start server"); +} + +async fn hello() { todo!()} + + |