Is it possible to create a procedural macros which can be used with a function?

Is it possible to create a procedural macros which can be used with a function? Or are there any plans to do this? I would like to generate a code based on the functions rather that data types..

Yep, for an example see the #[async] macro. This is still an unstable feature, you can see some documentation in the unstable book.

2 Likes