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 --- mingling/src/lib.rs | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'mingling/src/lib.rs') diff --git a/mingling/src/lib.rs b/mingling/src/lib.rs index f366296..21a848d 100644 --- a/mingling/src/lib.rs +++ b/mingling/src/lib.rs @@ -137,3 +137,33 @@ pub use mingling_macros::Groupped; pub mod _mingling_examples { pub use crate::example_docs::*; } + +mod features; +pub mod feature { + /// Whether the `async` feature is enabled + pub use crate::features::MINGLING_ASYNC; + + /// Whether the `clap` feature is enabled + pub use crate::features::MINGLING_CLAP; + + /// Whether the `comp` feature is enabled + pub use crate::features::MINGLING_COMP; + + /// Whether the `debug` feature is enabled + pub use crate::features::MINGLING_DEBUG; + + /// Whether the `dispatch_tree` feature is enabled + pub use crate::features::MINGLING_DISPATCH_TREE; + + /// Whether the `general_renderer` feature is enabled + pub use crate::features::MINGLING_GENERAL_RENDERER; + + /// Whether the `nightly` feature is enabled + pub use crate::features::MINGLING_NIGHTLY; + + /// Whether the `parser` feature is enabled + pub use crate::features::MINGLING_PARSER; + + /// Whether the `repl` feature is enabled + pub use crate::features::MINGLING_REPL; +} -- cgit