From ca54a03d07492c5363e61ccce0290be801400bb3 Mon Sep 17 00:00:00 2001 From: schn33fuchs Date: Mon, 20 Apr 2026 21:07:06 +0200 Subject: [PATCH] Initialized Backend crate & deps Created a backend binary and defined it's dependencies --- Cargo.toml | 6 ------ backend/Cargo.toml | 10 ++++++++++ {src => backend/src}/main.rs | 0 3 files changed, 10 insertions(+), 6 deletions(-) delete mode 100644 Cargo.toml create mode 100644 backend/Cargo.toml rename {src => backend/src}/main.rs (100%) diff --git a/Cargo.toml b/Cargo.toml deleted file mode 100644 index 33e3be6..0000000 --- a/Cargo.toml +++ /dev/null @@ -1,6 +0,0 @@ -[package] -name = "ticketsystem" -version = "0.1.0" -edition = "2024" - -[dependencies] diff --git a/backend/Cargo.toml b/backend/Cargo.toml new file mode 100644 index 0000000..c4c14c9 --- /dev/null +++ b/backend/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "backend" +version = "0.1.0" +edition = "2024" + +[dependencies] +axum = "0.8.9" +serde = { version = "1.0.228", features = ["derive"] } +sqlx = { version = "0.8.6", features = ["postgres", "runtime-tokio", "tls-native-tls"] } +tokio = { version = "1.52.1", features = ["tr-multi-thread", "macros"] } diff --git a/src/main.rs b/backend/src/main.rs similarity index 100% rename from src/main.rs rename to backend/src/main.rs