From 8b2bbdef88f47838ed0326f5c9cf86bac84babde Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 15 Jul 2026 19:31:23 +0800 Subject: feat(picker): add builtin bool pickable and parselib matcher framework Add `Pickable` implementation for `bool` and the supporting `Matcher` trait with utility functions for argument matching. Expose `pickable_needed` and `matcher_needed` modules for downstream trait implementors. --- mingling_picker/src/lib.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'mingling_picker/src/lib.rs') diff --git a/mingling_picker/src/lib.rs b/mingling_picker/src/lib.rs index bee2c50..7e48db7 100644 --- a/mingling_picker/src/lib.rs +++ b/mingling_picker/src/lib.rs @@ -1,3 +1,5 @@ +mod builtin; + mod picker; pub use picker::*; @@ -20,6 +22,17 @@ pub mod macros { pub use mingling_picker_macros::*; } +/// Provides the types necessary for implementing the `Pickable` trait +pub mod pickable_needed { + pub use crate::{Pickable, PickerArgResult, PickerFlag, PickerFlagAttr, TagPhaseContext}; +} + +/// Provides the types necessary for implementing the `Matcher` trait +pub mod matcher_needed { + pub use crate::PickerArgInfo; + pub use crate::parselib::{MaskedArg, Matcher, ParserStyle}; +} + #[cfg(feature = "mingling_support")] mod corebind; -- cgit