From 19eff26934426cbb4c7c3656de298d0012025df7 Mon Sep 17 00:00:00 2001 From: Nicolai VdS Date: Fri, 7 Feb 2025 23:04:51 +0100 Subject: [PATCH] try 2 --- Cargo.toml | 12 ++++++++++++ src/main.rs | 13 +++++++++++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ffb4c40..06b5bcb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,3 +4,15 @@ version = "0.1.0" edition = "2021" [dependencies] +anyhow = "1.0.95" +async-trait = "0.1.86" +axum = { version = "0.8.1", features = ["json"] } +dotenvy = "0.15.7" +sea-orm = { version = "1.1.4", features = ["runtime-tokio-native-tls", "sqlx-postgres"] } +serde = { version = "1.0.217", features = ["derive"] } +serde_json = "1.0.138" +tokio = { version = "1.43.0", features = ["full"] } +tower-http = { version = "0.6.2", features = ["cors"] } + +[dev-dependencies] +sea-orm-cli = "1.1.4" diff --git a/src/main.rs b/src/main.rs index e7a11a9..3f45bf8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,12 @@ -fn main() { - println!("Hello, world!"); +use dotenvy::dotenv; + +mod base; +mod config; +mod models; +mod routes; +mod utils; + +#[tokio::main] +async fn main() -> Result<(), Box> { + // }