diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-17 05:51:36 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-17 05:51:36 +0800 |
| commit | db84beb600532f2366babd9a6563214bee1f3732 (patch) | |
| tree | adf20172ad20d41cebc8beebc514e4972b2a17bb /docs/dev/pages/issues/t1_modify-dispatcher-syntax.md | |
| parent | 57c53affe3542cb6bd4e79ee4c18f20a1bd76b2d (diff) | |
docs(sidebar): mark completed issues and reorder them
Diffstat (limited to 'docs/dev/pages/issues/t1_modify-dispatcher-syntax.md')
| -rw-r--r-- | docs/dev/pages/issues/t1_modify-dispatcher-syntax.md | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/docs/dev/pages/issues/t1_modify-dispatcher-syntax.md b/docs/dev/pages/issues/t1_modify-dispatcher-syntax.md deleted file mode 100644 index f1a9346..0000000 --- a/docs/dev/pages/issues/t1_modify-dispatcher-syntax.md +++ /dev/null @@ -1,44 +0,0 @@ -<h1 align="center">[T1] Modify the dispatcher! Syntax</h1> -<p align="center"> - Breaking: drop the <code>CMD*</code> struct from the explicit form of <code>dispatcher!</code> -</p> - -> [!NOTE] -> -> This is a **Breaking Change** planned for Mingling 0.5.0, and it depends on [Remove with_dispatcher and with_dispatchers](t0_remove-with-dispatcher). - -## Background - -Once `Dispatcher` registration is compile-time collected (see [Remove with_dispatcher and with_dispatchers](t0_remove-with-dispatcher)), the `CMD*` struct becomes unnecessary — it only existed to give `with_dispatcher` something to register. - -## Plan - -Simplify the `dispatcher!` syntax: the explicit form no longer creates a `CMD*` struct, so only the entry type needs to be given. - -```rust -// Before -dispatcher!("command", CMDCommand => EntryCommand); - -// After -dispatcher!("command", EntryCommand); - -// NOTE: The implicit mode is not affected -``` - -## Tasks - -- [ ] Update `dispatcher!` to accept the simplified explicit form (`"name", EntryType`) -- [ ] Decide whether the old `CMDType => EntryType` form should error with a helpful message or be removed outright -- [ ] Remove the generated `CMD*` struct machinery -- [ ] Update `#[command]` macro internals that depend on `CMD*` -- [ ] Migrate examples, tests, and docs -- [ ] Keep the implicit mode (`dispatcher!("name")`) working unchanged - -## 🕘 Progress - -- [ ] In Progress -- [ ] Complete - -<p align="center" style="font-size: 0.85em; color: gray;"> - Written by @Weicao-CatilGrass -</p> |
