From 34c4c66c1d336469e71fad8cff4828cf5d2bdafb Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 20 Jul 2026 04:57:57 +0800 Subject: 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` --- mling/src/cli.rs | 2 +- mling/src/proj_mgr/generator.rs | 2 +- mling/src/proj_mgr/show_binaries.rs | 2 +- mling/src/proj_mgr/show_directories.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'mling/src') diff --git a/mling/src/cli.rs b/mling/src/cli.rs index 69e4fe9..20906c0 100644 --- a/mling/src/cli.rs +++ b/mling/src/cli.rs @@ -11,7 +11,7 @@ use crate::{ }; use colored::Colorize; use mingling::{ - Grouped, Program, RenderResult, + Grouped, Program, RenderResult, Routable, hook::ProgramHook, macros::{chain, help, pack, program_setup, renderer}, res::ResExitCode, diff --git a/mling/src/proj_mgr/generator.rs b/mling/src/proj_mgr/generator.rs index f0dbdd7..f1a6345 100644 --- a/mling/src/proj_mgr/generator.rs +++ b/mling/src/proj_mgr/generator.rs @@ -1,7 +1,7 @@ use std::path::{self, PathBuf}; use mingling::{ - Grouped, RenderResult, + RenderResult, Routable, macros::{chain, pack, renderer, route}, }; use std::io::Write as _; diff --git a/mling/src/proj_mgr/show_binaries.rs b/mling/src/proj_mgr/show_binaries.rs index 4fb5c28..b08c1c3 100644 --- a/mling/src/proj_mgr/show_binaries.rs +++ b/mling/src/proj_mgr/show_binaries.rs @@ -2,7 +2,7 @@ use std::path::PathBuf; use colored::Colorize; use mingling::{ - Grouped, RenderResult, + Grouped, RenderResult, Routable, macros::{chain, pack, renderer}, }; use serde::Serialize; diff --git a/mling/src/proj_mgr/show_directories.rs b/mling/src/proj_mgr/show_directories.rs index 5c5f448..d3c0115 100644 --- a/mling/src/proj_mgr/show_directories.rs +++ b/mling/src/proj_mgr/show_directories.rs @@ -1,6 +1,6 @@ use colored::Colorize; use mingling::{ - Grouped, RenderResult, + Grouped, RenderResult, Routable, macros::{chain, pack, renderer}, }; use serde::Serialize; -- cgit