aboutsummaryrefslogtreecommitdiff
path: root/mingling/src/lib.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-20 04:57:57 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-20 04:57:57 +0800
commit34c4c66c1d336469e71fad8cff4828cf5d2bdafb (patch)
tree056dd2aef3b775f0d505353a50eefe9e72b7d84d /mingling/src/lib.rs
parent8526d32f5713caee52a4839701fe4c4e499fc646 (diff)
feat(core)!: remove `to_chain` and `to_render` from `Grouped` trait
Move routing methods exclusively to the `Routable` trait and update all macro-generated code to reference `Routable` instead of `Grouped`
Diffstat (limited to 'mingling/src/lib.rs')
-rw-r--r--mingling/src/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/mingling/src/lib.rs b/mingling/src/lib.rs
index 5cd53db..a34452d 100644
--- a/mingling/src/lib.rs
+++ b/mingling/src/lib.rs
@@ -175,12 +175,15 @@ pub mod res;
/// use mingling::prelude::*;
/// ```
pub mod prelude {
- /// Re-export of the `Grouped` derive macro for grouping types.
+ /// Re-export of the `Grouped` trait
#[cfg(feature = "core")]
pub use crate::Grouped;
/// Re-export of the `RenderResult` struct for outputting rendering result
#[cfg(feature = "core")]
pub use crate::RenderResult;
+ /// Re-export of the `Routable` trait
+ #[cfg(feature = "core")]
+ pub use crate::Routable;
/// Re-export of the `chain` macro for defining a chain of commands.
#[cfg(feature = "macros")]
pub use crate::macros::chain;