From 10802a5249ede21ca52a056628c55edcfbc1585c Mon Sep 17 00:00:00 2001 From: gengteng Date: Tue, 19 Dec 2023 16:32:18 +0800 Subject: [PATCH] fix: Lock validify dependency to version 1.0.12 in axum-valid This commit addresses a compilation error caused by the validify crate update to version 1.1.1. By explicitly setting the validify dependency to version 1.0.12 in the Cargo.toml of the axum-valid project, we avoid the issue where the 'prost' attribute cannot be found in the newer version of validify. This serves as a temporary solution until the underlying issue with validify 1.1.1 is resolved. --- Cargo.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ac27a22..b390d6e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,8 @@ features = ["full", "aide"] axum = { version = "0.7.1", default-features = false } garde = { version = "0.16.3", optional = true } validator = { version = "0.16.1", optional = true} -validify = { version = "1.0.12", optional = true } +validify = { version = "=1.0", optional = true } +validify_derive = { version = "=1.0", optional = true } [dependencies.axum-extra] version = "0.9.0" @@ -73,7 +74,7 @@ default = ["basic", "validator"] basic = ["json", "form", "query"] garde = ["dep:garde"] validator = ["dep:validator"] -validify = ["dep:validify"] +validify = ["dep:validify", "dep:validify_derive"] json = ["axum/json"] form = ["axum/form"] query = ["axum/query"]