pnevyk / gryf

Graph data structure library aspiring to be convenient, versatile, correct and performant.
MIT License
69 stars 1 forks source link

Fix hygiene of procedural macros #18

Closed pnevyk closed 1 month ago

pnevyk commented 1 year ago

The current implementation of derive procedural macros refers to types and traits from the library, assuming it is in scope. This leads to "cannot find trait ... in this scope" and alike when it is not the case.

pnevyk commented 1 year ago

The code now imports types and traits needed because of this issue separately and they are marked with TODO: Remove these imports once hygiene of procedural macros is fixed. comment (for instance here).