From a127d6f3cf2741d4dc404959c5481fa61651e133 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 16 May 2026 00:07:59 +0800 Subject: Refactor general_renderer into granular format-specific features --- mingling/src/features.rs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'mingling/src/features.rs') diff --git a/mingling/src/features.rs b/mingling/src/features.rs index d75f926..7d78012 100644 --- a/mingling/src/features.rs +++ b/mingling/src/features.rs @@ -51,3 +51,27 @@ pub const MINGLING_PARSER: bool = false; #[cfg(feature = "parser")] pub const MINGLING_PARSER: bool = true; + +#[cfg(not(feature = "json_serde_fmt"))] +pub const MINGLING_JSON_SERDE_FMT: bool = false; + +#[cfg(feature = "json_serde_fmt")] +pub const MINGLING_JSON_SERDE_FMT: bool = true; + +#[cfg(not(feature = "yaml_serde_fmt"))] +pub const MINGLING_YAML_SERDE_FMT: bool = false; + +#[cfg(feature = "yaml_serde_fmt")] +pub const MINGLING_YAML_SERDE_FMT: bool = true; + +#[cfg(not(feature = "toml_serde_fmt"))] +pub const MINGLING_TOML_SERDE_FMT: bool = false; + +#[cfg(feature = "toml_serde_fmt")] +pub const MINGLING_TOML_SERDE_FMT: bool = true; + +#[cfg(not(feature = "ron_serde_fmt"))] +pub const MINGLING_RON_SERDE_FMT: bool = false; + +#[cfg(feature = "ron_serde_fmt")] +pub const MINGLING_RON_SERDE_FMT: bool = true; -- cgit