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> { + // }