From b6876f9df6e3119331fac01c0bc954ca9f3c798b Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 5 Apr 2026 20:33:57 +0800 Subject: Add general renderer support with serialization formats --- mingling_macros/src/pack.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mingling_macros/src/pack.rs') diff --git a/mingling_macros/src/pack.rs b/mingling_macros/src/pack.rs index c6a6c67..a84010e 100644 --- a/mingling_macros/src/pack.rs +++ b/mingling_macros/src/pack.rs @@ -77,7 +77,7 @@ pub fn pack(input: TokenStream) -> TokenStream { }; // Generate the struct definition - #[cfg(not(feature = "serde"))] + #[cfg(not(feature = "general_renderer"))] let struct_def = quote! { #[derive(Debug)] pub struct #type_name { @@ -85,7 +85,7 @@ pub fn pack(input: TokenStream) -> TokenStream { } }; - #[cfg(feature = "serde")] + #[cfg(feature = "general_renderer")] let struct_def = quote! { #[derive(Debug, serde::Serialize)] pub struct #type_name { -- cgit