From d19e5d84ee21502fd3440511d4ffb1ee1f49d3b2 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 4 Feb 2026 00:27:16 +0800 Subject: Refactor build system and implement complete renderer system - Split monolithic build.rs into modular async generators - Add renderer override system with type-safe dispatch - Implement command template macro for consistent command definitions - Add proc-macro crates for command and renderer systems - Reorganize directory structure for better separation of concerns - Update documentation to reflect new architecture --- .cargo/registry.toml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to '.cargo') diff --git a/.cargo/registry.toml b/.cargo/registry.toml index c1a712d..9077c4b 100644 --- a/.cargo/registry.toml +++ b/.cargo/registry.toml @@ -16,19 +16,14 @@ # Only register renderers here that need to be overridden using the `--renderer` flag. # After registration, you can use the format `command --renderer renderer_name` to override the renderer. -# Default Renderer -[renderer.default] -name = "default" -type = "Renderer" - # Json Renderer [renderer.json] name = "json" -type = "crate::cmds::renderer::json::JVResultJsonRenderer" +type = "crate::cmds::r#override::renderer::json" [renderer.json_pretty] name = "json-pretty" -type = "crate::cmds::renderer::json_pretty::JVResultPrettyJsonRenderer" +type = "crate::cmds::r#override::renderer::json_pretty" #################### ### Auto-Collect ### @@ -51,3 +46,6 @@ path = "src/cmds/out.rs" [collect.renderers] path = "src/cmds/renderer.rs" + +[collect.override_renderers] +path = "src/cmds/override/renderer.rs" -- cgit