diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-04-05 20:33:57 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-04-05 20:33:57 +0800 |
| commit | b6876f9df6e3119331fac01c0bc954ca9f3c798b (patch) | |
| tree | 030301c8d434d51fa386e9a5fff77bce5899733b /mingling_macros/src/pack.rs | |
| parent | b41e201e554c4ba5ad6f1e09ce58dd3d10b6a635 (diff) | |
Add general renderer support with serialization formats
Diffstat (limited to 'mingling_macros/src/pack.rs')
| -rw-r--r-- | mingling_macros/src/pack.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |
