diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-05-24 17:06:54 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-05-24 17:06:54 +0800 |
| commit | 60e70f5320b2abdb38a2349c18e5bffcfea37ca7 (patch) | |
| tree | 3402af0a2822255c1c3f9c77affe6da81c9d1279 /CHANGELOG.md | |
| parent | 11adad7db1b6202d5366527902c3f0a9fb90654f (diff) | |
Add implicit dispatcher macro with auto-derived names
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a344e3..a6bda6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -75,6 +75,16 @@ entry!(MyEntry, ["a", "b", "c"]) entry!["a", "b", "c"] ``` +7. **\[macros\]** Added `dispatcher!` macro with implicit entry/dispatcher name derivation + +```rust +// implicit +dispatcher!("remote.add" /*, CMDRemoteAdd => EntryRemoteAdd */); + +// explicit +dispatcher!("remote.remove", CMDRemoteRemove => EntryRemoteRemove); +``` + #### **BREAKING CHANGES** (API CHANGES): 1. **\[core\]** Panic Unwind will not be supported when the `async` feature is enabled |
