aboutsummaryrefslogtreecommitdiff
path: root/mingling_macros/src/lib.rs
diff options
context:
space:
mode:
authorWeicao-CatilGrass <1992414357@qq.com>2026-05-22 08:33:46 +0800
committerWeicao-CatilGrass <1992414357@qq.com>2026-05-22 08:33:46 +0800
commit7adbe2715285d7baedfb91f5e81f5ea64f7d1a5a (patch)
treeb9e4985c5b2980613523eea8ad49974c5d1d1070 /mingling_macros/src/lib.rs
parent7eed97fe690f214eba43b4784bc2dee3a71a1498 (diff)
Extract resource injection into shared module and add to #[renderer]
Diffstat (limited to 'mingling_macros/src/lib.rs')
-rw-r--r--mingling_macros/src/lib.rs5
1 files changed, 3 insertions, 2 deletions
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.