From d895af6e53eb4a18554b3174f819eb771e81ca05 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 8 May 2026 14:49:25 +0800 Subject: Expose compile-time feature flags as public constants --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 583766d..51ca3c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,15 @@ fn proc(prev: HelloEntry) -> ChainProcess { 3. **\[mingling\]** Added the `dispatch_tree` feature. When enabled, it will automatically generate a prefix tree, improving the command lookup efficiency from O(n) to O(len) +4. **\[mingling\]** Added `mingling::feature` module for runtime feature detection. You can now check which features are enabled at compile time: + +```rust +// Example: Check if a feature is enabled +if mingling::feature::MINGLING_ASYNC { + // async feature is enabled +} +``` + #### **BREAKING CHANGES**: None -- cgit