This repository has been archived by the owner on Aug 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 101
Ipv4Addr seems to be serializes as text string, not as a number. #52
Comments
This will be fixed by #51. |
See #54. But it is only 5 Bytes long with IPs like 8.8.8.8 where all numbers are small. (IPAddrs are serialized as an array) |
Isn't IPv4 (IPv6) address better be a byte buffer, not 4 (16) numbers? |
Serde only offers two options to serialize the IP address "127.0.0.1":
For serde-cbor it would be better either as:
But these serializations are not supported by serde. (For other binary formats like bincode this does not matter because an IPv4Addr is serialized as four bytes either way. |
Can one somehow make IPv{4,6}Addr markable with serde_bytes? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Unlike in JSON, I expect
std::net::Ipv4Addr
to be 5 bytes in CBOR...The text was updated successfully, but these errors were encountered: