From d3ac40a44c5dec3f56393876c669ce7e0819a69e Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 15 Jul 2026 02:41:14 +0800 Subject: feat(picker): add `mingling_support` feature and `is_flag` field Rename the `core` feature to `mingling_support` in `mingling_picker` and propagate it through `mingling_picker_macros`. Add the `is_flag` field to `PickerTag` to indicate participation in parsing after a `--` separator. Remove empty `seek.rs` file. --- mingling_picker_macros/src/flag.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mingling_picker_macros/src') diff --git a/mingling_picker_macros/src/flag.rs b/mingling_picker_macros/src/flag.rs index 0d65382..71302ae 100644 --- a/mingling_picker_macros/src/flag.rs +++ b/mingling_picker_macros/src/flag.rs @@ -69,7 +69,12 @@ pub(crate) fn flag(input: TokenStream) -> TokenStream { }) .unwrap_or(TS2::new()); + #[cfg(feature = "mingling_support")] let import = quote! { ::mingling::picker::PickerFlag }; + + #[cfg(not(feature = "mingling_support"))] + let import = quote! { ::mingling_picker::PickerFlag }; + if ty.is_some() { quote! { #import::<#ty_ts> } } else { -- cgit