Sourced from socket2's changelog.
0.5.4
- Deprecated
Socket::(bind_)device_by_index, replaced bySocket::(bind_)device_by_index_v4for IPv4 sockets (rust-lang/socket2#432).- Added
Socket::(bind_)device_by_index_v6(rust-lang/socket2#432).- Added experimental support for the ESP-IDF framework (rust-lang/socket2#452)
- Added
Socket::{send,recv}msgandMsgHdr(Mut)types, wrappingsendmsg(2)andrecvmsg(2)(rust-lang/socket2#447).- Added
Socket::(set_)reuse_port_lbto retrieve or setSO_REUSEPORT_LBon FreeBSD (rust-lang/socket2#442).- Added
Protocol::DIVERTon FreeBSD and OpenBSD (rust-lang/socket2#448).- Add
Socket::protocolfor Windows (usingWSAPROTOCOL_INFOW) (rust-lang/socket2#470).From<SocketAddrV{4,6}>forSockAddrnows setsss_lenon platforms that have the fields (most BSDs) (rust-lang/socket2#469).- Change Windows to use
ADDRESS_FAMILYforsa_family_t, this shouldn't affect anything in practice (rust-lang/socket2#463).