add support for TypedMultipart
This commit is contained in:
16
Cargo.toml
16
Cargo.toml
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "axum-valid"
|
||||
version = "0.5.1"
|
||||
description = "Validation tools for axum using the validator library."
|
||||
version = "0.6.0"
|
||||
description = "Provide validator extractor for your axum application."
|
||||
authors = ["GengTeng <me@gteng.org>"]
|
||||
license = "MIT"
|
||||
homepage = "https://github.com/gengteng/axum-valid"
|
||||
@@ -9,7 +9,7 @@ repository = "https://github.com/gengteng/axum-valid"
|
||||
keywords = [
|
||||
"http",
|
||||
"web",
|
||||
"framework",
|
||||
"axum",
|
||||
"validator",
|
||||
]
|
||||
categories = [
|
||||
@@ -23,6 +23,11 @@ edition = "2021"
|
||||
axum = { version = "0.6.18", default-features = false }
|
||||
validator = "0.16.0"
|
||||
|
||||
[dependencies.axum_typed_multipart]
|
||||
version = "0.9.0"
|
||||
default-features = false
|
||||
optional = true
|
||||
|
||||
[dependencies.axum-msgpack]
|
||||
version = "0.3.0"
|
||||
default-features = false
|
||||
@@ -43,7 +48,7 @@ anyhow = "1.0.72"
|
||||
axum = { version = "0.6.19" }
|
||||
tokio = { version = "1.29.1", features = ["full"] }
|
||||
hyper = { version = "0.14.27", features = ["full"] }
|
||||
reqwest = { version = "0.11.18", features = ["json"] }
|
||||
reqwest = { version = "0.11.18", features = ["json", "multipart"] }
|
||||
serde = { version = "1.0.181", features = ["derive"] }
|
||||
validator = { version = "0.16.0", features = ["derive"] }
|
||||
serde_json = "1.0.104"
|
||||
@@ -59,6 +64,7 @@ json = ["axum/json"]
|
||||
form = ["axum/form"]
|
||||
query = ["axum/query"]
|
||||
typed_header = ["axum/headers"]
|
||||
typed_multipart = ["axum_typed_multipart"]
|
||||
msgpack = ["axum-msgpack"]
|
||||
yaml = ["axum-yaml"]
|
||||
into_json = ["json"]
|
||||
@@ -68,5 +74,5 @@ extra_query = ["axum-extra/query"]
|
||||
extra_form = ["axum-extra/form"]
|
||||
extra_protobuf = ["axum-extra/protobuf"]
|
||||
all_extra_types = ["extra", "extra_query", "extra_form", "extra_protobuf"]
|
||||
all_types = ["json", "form", "query", "typed_header", "msgpack", "yaml", "all_extra_types"]
|
||||
all_types = ["json", "form", "query", "typed_header", "typed_multipart", "msgpack", "yaml", "all_extra_types"]
|
||||
full = ["all_types", "422", "into_json"]
|
||||
|
||||
Reference in New Issue
Block a user