[package]
name = "api"
version = "0.1.0"
edition = "2021"
publish = false

[lib]
name = "api"
path = "src/lib.rs"

[dependencies]
axum = { workspace = true, features = ["macros", "query"] }
serde = { workspace = true }
tower = { workspace = true }
tracing = { workspace = true }
validator = { workspace = true, features = ["derive"] }
bcrypt = "0.17.1"
jsonwebtoken = "9.3.1"
once_cell = "1.21.3"


# db
sea-orm = { workspace = true }

# doc
utoipa = { workspace = true }

serde_json = { workspace = true }
tokio = { workspace = true }

# local dependencies
app = { path = "../app" }
models = { path = "../models" }
reqwest = { version = "0.12.23", features = ["json"] }


tower-http = { version = "0.6.6", features = ["fs", "cors"] }
tower-cookies = "0.11.0"
anyhow = "1.0.98"
dotenvy = "0.15.7"

[dev-dependencies]
