aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-06-20 00:20:44 +0800
committer魏曹先生 <1992414357@qq.com>2026-06-20 00:20:44 +0800
commitbe586e42eadc1185e8bf0b1088bc978cec81b33e (patch)
treef0a8c89daff44713ca1ed72321501f319f73ae2c
parente1b8f6bc80c361070265484fcc442f7923523c1e (diff)
Re-export Groupped trait from prelude
-rw-r--r--CHANGELOG.md2
-rw-r--r--mingling/src/lib.rs2
2 files changed, 4 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9875171..0a9b6b1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -178,6 +178,8 @@ impl ErrorNotDir {
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.
+
#### **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`).
diff --git a/mingling/src/lib.rs b/mingling/src/lib.rs
index f1232d3..f5c02fa 100644
--- a/mingling/src/lib.rs
+++ b/mingling/src/lib.rs
@@ -184,6 +184,8 @@ pub mod res;
/// use mingling::prelude::*;
/// ```
pub mod prelude {
+ /// Re-export of the `Groupped` derive macro for grouping types.
+ pub use crate::Groupped;
/// Re-export of the `chain` macro for defining a chain of commands.
pub use crate::macros::chain;
/// Re-export of the `dispatcher` macro for routing commands.