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

Customizable buffer type by Deserializer #1354

Closed
wants to merge 1 commit into from
Closed

Customizable buffer type by Deserializer #1354

wants to merge 1 commit into from

Conversation

dtolnay
Copy link
Member

@dtolnay dtolnay commented Aug 11, 2018

This change allows Deserializer impls to select some type to be used for temporary buffering of untagged, internally tagged, adjacently tagged, and flattened content. By default Serde will continue to use our own private Content<'de> buffer type, but for example serde_json could choose to use a serde_json::Value as its buffer to fix #1183.

Needs much more work and polish but it looks like this approach can work.

@dtolnay
Copy link
Member Author

dtolnay commented Oct 4, 2018

Closing because I am no longer actively working on this. It may be better to revisit after associated type defaults are stabilized. rust-lang/rust#29661

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Internal buffering disrupts format-specific deserialization features
1 participant