[package]
name = "gotcha"
description = "Enhanced web framework built on top of Axum with OpenAPI, metrics, and configuration management"
edition = "2021"
version = "0.3.0"
license = "MIT"
repository = "https://github.com/Kilerd/gotcha/"
[lib]
doctest = false
[features]
default = ["http1"]
http1 = ["axum/http1", "axum/tokio"]
prometheus = ["dep:axum-prometheus"]
openapi = ["dep:oas", "dep:gotcha_core", "gotcha_core/axum"]
cors = ["dep:tower-http"]
static_files = ["dep:tower-http", "tower-http/fs"]
task = ["dep:cron", "tokio/time"]
message = ["tokio/rt"]
[dependencies]
async-trait = "0.1.60"
gotcha_macro = { version = "0.3", path = "../gotcha_macro" }
gotcha_core = { version = "0.3", path = "../gotcha_core", optional = true }
serde = {version = "1", features = ["derive"]}
tokio = {version = "1"}
tracing = "0.1"
tracing-subscriber = {version="0.3", features=["env-filter"]}
log = "0.4"
cron = {version = "0.12.0", optional = true}
chrono = "0.4.23"
http = "0.2"
oas = { version = "0.1", optional = true }
mofa = "0.1"
axum = {version = "0.7", default-features = false, features = ["form", "json", "query", "multipart"]}
tower-layer = "0.3.2"
tower-service = "0.3.2"
inventory = "0.3.15"
either = "1.13.0"
convert_case = "0.6.0"
once_cell = "1"
axum-prometheus = { version = "0.7.0", optional = true }
axum-macros = "0.4"
tower-http = { version = "0.6", optional = true, features = ["cors", "fs"] }
cfg-if = { workspace = true }
thiserror = "1.0"
serde_json = "1"
bigdecimal = "0.4"
rust_decimal = "1.36"
uuid = {version = "1.10" }
regex = "1.7"
[dev-dependencies]
trybuild = "1.0"
assert-json-diff = "2"
gotcha_core = { version = "0.3", path = "../gotcha_core" }