From 3518ba185a46358e9d476983213c74678ceba917 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 19 Jul 2026 01:17:20 +0800 Subject: feat(arg_picker): add mingling_support feature flag --- arg_picker/Cargo.toml | 3 +++ mingling/Cargo.toml | 2 +- mingling/src/lib.rs | 5 ++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/arg_picker/Cargo.toml b/arg_picker/Cargo.toml index 913719e..d87a844 100644 --- a/arg_picker/Cargo.toml +++ b/arg_picker/Cargo.toml @@ -8,6 +8,9 @@ authors = ["Weicao-CatilGrass"] readme = "README.md" description = "A lightweight, type-safe CLI argument parser" +[features] +mingling_support = ["arg-picker-macros/mingling_support"] + [dependencies] arg-picker-macros.workspace = true just_fmt.workspace = true diff --git a/mingling/Cargo.toml b/mingling/Cargo.toml index 6945b67..adf900f 100644 --- a/mingling/Cargo.toml +++ b/mingling/Cargo.toml @@ -50,7 +50,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:arg-picker"] +picker = ["dep:arg-picker", "arg-picker/mingling_support"] pathf = ["mingling_core/pathf", "mingling_macros/pathf"] structural_renderer = [ diff --git a/mingling/src/lib.rs b/mingling/src/lib.rs index 499390d..4b3ced6 100644 --- a/mingling/src/lib.rs +++ b/mingling/src/lib.rs @@ -218,7 +218,10 @@ pub mod prelude { pub use crate::parser::AsPicker; #[cfg(feature = "picker")] - pub use arg_picker::prelude::*; + pub use arg_picker::prelude::arg; + + #[cfg(feature = "picker")] + pub use crate::picker::EntryPicker; /// Used to enable the `writeln!` macro for `RenderResult` #[cfg(feature = "core")] -- cgit