aboutsummaryrefslogtreecommitdiff
path: root/arg_picker/src/lib.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-17 11:08:07 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-17 11:11:28 +0800
commit79ec6878877f0fd9246d67d3cd4f8cc2d1200150 (patch)
treee3cd8cfc7ef5cd2a6a7ceb93d9a4b1764fa21b61 /arg_picker/src/lib.rs
parente6136f22cff446b16dbebf3b26a6fdea6dbc0e83 (diff)
refactor: rename `mingling_picker` to `arg_picker`
Diffstat (limited to 'arg_picker/src/lib.rs')
-rw-r--r--arg_picker/src/lib.rs62
1 files changed, 62 insertions, 0 deletions
diff --git a/arg_picker/src/lib.rs b/arg_picker/src/lib.rs
new file mode 100644
index 0000000..21a0d35
--- /dev/null
+++ b/arg_picker/src/lib.rs
@@ -0,0 +1,62 @@
+#![doc = include_str!("../README.md")]
+
+mod builtin;
+
+mod picker;
+pub use picker::*;
+
+mod pickable;
+pub use pickable::*;
+
+mod arg;
+pub use arg::*;
+
+mod infos;
+pub use infos::*;
+
+/// Provides the specific parsing logic for command-line arguments and common utilities,
+/// as well as customization of command-line argument styles.
+pub mod parselib;
+
+/// Parser-provided parseable command-line types
+pub mod value;
+
+/// The prelude module, which re-exports the most commonly used traits and types.
+///
+/// This module is intended to be imported with a wildcard import:
+///
+/// ```
+/// use arg_picker::prelude::*;
+/// ```
+pub mod prelude {
+ 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 `arg_picker_macros` crate
+pub mod macros {
+ pub use arg_picker_macros::arg;
+}
+
+/// Provides the types necessary for implementing the `Pickable` trait
+pub mod pickable_needed {
+ pub use crate::{Pickable, PickerArg, PickerArgAttr, PickerArgResult, TagPhaseContext};
+}
+
+/// Provides the types necessary for implementing the `Matcher` trait
+pub mod matcher_needed {
+ pub use crate::PickerArgInfo;
+ pub use crate::parselib::{MaskedArg, Matcher, ParserStyle};
+}
+
+#[cfg(feature = "mingling_support")]
+mod corebind;
+
+#[allow(unused_imports)]
+#[cfg(feature = "mingling_support")]
+pub use corebind::*;