Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macro generated serde helpers for designspace fields #314

Merged
merged 2 commits into from
Aug 3, 2023
Merged

Macro generated serde helpers for designspace fields #314

merged 2 commits into from
Aug 3, 2023

Conversation

RickyDaMa
Copy link
Collaborator

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)

@RickyDaMa RickyDaMa changed the title Macro serde helper generation Macro generated serde helpers for designspace fields Aug 2, 2023
Copy link
Member

@cmyr cmyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works for me!

/// helper.serialize(serializer)
/// }
/// }
/// ```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😆

@RickyDaMa RickyDaMa merged commit 8ebeccf into linebender:master Aug 3, 2023
4 checks passed
@RickyDaMa RickyDaMa deleted the macro-helpers branch August 3, 2023 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants