aboutsummaryrefslogtreecommitdiff
path: root/mingling
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-11 01:51:35 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-11 01:51:35 +0800
commit9245799135458d9afd5e779b6d061cee0962d585 (patch)
tree1ed86601fd566ea4373fa34dd16e5c8a798707ac /mingling
parentfe2f3405f518e5ad34fc6f6e409fdfafbb10e8d9 (diff)
feat: add mingling-picker and mingling-picker-macros crates
Diffstat (limited to 'mingling')
-rw-r--r--mingling/Cargo.toml3
-rw-r--r--mingling/src/lib.rs14
2 files changed, 16 insertions, 1 deletions
diff --git a/mingling/Cargo.toml b/mingling/Cargo.toml
index be223fe..667cfa5 100644
--- a/mingling/Cargo.toml
+++ b/mingling/Cargo.toml
@@ -44,6 +44,7 @@ dispatch_tree = ["mingling_core/dispatch_tree", "mingling_macros/dispatch_tree"]
repl = ["mingling_core/repl", "mingling_macros/repl"]
comp = ["mingling_core/comp", "mingling_macros/comp"]
parser = ["dep:size"]
+picker = ["dep:mingling_picker", "dep:mingling_picker_macros"]
pathf = ["mingling_core/pathf", "mingling_macros/pathf"]
structural_renderer = [
@@ -83,5 +84,7 @@ extra_macros = ["mingling_macros/extra_macros"]
[dependencies]
mingling_core.workspace = true
mingling_macros.workspace = true
+mingling_picker = { workspace = true, optional = true }
+mingling_picker_macros = { workspace = true, optional = true }
serde = { workspace = true, optional = true }
size = { version = "0.5", optional = true }
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::*;
}