Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSet is_human_readable to false #215
Comments
|
|
|
Would there be any reason to let this be configureable? (ala #214 ?). I suppose the only reason one would not want the human readable representation is to preserve backwards compatibility with the format of older versions. |
|
I would not attempt to make one version of bincode parse every bincode data ever written. People can depend on both 0.9 and 1.0, deserialize with 0.9, serialize with 1.0 if necessary to migrate data. |
|
Marking for 1.0 because doing this later would be a breaking change. |
... by utilizing that bincode is not human readable. Uses the changes in serde-rs/serde#1044 which allows data formats to report that they are not human readable. This lets certain types serialize themselves into a more compact form as they know that the serialized form does not need to be readable. Closes servo#215 BREAKING CHANGE This changes how types serialize themselves if they detect the `is_human_readable` state.
... by utilizing that bincode is not human readable. Uses the changes in serde-rs/serde#1044 which allows data formats to report that they are not human readable. This lets certain types serialize themselves into a more compact form as they know that the serialized form does not need to be readable. Closes servo#215 BREAKING CHANGE This changes how types serialize themselves if they detect the `is_human_readable` state.
|
@Marwes: there's no reason that this couldn't be configurable, but I'm wondering if we should just add it and make it the default before bincode hits 1.0.0. |
... by utilizing that bincode is not human readable. Uses the changes in serde-rs/serde#1044 which allows data formats to report that they are not human readable. This lets certain types serialize themselves into a more compact form as they know that the serialized form does not need to be readable. Closes #215 BREAKING CHANGE This changes how types serialize themselves if they detect the `is_human_readable` state.
|
So what's the further plan for this? Is this going to wait for 1.0 or is there a chance this fix could be released earlier in minor update? |
|
waiting for 1.0, which ideally will be released early next week. |
|
@TyOverby Obviously this is taking more than a week, which is understandable and I'm fine with, but could you please publish intermediate version with this fix? |
|
@RReverser: published! |
|
@TyOverby Thank you! |
|
Oh, you published actual 1.0.0 release? Awesome! |
|
Just for you @RReverser! :D |
I have not released this yet but I will in the next few days. serde-rs/serde#1044
Bincode should override these to false to get more compact representation for types like IpAddr and Datetime.