You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some of our macros certain functions/structs need annotations added to them: #[note] adds a bunch of stuff and then marks the struct as #[abi(notes)] for exporting.
Happy Case
There's an API to add annotations to items, likely something like this:
FunctionDefinition::add_annotation(self, Quoted)
StructDefinition::add_annotation(self, Quoted)
Module::add_annotationh(self, Quoted)
The above functions error if the Quoted value can't be parsed into an attribute.
Also, if these annotations refer to functions, those functions should eventually run in turn (this could be split into a separate issue, though)
Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
None
Blocker Context
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered:
Problem
In some of our macros certain functions/structs need annotations added to them:
#[note]
adds a bunch of stuff and then marks the struct as#[abi(notes)]
for exporting.Happy Case
There's an API to add annotations to items, likely something like this:
FunctionDefinition::add_annotation(self, Quoted)
StructDefinition::add_annotation(self, Quoted)
Module::add_annotationh(self, Quoted)
The above functions error if the
Quoted
value can't be parsed into an attribute.Also, if these annotations refer to functions, those functions should eventually run in turn (this could be split into a separate issue, though)
Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
None
Blocker Context
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: