-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat(stackable-versioned): Add support for type changes of fields #844
Conversation
a1fd53f
to
0bfa8da
Compare
The current implementation is very brittle and less than ideal. It currently only produces correct code in the struct definitions, but not in the From impls. For that reason, test files currently skip the From impl generation. I have a bunch of thoughts on how to improve the situation, but I would like to tackle these changes in follow-up commits.
f2c367e
to
118ed09
Compare
I would like to adjust some of the internal types and how the validation works. These changes are however not included in this PR, because it proved to be very difficult to implement the changes at the current moment. I will tackle this in future PRs. Also see TedDriggs/darling#304. It also keeps the PR small and focuses on the type change feature. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Nick <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Part of stackabletech/issues#507
This PR adds support for type changes of struct fields. This is done by renaming the
renamed()
action tochanged()
and adding a new parameterfrom_type
to it. Additionally,from
will be renamed tofrom_name
.Reviewer