aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-06-20 01:30:10 +0800
committer魏曹先生 <1992414357@qq.com>2026-06-20 01:30:10 +0800
commitd3177c386d739a3dc0e06890ad8f14713ef44ee0 (patch)
tree98193b025812ee13b1f0f0bb38e1d58fd2558f3d /CHANGELOG.md
parent9d491352d161ee629cc47459537344ba0ea4bb35 (diff)
Add `group!` macro for registering external types
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0a9b6b1..f32bb60 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -180,6 +180,14 @@ This macro is only available with the `extra_macros` feature.
9. **\[mingling\]** Added `Groupped` trait to the `mingling::prelude` module, so it can now be imported via `use mingling::prelude::*` without needing to separately import the trait from the `mingling` crate root.
+10. **\[macros\]** Added the `group!` macro for registering outside-types from external crates as group members without modifying their definitions. This macro generates a `Groupped` implementation and registers the type's simple name as an enum variant.
+
+```rust,ignore
+group!(std::io::Error);
+```
+
+This macro is only available with the `extra_macros` feature.
+
#### **BREAKING CHANGES** (API CHANGES):
1. **\[core\]** Changed the signature of `ProgramSetup::setup` from `fn setup(&mut self, program: &mut Program<C>) -> S` to `fn setup(self, program: &mut Program<C>)`, consuming `self` instead of taking a mutable reference. Correspondingly, `Program::with_setup` now accepts `S` by value (`&mut self, setup: S`) instead of by mutable reference (`&mut self, setup: &mut S`).