-
Notifications
You must be signed in to change notification settings - Fork 134
Support #[serde(flatten)]
#278
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
base: main
Are you sure you want to change the base?
Conversation
Thanks for your contribution.
|
None of the benchmarks perform noticeably different for me locally between this branch and
Adding integration tests makes sense, though could you clarify which behavior with maps you'd like to see tested? |
Some basic scenarios like https://serde.rs/attr-flatten.html or #99 (comment). Makes sense to test it with 3rd party maps, too. |
0208651
to
3b55479
Compare
This has proven to be a bit more complex than I thought because of my misunderstanding of how
I've updated this branch with (hacky) workaround for the first two points but the last point seems impossible to solve without ditching serde entirely, so I'm not sure this is still the right direction. |
…`deserialize_*` method
3b55479
to
b6a719d
Compare
Summary
Closes #264
Turns
COLUMN_NAME
andCOLUMN_COUNT
into non-const
functions, and adds support for the#[serde(flatten)]
attribute. LMK if this approach is roughly what you had in mind for this feature 🙂Checklist
Delete items not relevant to your PR: