Framework for building derive proc macros over structures (struct
and enum
).
Handles:
- Getting expressions referencing fields and
- Building patterns for enums
- Using the same logic for deriving over a enum or struct
- Error handling and generating compile_error
output
- Generics on trait and structure (including conflict rectification)
Used in / example usage: - derive-partial-eq-extras - derive-debug-extras
Design work in progress