refactor Rejections

This commit is contained in:
gengteng
2023-10-09 19:53:19 +08:00
parent cc4cd9f70c
commit a3ca376769
4 changed files with 81 additions and 117 deletions

View File

@@ -48,13 +48,17 @@ version = "0.8.0"
default-features = false
optional = true
[dependencies.serde]
version = "1.0.188"
optional = true
[dev-dependencies]
anyhow = "1.0.72"
axum = { version = "0.6.20", features = ["macros"] }
tokio = { version = "1.29.1", features = ["full"] }
hyper = { version = "0.14.27", features = ["full"] }
reqwest = { version = "0.11.18", features = ["json", "multipart"] }
serde = { version = "1.0.181", features = ["derive"] }
serde = { version = "1.0.188", features = ["derive"] }
validator = { version = "0.16.0", features = ["derive"] }
serde_json = "1.0.104"
serde_yaml = "0.9.25"
@@ -75,7 +79,7 @@ typed_header = ["axum/headers"]
typed_multipart = ["axum_typed_multipart"]
msgpack = ["axum-msgpack"]
yaml = ["axum-yaml"]
into_json = ["json"]
into_json = ["json", "serde"]
422 = []
extra = ["axum-extra"]
extra_typed_path = ["axum-extra/typed-routing"]