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

make Serializer and Deserializer pub and usable #72

Merged
merged 5 commits into from
Jul 24, 2023

Conversation

jordens
Copy link
Contributor

@jordens jordens commented Jul 23, 2023

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.

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.
@jordens jordens changed the title rj/ser de pub make Serializer and Deserializer pub and usable Jul 23, 2023
Copy link
Member

@eldruin eldruin left a 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

@jordens
Copy link
Contributor Author

jordens commented Jul 24, 2023

No. Might be dependencies. You may be using your own older Cargo.lock.

@jordens
Copy link
Contributor Author

jordens commented Jul 24, 2023

A sufficient set of dependency updates that includes the breaking change are these:

    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

@eldruin
Copy link
Member

eldruin commented Jul 24, 2023

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
@eldruin
Copy link
Member

eldruin commented Jul 24, 2023

Great, sorry but could you also update the MSRV in the README?

@jordens
Copy link
Contributor Author

jordens commented Jul 24, 2023

Also src/lib.rs...

Copy link
Member

@eldruin eldruin left a 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!

@eldruin eldruin merged commit 9deb2b9 into rust-embedded-community:master Jul 24, 2023
7 checks passed
@jordens jordens deleted the rj/ser-de-pub branch July 24, 2023 14:26
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