Is there any way to desugar the sugar added by a macro?

We use several derive macros like Serialize, Deserialize, or macros like async_trait. Is there any way to see what the macros desugar a given object into?

You can use cargo expand. You need to use a nightly compiler for it.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.