From e66b1335a22df2a9f9555e59e30200644bb3483f Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Tue, 14 Jul 2026 18:23:45 +0800 Subject: feat(mingling): add ParserStyle and re-export parselib module Add a configurable `ParserStyle` struct defining option prefix, separator and case-sensitivity conventions, with built-in constants for Unix, PowerShell and Windows styles. Provide a one-time global style setter. Re-export the new `parselib` module from `mingling_picker` and wire it through `mingling`'s `picker` facade. Also relocate `Groupped` and `RenderResult` re-exports in `prelude` for better ordering. --- mingling/src/lib.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'mingling/src/lib.rs') diff --git a/mingling/src/lib.rs b/mingling/src/lib.rs index bee6fbb..49faceb 100644 --- a/mingling/src/lib.rs +++ b/mingling/src/lib.rs @@ -83,6 +83,10 @@ pub mod parser; #[cfg(feature = "picker")] pub mod picker { pub use mingling_picker::*; + + pub mod parselib { + pub use mingling_picker::parselib::*; + } } /// Re-export of all macros from `mingling_macros`. @@ -222,6 +226,10 @@ pub mod res; /// use mingling::prelude::*; /// ``` pub mod prelude { + /// Re-export of the `Groupped` derive macro for grouping types. + pub use crate::Groupped; + /// Re-export of the `RenderResult` struct for outputting rendering result + pub use crate::RenderResult; /// Re-export of the `chain` macro for defining a chain of commands. pub use crate::macros::chain; /// Re-export of the `dispatcher` macro for routing commands. @@ -238,10 +246,6 @@ pub mod prelude { pub use crate::macros::pack_err; /// Re-export of the `renderer` macro for defining renderer functions. pub use crate::macros::renderer; - /// Re-export of the `Groupped` derive macro for grouping types. - pub use crate::Groupped; - /// Re-export of the `RenderResult` struct for outputting rendering result - pub use crate::RenderResult; /// Like `pack_err!` but also marks the type for structured output #[cfg(all(feature = "structural_renderer", feature = "extra_macros"))] pub use mingling_macros::pack_err_structural; -- cgit