66 lines
1.5 KiB
TOML
66 lines
1.5 KiB
TOML
[package]
|
|
name = "learn_axum"
|
|
version = "0.2.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
path = "src/main.rs"
|
|
name = "learn_axum"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
tokio = { version = "1.36.0", features = ["full"] }
|
|
hyper = { version = "1.2.0", features = ["full"] }
|
|
# Serde / json
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1"
|
|
serde-aux = "4"
|
|
# Axum
|
|
axum = { version = "0.7" }
|
|
tower = { version = "0.4" }
|
|
tower-http = { version = "0.5", features = ["trace", "request-id", "util"] }
|
|
# Others
|
|
config = "0.14"
|
|
uuid = { version = "1", features = ["v4", "fast-rng"] }
|
|
chrono = { version = "0.4", default-features = false, features = ["clock"] }
|
|
tracing = { version = "0.1", features = ["log"] }
|
|
tracing-subscriber = { version = "0.3", features = ["registry", "env-filter"] }
|
|
tracing-bunyan-formatter = "0.3"
|
|
tracing-log = "0.2"
|
|
secrecy = { version = "0.8", features = ["serde"] }
|
|
unicode-segmentation = "1"
|
|
strum_macros = "0.26"
|
|
validator = "0.17"
|
|
|
|
[dependencies.sqlx]
|
|
version = "0.7"
|
|
default-features = false
|
|
features = [
|
|
"runtime-tokio-rustls",
|
|
"macros",
|
|
"postgres",
|
|
"uuid",
|
|
"chrono",
|
|
"migrate",
|
|
]
|
|
|
|
[dependencies.reqwest]
|
|
version = "0.11"
|
|
default-features = false
|
|
features = ["json", "rustls-tls"]
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "1", features = ["rt", "macros"] }
|
|
once_cell = "1"
|
|
claims = "0.7"
|
|
fake = "2.9.2"
|
|
quickcheck = "1.0.3"
|
|
quickcheck_macros = "1.0.0"
|
|
rand = "0.8.5"
|
|
wiremock = "0.6.0"
|
|
serde_json = "1"
|
|
linkify = "0.10"
|