feat: initialize rust backend with axum server, seaorm models, and project scaffolding

This commit is contained in:
2025-12-18 18:46:56 +05:30
parent 9c0715637f
commit e2930d1cd5
17 changed files with 576 additions and 3 deletions

43
backend/Cargo.toml Normal file
View File

@@ -0,0 +1,43 @@
[package]
name = "zhealth-backend"
version = "0.1.0"
edition = "2024"
[[bin]]
name = "zhealth"
path = "src/main.rs"
[dependencies]
# Web Framework
axum = "0.8"
tokio = { version = "1", features = ["full"] }
tower = "0.5"
tower-http = { version = "0.6", features = ["cors", "trace"] }
# Database
sea-orm = { version = "1.1", features = ["sqlx-sqlite", "runtime-tokio-rustls", "macros"] }
# Serialization
serde = { version = "1", features = ["derive"] }
serde_yaml = "0.9"
# Auth
argon2 = "0.5"
rand = "0.8"
# Time
chrono = { version = "0.4", features = ["serde"] }
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Error handling
thiserror = "2"
anyhow = "1"
# Regex for config env expansion
regex = "1"
# CLI
argh = "0.1"