From 65eff7ac522ab5b5704ecb46e41c7fb5b7d332cf Mon Sep 17 00:00:00 2001 From: Luiz Carvalho Date: Tue, 1 Jul 2025 18:10:26 +0200 Subject: [PATCH] fix: spec_error is used by try_from derive The `try_from` field attribute in `FromRow` uses `__spec_error` to generate a column decode error. The `spec_error` is currently gated behind the macros feature flag only, but should also be available when using only `derive`. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index c608e02aea..fa4b8d0061 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -101,7 +101,7 @@ mod macros; #[doc(hidden)] pub mod ty_match; -#[cfg(feature = "macros")] +#[cfg(any(feature = "derive", feature = "macros"))] #[doc(hidden)] pub mod spec_error;