From 9245799135458d9afd5e779b6d061cee0962d585 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 11 Jul 2026 01:51:35 +0800 Subject: feat: add mingling-picker and mingling-picker-macros crates --- mingling/src/lib.rs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'mingling/src/lib.rs') diff --git a/mingling/src/lib.rs b/mingling/src/lib.rs index 0fd4ece..ff8890c 100644 --- a/mingling/src/lib.rs +++ b/mingling/src/lib.rs @@ -71,10 +71,16 @@ mod example_docs; pub use mingling::*; pub use mingling_core as mingling; -/// `Mingling` argument parser +/// `Mingling` argument parser (Built-in) #[cfg(feature = "parser")] pub mod parser; +/// `Mingling` argument parser (Picker2) +#[cfg(feature = "picker")] +pub mod picker { + pub use mingling_picker::*; +} + /// Re-export of all macros from `mingling_macros`. /// /// This module re-exports all macros provided by the `mingling_macros` crate, @@ -162,6 +168,9 @@ pub mod macros { /// `suggest_enum!(EnumNames)` - Used to generate enum suggestions #[cfg(feature = "comp")] pub use mingling_macros::suggest_enum; + + #[cfg(feature = "picker")] + pub use mingling_macros::*; } /// derive macro `EnumTag` @@ -250,4 +259,7 @@ pub mod prelude { /// Re-export of the `AsPicker` trait for picker functionality. #[cfg(feature = "parser")] pub use crate::parser::AsPicker; + + #[cfg(feature = "picker")] + pub use mingling_picker::prelude::*; } -- cgit