aboutsummaryrefslogtreecommitdiff
path: root/rtic-macros/src/syntax/ast.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rtic-macros/src/syntax/ast.rs')
-rw-r--r--rtic-macros/src/syntax/ast.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/rtic-macros/src/syntax/ast.rs b/rtic-macros/src/syntax/ast.rs
index ad73a89..44c1385 100644
--- a/rtic-macros/src/syntax/ast.rs
+++ b/rtic-macros/src/syntax/ast.rs
@@ -1,6 +1,6 @@
//! Abstract Syntax Tree
-use syn::{Attribute, Expr, Ident, Item, ItemUse, Pat, PatType, Path, Stmt, Type};
+use syn::{Attribute, Expr, Ident, Item, ItemUse, Meta, Pat, PatType, Path, Stmt, Type};
use crate::syntax::{backend::BackendArgs, Map};
@@ -11,6 +11,9 @@ pub struct App {
/// The arguments to the `#[app]` attribute
pub args: AppArgs,
+ /// All attributes applied to the `#[app]` module (meta only)
+ pub attribute_metas: Vec<Meta>,
+
/// The name of the `const` item on which the `#[app]` attribute has been placed
pub name: Ident,