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

[tufaceous-lib] make DeserializedManifest public and serializable, fix serialization #4781

Conversation

sunshowers
Copy link
Contributor

This is prep work for #4690. I'd like to add support for making changes to a
DeserializedManifest, then serializing it.

However, it turned out that the bytesize crate does not serialize bytes
correctly (bytesize-rs/bytesize#40). To address this,
just use a u64 and write our own deserializer, using the alternative parse-size
crate.

Also add a test to ensure that serialization of the fake manifest roundtrips
correctly.

Created using spr 1.3.5
Copy link
Contributor

@andrewjstone andrewjstone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

Created using spr 1.3.5
@sunshowers sunshowers enabled auto-merge (squash) January 8, 2024 23:34
@sunshowers sunshowers merged commit 688167a into main Jan 9, 2024
22 checks passed
@sunshowers sunshowers deleted the sunshowers/spr/tufaceous-lib-make-deserializedmanifest-public-and-serializable-fix-serialization branch January 9, 2024 02:04
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