NLnetLabs / domain

A DNS library for Rust.
https://nlnetlabs.nl/projects/domain/about/
BSD 3-Clause "New" or "Revised" License
341 stars 57 forks source link

Refactor IANA type variants into constants. #276

Closed partim closed 5 months ago

partim commented 6 months ago

This PR changes the types for the IANA registered values into structs wrapping underlying integer types and provides the values as constants. This mostly just changes the spelling of those values. However, it also required some re-wiring of the type generation macros for record data and opt data since the type names and value names differ now.

This is a breaking change.

Fixes #273.