aboutsummaryrefslogtreecommitdiff
path: root/mingling_picker/src/lib.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-17 08:48:35 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-17 08:48:35 +0800
commitd77e8926dff6466f0c46ee4529dd9f7b9772ae99 (patch)
treeb7e1cec03538beef8e4c4c134b0c5dba3dc82f0b /mingling_picker/src/lib.rs
parent80c66d1efc9babfc1991edc023b06adad680edbb (diff)
feat(corebind): add EntryPicker trait for binding entry types to Picker
BREAKING CHANGE: prelude now exports EntryPicker in place of IntoPicker when mingling_support feature is enabled
Diffstat (limited to 'mingling_picker/src/lib.rs')
-rw-r--r--mingling_picker/src/lib.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/mingling_picker/src/lib.rs b/mingling_picker/src/lib.rs
index ffa6e13..0ade673 100644
--- a/mingling_picker/src/lib.rs
+++ b/mingling_picker/src/lib.rs
@@ -29,8 +29,13 @@ pub mod value;
/// use mingling_picker::prelude::*;
/// ```
pub mod prelude {
- pub use crate::IntoPicker;
pub use crate::macros::arg;
+
+ #[cfg(not(feature = "mingling_support"))]
+ pub use crate::IntoPicker;
+
+ #[cfg(feature = "mingling_support")]
+ pub use crate::corebind::EntryPicker;
}
/// Re-export of the `mingling_picker_macros` crate