-
Notifications
You must be signed in to change notification settings - Fork 58
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
make Serializer and Deserializer pub and usable #72
make Serializer and Deserializer pub and usable #72
Conversation
This is required when using serde_json_core with code that is generic over the serde implementation, i.e. code that wants to instantiate the Serializer/Deserializer, in the way done in `de::from_slice` and `ser::to_slice`. This also adds public getters for the Serializer.current_length and Deserializer.index members. Two obsolete/unused impls on the `Unreachable` have been removed.
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.
Seems fine to me, thank you!
Do you know where the error in CI comes from?
Locally I can build master fine on 1.55.0
No. Might be dependencies. You may be using your own older Cargo.lock. |
A sufficient set of dependency updates that includes the breaking change are these:
|
All runs fine on 1.56.0. Could you update the MSRV to 1.56.0? |
there is a MSRV bump somwhere in this dependency bump: Updating proc-macro2 v1.0.47 -> v1.0.66 Updating quote v1.0.23 -> v1.0.32 Updating serde v1.0.100 -> v1.0.175 Updating serde_derive v1.0.100 -> v1.0.175 Updating syn v1.0.109 -> v2.0.27
Great, sorry but could you also update the MSRV in the README? |
Also |
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.
Great, thank you for your work!
This is required when using serde_json_core with code that is
generic over the serde implementation, i.e. code that wants to
instantiate the Serializer/Deserializer, in the way done in
de::from_slice
andser::to_slice
.This also adds public getters for the Serializer.current_length
and Deserializer.index members.
Two obsolete/unused impls on the
Unreachable
have been removed.