aboutsummaryrefslogtreecommitdiff
path: root/mingling/src/lib.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-14 18:23:45 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-14 18:23:45 +0800
commite66b1335a22df2a9f9555e59e30200644bb3483f (patch)
tree1b3d4194548d543049a7bccf8c469a04011a81a5 /mingling/src/lib.rs
parenta18efb4aaaab51cb9ef1663f58286747e2e951ee (diff)
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.
Diffstat (limited to 'mingling/src/lib.rs')
-rw-r--r--mingling/src/lib.rs12
1 files changed, 8 insertions, 4 deletions
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;