diff options
author | 2023-04-11 13:10:26 -0700 | |
---|---|---|
committer | 2023-04-12 15:26:06 -0700 | |
commit | e47914ee50b838cceca77cd881dce9caaf689901 (patch) | |
tree | b2696705d5a97ec53041a772378beaf70b5c5642 /rtic-macros/src/syntax/ast.rs | |
parent | 44c614d792c65aa2660f841e969db575f1ee6e86 (diff) | |
download | rtic-e47914ee50b838cceca77cd881dce9caaf689901.tar.gz rtic-e47914ee50b838cceca77cd881dce9caaf689901.tar.zst rtic-e47914ee50b838cceca77cd881dce9caaf689901.zip |
remove vis restriction for local and shared resources
Diffstat (limited to 'rtic-macros/src/syntax/ast.rs')
-rw-r--r-- | rtic-macros/src/syntax/ast.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rtic-macros/src/syntax/ast.rs b/rtic-macros/src/syntax/ast.rs index 27e6773f..d5510cbd 100644 --- a/rtic-macros/src/syntax/ast.rs +++ b/rtic-macros/src/syntax/ast.rs @@ -23,9 +23,13 @@ pub struct App { /// Resources shared between tasks defined in `#[shared]` pub shared_resources: Map<SharedResource>, + pub shared_resources_vis: syn::Visibility, + /// Task local resources defined in `#[local]` pub local_resources: Map<LocalResource>, + pub local_resources_vis: syn::Visibility, + /// User imports pub user_imports: Vec<ItemUse>, @@ -170,6 +174,9 @@ pub struct SharedResource { /// Shared resource properties pub properties: SharedResourceProperties, + + /// The visibility of this resource + pub vis: syn::Visibility, } /// A local resource, defined in `#[local]` @@ -187,6 +194,9 @@ pub struct LocalResource { /// The type of this resource pub ty: Box<Type>, + + /// The visibility of this resource + pub vis: syn::Visibility, } /// An async software task |