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

Introduce `Config::deserialize_seed` for exposing serde's statefull deserialization. #246

Merged
merged 2 commits into from Sep 4, 2018

Conversation

@boxdot
Copy link
Contributor

boxdot commented Sep 3, 2018

This is needed if one wants to use stateful deserialization, since the SliceReader is public but not part of the public API, and bincode::Deserializer is private.

@TyOverby
Copy link
Collaborator

TyOverby commented Sep 3, 2018

Looks good! Could you add a few tests? Maybe one test with the default configuration and one with a non-default configuration?

@boxdot
Copy link
Contributor Author

boxdot commented Sep 4, 2018

Makes sense, tests added. -- Btw., it looks like the source code of bincode is not formatted at all. Probably, this could be done to make it easier for people who are using rustfmt.

@TyOverby
Copy link
Collaborator

TyOverby commented Sep 4, 2018

Thanks!

And yeah, I should probably format the code.

@TyOverby TyOverby merged commit 5c7823e into servo:master Sep 4, 2018
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@TyOverby
Copy link
Collaborator

TyOverby commented Sep 4, 2018

I just formatted the code!

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

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.