From 3ba1632f8d8e4c5564de282ad359e33151956bb6 Mon Sep 17 00:00:00 2001 From: Johannes Cornelis Draaijer Date: Wed, 3 Sep 2025 13:53:50 +0200 Subject: rtic-macros: forward attributes applied to app module Instead of ignoring additional attributes applied to the app module, we can forward them to the generated code. --- rtic-macros/src/codegen.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rtic-macros/src/codegen.rs') diff --git a/rtic-macros/src/codegen.rs b/rtic-macros/src/codegen.rs index 060db6d..e0cd033 100644 --- a/rtic-macros/src/codegen.rs +++ b/rtic-macros/src/codegen.rs @@ -44,12 +44,14 @@ pub fn app(app: &App, analysis: &Analysis) -> TokenStream2 { let user_code = &app.user_code; let name = &app.name; let device = &app.args.device; + let attribute_metas = &app.attribute_metas; let rt_err = util::rt_err_ident(); let async_limit = bindings::async_prio_limit(app, analysis); quote!( /// The RTIC application module + #(#[#attribute_metas])* pub mod #name { /// Always include the device crate which contains the vector table use #device as #rt_err; -- cgit v1.2.3