feat: sqlx

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-12-03 21:33:42 +03:00
parent 40149b372d
commit 20af44c357
16 changed files with 135 additions and 194 deletions

View file

@ -3,16 +3,22 @@ name = "rust_forum"
version = "0.1.0"
edition = "2021"
[workspace]
members = [".", "entity", "migration"]
[lints.rust]
unsafe_code = "forbid"
[profile.release]
opt-level = 3
lto = true
overflow-checks = true
codegen-units = 1
panic = "abort"
strip = "symbols"
[dependencies]
entity = { path = "entity" }
migration = { path = "migration" }
axum = "0.7.9"
chrono = { version = "0.4.38", features = ["serde"] }
sea-orm = { version = "1.1.2", features = ["macros", "runtime-tokio-rustls", "sqlx-postgres", "with-chrono", "with-json"] }
serde = { version = "1.0.215", features = ["derive"] }
serde_json = "1.0.133"
sqlx = { version = "0.8.2", features = ["chrono", "macros", "postgres", "runtime-tokio-rustls"] }
tokio = { version = "1.41.1", features = ["full"] }
tower-http = { version = "0.6.2", features = ["cors"] }