73 lines
1.6 KiB
TOML
73 lines
1.6 KiB
TOML
[package]
|
|
name = "whitelist_api"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
path = "src/lib.rs"
|
|
|
|
[profile.release]
|
|
lto = true
|
|
|
|
[[bin]]
|
|
path = "src/main.rs"
|
|
name = "api"
|
|
|
|
[lints.rust]
|
|
unsafe_code = "forbid"
|
|
|
|
[dependencies]
|
|
axum = { version = "0.6.20", features = [ "tokio" ] }
|
|
utoipa = { version = "4.1.0", features = ["axum_extras", "uuid" ] }
|
|
utoipa-swagger-ui = { version = "4.0.0", features = ["axum"] }
|
|
anyhow = "1.0.75"
|
|
json-patch = "1.2.0"
|
|
thiserror = "1.0.50"
|
|
hyper = "0.14.27"
|
|
tower = "0.4.13"
|
|
claims = "0.7.1"
|
|
validator = { version = "0.16.1", features = [ "derive" ] }
|
|
unicode-segmentation = "1.10.1"
|
|
tower-http = { version = "0.4.4", features = ["tracing", "trace", "request-id"] }
|
|
config = "0.13.3"
|
|
uuid = { version = "1.5.0", features = ["v4", "fast-rng", "macro-diagnostics", "serde"] }
|
|
chrono = "0.4.31"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0.108"
|
|
serde-aux = "4.2.0"
|
|
serde_with = "3.4.0"
|
|
tokio = { version = "1.33.0", features = ["full"] }
|
|
tracing = { version = "0.1.40", features = ["log"] }
|
|
tracing-subscriber = { version = "0.3.17", features = [
|
|
"env-filter",
|
|
"registry",
|
|
"fmt",
|
|
"json",
|
|
] }
|
|
tracing-bunyan-formatter = "0.3.9"
|
|
tracing-log = "0.2.0"
|
|
secrecy = { version = "0.8.0", features = ["serde"] }
|
|
derive_more = "0.99.17"
|
|
lazy_static = "1.4.0"
|
|
|
|
[dependencies.sqlx]
|
|
version = "0.7.2"
|
|
default-features = false
|
|
features = [
|
|
"macros",
|
|
"uuid",
|
|
"chrono",
|
|
"migrate",
|
|
"postgres",
|
|
"runtime-tokio-rustls",
|
|
"rust_decimal"
|
|
]
|
|
|
|
[dev-dependencies]
|
|
reqwest = "0.11.22"
|
|
once_cell = "1.18.0"
|
|
fake = "2.9.1"
|
|
quickcheck = "1.0.3"
|
|
quickcheck_macros = "1.0.0"
|
|
rand = "0.8.5"
|