From 7adbe2715285d7baedfb91f5e81f5ea64f7d1a5a Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Fri, 22 May 2026 08:33:46 +0800 Subject: Extract resource injection into shared module and add to #[renderer] --- mingling_macros/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mingling_macros/src/lib.rs') diff --git a/mingling_macros/src/lib.rs b/mingling_macros/src/lib.rs index 1733470..8c98ba3 100644 --- a/mingling_macros/src/lib.rs +++ b/mingling_macros/src/lib.rs @@ -41,6 +41,7 @@ mod pack; mod program_setup; mod render; mod renderer; +mod res_injection; #[cfg(feature = "comp")] mod suggest; @@ -616,8 +617,8 @@ pub fn chain(attr: TokenStream, item: TokenStream) -> TokenStream { /// } /// ``` #[proc_macro_attribute] -pub fn renderer(_attr: TokenStream, item: TokenStream) -> TokenStream { - renderer::renderer_attr(item) +pub fn renderer(attr: TokenStream, item: TokenStream) -> TokenStream { + renderer::renderer_attr(attr, item) } /// Declares a completion suggestion provider for a command entry type. -- cgit