From f3f1cc211a1e03ebc9110e0b253d957fdb9a6366 Mon Sep 17 00:00:00 2001 From: Alexander Koz Date: Thu, 30 May 2024 21:55:41 +0400 Subject: [PATCH] fix missed feature-gate --- support/build/src/metadata/format.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/support/build/src/metadata/format.rs b/support/build/src/metadata/format.rs index 25f73155..31767f78 100644 --- a/support/build/src/metadata/format.rs +++ b/support/build/src/metadata/format.rs @@ -334,16 +334,16 @@ impl AssetsRules { /// Actually anti-compat, just validation and proper error message. mod compat { + #![cfg(feature = "serde")] use super::{AssetsOptions, Deserialize, Deserializer, HashMap, RuleValue}; - #[derive(Debug, Clone, PartialEq)] - #[cfg_attr(feature = "serde", derive(Deserialize))] - #[cfg_attr(feature = "serde", serde(untagged, deny_unknown_fields))] + #[derive(Debug, Clone, PartialEq, Deserialize)] + #[serde(untagged, deny_unknown_fields)] enum AssetsRules { Normal(super::AssetsRules), LegacyMap { options: AssetsOptions, - #[cfg_attr(feature = "serde", serde(flatten))] + #[serde(flatten)] rules: HashMap, }, }