syn-helpers 0.3.0

Framework for building derive macros
Documentation

Syn-Helpers

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:

Design work in progress