diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-20 04:57:57 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-20 04:57:57 +0800 |
| commit | 34c4c66c1d336469e71fad8cff4828cf5d2bdafb (patch) | |
| tree | 056dd2aef3b775f0d505353a50eefe9e72b7d84d /mling/src | |
| parent | 8526d32f5713caee52a4839701fe4c4e499fc646 (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 'mling/src')
| -rw-r--r-- | mling/src/cli.rs | 2 | ||||
| -rw-r--r-- | mling/src/proj_mgr/generator.rs | 2 | ||||
| -rw-r--r-- | mling/src/proj_mgr/show_binaries.rs | 2 | ||||
| -rw-r--r-- | mling/src/proj_mgr/show_directories.rs | 2 |
4 files changed, 4 insertions, 4 deletions
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; |
