You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…x serialization (#4781)
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.
Hi @sunshowers . Thanks for reporting. This was caused by the 1.x uses SI units. With 2.0 (unreleased, I'm going to push the process to release it after introducing some features), bytesize uses IEC units, which would make things clearer for programmers.
Hi there, thanks for the crate!
While developing against the crate I found that human-readable serde impl's serializer is incorrect. For example, the following program:
prints out:
Which means that serialization/deserialization does not roundtrip.
I think serialization should either be to an integer, or to exact values (e.g. "1048.576 KB"). What do you think?
The text was updated successfully, but these errors were encountered: