aboutsummaryrefslogtreecommitdiff
path: root/mingling/src
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-17 04:18:27 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-17 04:18:27 +0800
commit21b1872871a2af6483bfe8667749a9d3197b45de (patch)
tree5c1c3e383ab92f448f86268d7508ccad3b00a070 /mingling/src
parentab803966fedb640fedc95e22259e09b2922b22a0 (diff)
feat(mingling, mingling_picker): add feature constants and fixunreleased
formatting Add `MINGLING_CORE` and `MINGLING_MACROS` feature flag constants to the mingling crate, mirroring existing pattern for other features Reorganize imports and reformat closures in mingling_picker for consistent style
Diffstat (limited to 'mingling/src')
-rw-r--r--mingling/src/features.rs22
1 files changed, 22 insertions, 0 deletions
diff --git a/mingling/src/features.rs b/mingling/src/features.rs
index 32ca5de..cb474ae 100644
--- a/mingling/src/features.rs
+++ b/mingling/src/features.rs
@@ -53,6 +53,17 @@ pub const MINGLING_COMP: bool = false;
#[cfg(feature = "comp")]
#[allow(unused)]
pub const MINGLING_COMP: bool = true;
+/// Whether the `core` feature is enabled
+/// Current: `disabled`
+#[cfg(not(feature = "core"))]
+#[allow(unused)]
+pub const MINGLING_CORE: bool = false;
+
+/// Whether the `core` feature is enabled
+/// Current: `enabled`
+#[cfg(feature = "core")]
+#[allow(unused)]
+pub const MINGLING_CORE: bool = true;
/// Whether the `debug` feature is enabled
/// Current: `disabled`
#[cfg(not(feature = "debug"))]
@@ -108,6 +119,17 @@ pub const MINGLING_JSON_SERDE_FMT: bool = false;
#[cfg(feature = "json_serde_fmt")]
#[allow(unused)]
pub const MINGLING_JSON_SERDE_FMT: bool = true;
+/// Whether the `macros` feature is enabled
+/// Current: `disabled`
+#[cfg(not(feature = "macros"))]
+#[allow(unused)]
+pub const MINGLING_MACROS: bool = false;
+
+/// Whether the `macros` feature is enabled
+/// Current: `enabled`
+#[cfg(feature = "macros")]
+#[allow(unused)]
+pub const MINGLING_MACROS: bool = true;
/// Whether the `nightly` feature is enabled
/// Current: `disabled`
#[cfg(not(feature = "nightly"))]