Skip to content

Refactor SummaryData implementations into derive macro - #45

Merged
evolp merged 22 commits into
masterfrom
dev
Jun 15, 2026
Merged

Refactor SummaryData implementations into derive macro#45
evolp merged 22 commits into
masterfrom
dev

Conversation

@evolp

@evolp evolp commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator
  • New derive macro for SummaryData, which removes the need to implement all trait methods for all impls
    • the macro decides based on the fields of a struct how each trait method has to be implemented
    • for future implementations for new structs which are combinations of the established fields, the trait can simply be derived
    • in case a new field is introduced, the macro has to be expanded

@evolp
evolp marked this pull request as ready for review June 11, 2026 12:07
@evolp
evolp requested review from sjanssen2 and tensulin June 11, 2026 12:07
Comment thread src/summarizer.rs
Comment thread src/summarizer.rs Outdated
Comment thread summarydata-derive/src/lib.rs Outdated
Comment thread summarydata-derive/src/lib.rs
@evolp
evolp merged commit 6ad22bd into master Jun 15, 2026
6 checks passed
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.

3 participants