From b600d32b24cca14d53dcf90e2c6edaf4adaaae93 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Wed, 15 Apr 2026 12:52:31 +0100 Subject: [PATCH 1/2] Update darling from 0.20 to 0.21 --- validator_derive/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validator_derive/Cargo.toml b/validator_derive/Cargo.toml index 58e0de56..e10dc459 100644 --- a/validator_derive/Cargo.toml +++ b/validator_derive/Cargo.toml @@ -19,7 +19,7 @@ syn = "2" quote = "1" proc-macro2 = "1" proc-macro-error2 = "2" -darling = { version = "0.20", features = ["suggestions"] } +darling = { version = "0.21", features = ["suggestions"] } [features] nightly_features = ["proc-macro-error2/nightly"] From 1d5eb7ee6cc649bae14d5aa6f0aa2d549ab6bdb6 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Tue, 21 Apr 2026 14:46:25 +0100 Subject: [PATCH 2/2] Update defined_args_in_custom.stderr for darling 0.21 --- .../tests/compile-fail/custom/defined_args_in_custom.stderr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validator_derive_tests/tests/compile-fail/custom/defined_args_in_custom.stderr b/validator_derive_tests/tests/compile-fail/custom/defined_args_in_custom.stderr index 5bd35ebf..43295beb 100644 --- a/validator_derive_tests/tests/compile-fail/custom/defined_args_in_custom.stderr +++ b/validator_derive_tests/tests/compile-fail/custom/defined_args_in_custom.stderr @@ -1,4 +1,4 @@ -error: Unknown field: `arg` +error: Unknown field: `arg`. Available values: `code`, `function`, `message`, `use_context` --> tests/compile-fail/custom/defined_args_in_custom.rs:5:49 | 5 | #[validate(custom(function = "hello_world", arg = "(i64, i64)"))]