From 8ac952c460dae00899a900f54a9d7b2475420ce2 Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 21 Jun 2024 20:51:33 +0200 Subject: [PATCH] chore: add server placeholder --- server/Cargo.toml | 10 ++++++++++ server/src/lib.rs | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 server/Cargo.toml create mode 100644 server/src/lib.rs diff --git a/server/Cargo.toml b/server/Cargo.toml new file mode 100644 index 0000000..8ab6c3e --- /dev/null +++ b/server/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "scct-server" +version = "0.1.0" +edition = "2021" + +[lib] + +[dependencies] +sea-orm = { version = "0.12.15", features = ["runtime-tokio-rustls", "sqlx-mysql", "sqlx-sqlite", "sqlx-postgres"] } +tracing = "0.1.40" diff --git a/server/src/lib.rs b/server/src/lib.rs new file mode 100644 index 0000000..3bfcba0 --- /dev/null +++ b/server/src/lib.rs @@ -0,0 +1,4 @@ + +pub async fn serve(addr: &str) -> Result<(), Box> { + todo!() +}