Can @deriving decorators be extended via libraries, or are they only built-in?

Hi, I’m brand new to ReScript and still looking around. I see in the documentation that there are a number of @deriving decorators that are available, but I can’t find any information on writing custom ones. Is this possible? And would they be powerful enough to support things like custom data validation or property-based test input generation?