From 538516a2104edba2c35b1f4ce40ec5a25589b62b Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Tue, 14 Jul 2026 19:10:05 +0800 Subject: feat(picker): add optional `core` feature with re-exports Define a `core` feature in mingling_picker that gates a new `corebind` module and re-exports its contents. The module is propagated to the upstream `mingling` crate under the same feature flag. --- mingling_picker/Cargo.toml | 5 ++++- mingling_picker/src/corebind.rs | 1 + mingling_picker/src/lib.rs | 6 ++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 mingling_picker/src/corebind.rs (limited to 'mingling_picker') diff --git a/mingling_picker/Cargo.toml b/mingling_picker/Cargo.toml index aae4d54..a585a39 100644 --- a/mingling_picker/Cargo.toml +++ b/mingling_picker/Cargo.toml @@ -8,6 +8,9 @@ authors = ["Weicao-CatilGrass"] readme = "README.md" description = "Mingling's lightweight argument parser" +[features] +core = ["dep:mingling_core"] + [dependencies] -mingling_core.workspace = true +mingling_core = { workspace = true, optional = true } mingling_picker_macros.workspace = true diff --git a/mingling_picker/src/corebind.rs b/mingling_picker/src/corebind.rs new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/mingling_picker/src/corebind.rs @@ -0,0 +1 @@ + diff --git a/mingling_picker/src/lib.rs b/mingling_picker/src/lib.rs index 4056283..d3d3fdd 100644 --- a/mingling_picker/src/lib.rs +++ b/mingling_picker/src/lib.rs @@ -19,3 +19,9 @@ pub mod prelude { pub mod macros { pub use mingling_picker_macros::*; } + +#[cfg(feature = "core")] +mod corebind; + +#[cfg(feature = "core")] +pub use corebind::*; -- cgit