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

Added support for serde's 'rename_all' attribute #32

Merged
merged 1 commit into from
Aug 6, 2023

Conversation

thebluefish
Copy link
Contributor

Serde 1.0 throws an error when attempting to use the renameAll attribute per tests:

error: unknown serde container attribute renameAll

This adds support for the rename_all attribute according to https://serde.rs/container-attrs.html

I originally changed just the tag, removing support for renameAll, but I added a separate check in case the other tag is used somewhere I'm not aware of.

@Wulf
Copy link
Owner

Wulf commented Aug 6, 2023

hey @thebluefish , thanks a lot for your work here and sorry I've taken so long to look at it. It's great that you've thought of the backwards-compatible approach here but I think we should get rid of the old attribute altogether. I'll merge this in and add a quick patch for that. We'll consider this a breaking change and bump to tsync 2.0 so end-users know.

@Wulf Wulf merged commit 092bb96 into Wulf:main Aug 6, 2023
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