add support for validify

This commit is contained in:
gengteng
2023-10-19 23:12:32 +08:00
parent 61bf3c5b23
commit b2d2c3d7ca
14 changed files with 1139 additions and 354 deletions

View File

@@ -1,7 +1,7 @@
[package]
name = "axum-valid"
version = "0.10.1"
description = "Provides validation extractors for your Axum application to validate data using validator, garde, or both."
version = "0.11.0"
description = "Provides validation extractors for your Axum application, allowing you to validate data using validator, garde, validify or all of them."
authors = ["GengTeng <me@gteng.org>"]
license = "MIT"
homepage = "https://github.com/gengteng/axum-valid"
@@ -11,7 +11,8 @@ keywords = [
"axum",
"validator",
"extractor",
"web",
"garde",
"validify",
]
categories = [
"asynchronous",
@@ -21,11 +22,11 @@ categories = [
edition = "2021"
[package.metadata.docs.rs]
features = ["all_types", "garde"]
features = ["full"]
[dependencies]
axum = { version = "0.6.20", default-features = false }
garde = { version = "0.15.0", optional = true }
garde = { version = "0.16.0", optional = true }
validator = { version = "0.16.1", optional = true}
validify = { version = "1.0.12", optional = true }
@@ -50,18 +51,18 @@ default-features = false
optional = true
[dependencies.serde]
version = "1.0.188"
version = "1.0.189"
optional = true
[dev-dependencies]
anyhow = "1.0.72"
axum = { version = "0.6.20", features = ["macros"] }
tokio = { version = "1.29.1", features = ["full"] }
tokio = { version = "1.33.0", features = ["full"] }
hyper = { version = "0.14.27", features = ["full"] }
reqwest = { version = "0.11.18", features = ["json", "multipart"] }
serde = { version = "1.0.188", features = ["derive"] }
validator = { version = "0.16.0", features = ["derive"] }
serde_json = "1.0.104"
reqwest = { version = "0.11.22", features = ["json", "multipart"] }
serde = { version = "1.0.189", features = ["derive"] }
validator = { version = "0.16.1", features = ["derive"] }
serde_json = "1.0.107"
serde_yaml = "0.9.25"
mime = "0.3.17"
prost = "0.12.1"
@@ -90,6 +91,7 @@ extra_form = ["extra", "axum-extra/form"]
extra_protobuf = ["extra", "axum-extra/protobuf"]
all_extra_types = ["extra", "extra_typed_path", "extra_query", "extra_form", "extra_protobuf"]
all_types = ["json", "form", "query", "typed_header", "typed_multipart", "msgpack", "yaml", "all_extra_types"]
full = ["validator", "all_types", "422", "into_json"]
full_validator = ["validator", "all_types", "422", "into_json"]
full_garde = ["garde", "all_types", "422", "into_json"]
full_validify = ["validify", "all_types", "422", "into_json"]
full = ["full_validator", "full_garde", "full_validify"]