linebender / norad

Rust crate for working with Unified Font Object files
Apache License 2.0
43 stars 12 forks source link

Macro generated `serde` helpers for designspace fields #314

Closed RickyDaMa closed 1 year ago

RickyDaMa commented 1 year ago

From here

Two commits show two 'flavours' of the macro: either it can do absolutely everything (generating the module and two functions within it), or we could go for something more digestible and have individual macros for generating the ser/de impls and then write the modules ourselves

Either way it's a huge lines-of-code saving (until you factor in the giant doc comment lol)