serde icon indicating copy to clipboard operation
serde copied to clipboard

Lossy serialization of `SocketAddrV6`

Open benmaddison opened this issue 1 year ago • 0 comments

The non-human readable serialization of SocketAddrV6 (and by extension SocketAddr) encodes only IP address and port information, omitting flow info and scope:

https://github.com/serde-rs/serde/blob/ddc1ee564b33aa584e5a66817aafb27c3265b212/serde/src/ser/impls.rs#L857-L874

I have already dug around the commit logs to see if there was a reason, but as far as I can tell it was just an oversight.

The fix is obvious and trivial, and I'm happy to do the PR. But before doing so I wanted to find out whether there is some existing mechanism to use when introducing backwards incompatible changes to serialized representations like this?

benmaddison avatar Sep 20 '23 09:09 benmaddison