diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-11 01:58:48 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-11 02:01:32 +0800 |
| commit | 06b7ae78ed4b86b80e9708206787326c1142249a (patch) | |
| tree | d769709ed86ea05e2c139edf6c52a6a64630a5df | |
| parent | 41e076651196cf6066a73d88ce11635be35f0f26 (diff) | |
docs(dev): add Picker2 arguments parser issue page
| -rw-r--r-- | docs/dev/_sidebar.md | 1 | ||||
| -rw-r--r-- | docs/dev/pages/issues/add-picker2.md | 10 | ||||
| -rw-r--r-- | mingling/src/features.rs | 11 |
3 files changed, 22 insertions, 0 deletions
diff --git a/docs/dev/_sidebar.md b/docs/dev/_sidebar.md index e303735..e1c2214 100644 --- a/docs/dev/_sidebar.md +++ b/docs/dev/_sidebar.md @@ -1,5 +1,6 @@ - [Welcome!](README) * ❓ Issues + * [The Picker2 Arguments Parser](pages/issues/add-picker2) * [Remove r_print! and r_println! Macros](pages/issues/remove-r-print-macro) * [The Mod Pathfinder](pages/issues/the-mod-pathfinder) * [Some Situations Where You'd Be Like "Shit!"](pages/issues/the-shit-time) diff --git a/docs/dev/pages/issues/add-picker2.md b/docs/dev/pages/issues/add-picker2.md new file mode 100644 index 0000000..6b2df27 --- /dev/null +++ b/docs/dev/pages/issues/add-picker2.md @@ -0,0 +1,10 @@ +<h1 align="center">The Picker2 Arguments Parser</h1> +<p align="center"> + A smarter, faster alternative to Picker +</p> + +## Intro + +Mingling's `parser` feature is a temporary argument parsing solution created in the early stages of the project. While it can handle basic argument parsing tasks, its functionality is incomplete and has many limitations. + +This article aims to propose the design and development plan for the new Picker2 (feature name: `picker`). diff --git a/mingling/src/features.rs b/mingling/src/features.rs index 4d0c50b..32ca5de 100644 --- a/mingling/src/features.rs +++ b/mingling/src/features.rs @@ -141,6 +141,17 @@ pub const MINGLING_PATHF: bool = false; #[cfg(feature = "pathf")] #[allow(unused)] pub const MINGLING_PATHF: bool = true; +/// Whether the `picker` feature is enabled +/// Current: `disabled` +#[cfg(not(feature = "picker"))] +#[allow(unused)] +pub const MINGLING_PICKER: bool = false; + +/// Whether the `picker` feature is enabled +/// Current: `enabled` +#[cfg(feature = "picker")] +#[allow(unused)] +pub const MINGLING_PICKER: bool = true; /// Whether the `repl` feature is enabled /// Current: `disabled` #[cfg(not(feature = "repl"))] |
