|
| 1 | +# 0.5.0 |
| 2 | + |
| 3 | +## Changed |
| 4 | + |
| 5 | +* **BREAKING** `SockAddr::init` is renamed to `try_init` to indicate it can fail |
| 6 | + (https://github.com/rust-lang/socket2/pull/328). |
| 7 | +* **BREAKING** Remove the returned `Result` from `SockAddr::vsock`, it can't |
| 8 | + fail (https://github.com/rust-lang/socket2/pull/328). |
| 9 | +* **BREAKING** `From<S>` is now implemented using the I/O traits `AsFd` and |
| 10 | + `AsRawSocket` |
| 11 | + (https://github.com/rust-lang/socket2/pull/325): |
| 12 | +* **BREAKING** renamed `SockAddr::vsock_addr` `SockAddr::as_vsock_addr` to match |
| 13 | + the IPv4 and IPv6 methods |
| 14 | + (https://github.com/rust-lang/socket2/pull/334). |
| 15 | +* Redox now works on a stable compiler |
| 16 | + (https://github.com/rust-lang/socket2/pull/326). |
| 17 | +* Remove copy from `From<SocketAddrV{4,6}>` implementation for `SockAddr` |
| 18 | + (https://github.com/rust-lang/socket2/pull/335). |
| 19 | +* Marked function as constant where possible. |
| 20 | +* Updated to Rust edition 2021 |
| 21 | + (https://github.com/rust-lang/socket2/pull/393). |
| 22 | + |
| 23 | +## Added |
| 24 | + |
| 25 | +* Links to OS documentation to a lot of methods |
| 26 | + (https://github.com/rust-lang/socket2/pull/319). |
| 27 | +* I/O-safety traits (https://github.com/rust-lang/socket2/pull/325): |
| 28 | + * `AsFd` for `Socket` (Unix only). |
| 29 | + * `From<OwnedFd>` for `Socket` (Unix only). |
| 30 | + * `From<Socket>` for `OwnedFd` (Unix only). |
| 31 | + * `AsSocket` for `Socket` (Windows only). |
| 32 | + * `From<OwnedSocket>` for `Socket` (Windows only). |
| 33 | + * `From<Socket>` for `OwnedSocket` (Windows only). |
| 34 | +* Unix socket support on Windows |
| 35 | + (https://github.com/rust-lang/socket2/pull/249). |
| 36 | +* `SockAddr::is_ipv{4,6}` and `SockAddr::domain` |
| 37 | + (https://github.com/rust-lang/socket2/pull/334). |
| 38 | +* `Socket::nonblocking` |
| 39 | + (https://github.com/rust-lang/socket2/pull/348). |
| 40 | +* `Socket::original_dst(_ipv6)` |
| 41 | + (https://github.com/rust-lang/socket2/pull/360). |
| 42 | +* `Socket::(set_)recv_tclass_v6` and `Socket::(set_)tclass_v6` |
| 43 | + (https://github.com/rust-lang/socket2/pull/364). |
| 44 | +* `Socket::(set_)tcp_congestion` |
| 45 | + (https://github.com/rust-lang/socket2/pull/371). |
| 46 | +* Support for various DCCP socket options in the form of |
| 47 | + (https://github.com/rust-lang/socket2/pull/359): |
| 48 | + * `Socket::(set_)dccp_service` |
| 49 | + * `Socket::dccp_available_ccids` |
| 50 | + * `Socket::dccp_qpolicy_txqlen` |
| 51 | + * `Socket::dccp_recv_cscov` |
| 52 | + * `Socket::dccp_send_cscov` |
| 53 | + * `Socket::dccp_server_timewait` |
| 54 | + * `Socket::dccp_server_timewait` |
| 55 | + * `Socket::dccp_tx_ccid` |
| 56 | + * `Socket::dccp_xx_ccid` |
| 57 | + * `Socket::set_dccp_ccid` |
| 58 | + * `Socket::set_dccp_qpolicy_txqlen` |
| 59 | + * `Socket::set_dccp_recv_cscov` |
| 60 | + * `Socket::set_dccp_send_cscov` |
| 61 | + * `Socket::set_dccp_server_timewait` |
| 62 | + * `Socket::dccp_cur_mps` |
| 63 | +* `Socket::peek_send` |
| 64 | + (https://github.com/rust-lang/socket2/pull/389). |
| 65 | +* `Protocol::MPTCP` |
| 66 | + (https://github.com/rust-lang/socket2/pull/349). |
| 67 | +* `Protocol::SCTP` |
| 68 | + (https://github.com/rust-lang/socket2/pull/356). |
| 69 | +* `Protocol::DCCP` |
| 70 | + (https://github.com/rust-lang/socket2/pull/359). |
| 71 | +* `Type::DCCP` |
| 72 | + (https://github.com/rust-lang/socket2/pull/359). |
| 73 | +* Implement `Eq` and `Hash` for `SockAddr` |
| 74 | + (https://github.com/rust-lang/socket2/pull/374). |
| 75 | +* Support for QNX Neutrino |
| 76 | + (https://github.com/rust-lang/socket2/pull/380). |
| 77 | +* Support for AIX |
| 78 | + (https://github.com/rust-lang/socket2/pull/351). |
| 79 | + |
1 | 80 | # 0.4.7
|
2 | 81 |
|
3 | 82 | * Fixes compilation on OpenBSD
|
|
0 commit comments