Skip to content

Commit 8e2bf28

Browse files
committed
Release v0.6.0
1 parent 39d3e34 commit 8e2bf28

File tree

3 files changed

+73
-8
lines changed

3 files changed

+73
-8
lines changed

CHANGELOG.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,70 @@
1+
# 0.6.0
2+
3+
## Breaking changes
4+
5+
All IPv4 methods now have a `_v4` suffix, IPv6 uses `_v6`. TCP methods have a
6+
`tcp_` prefix (looked better than a suffix).
7+
8+
Furthermore we removed all types from external libraries (i.e. libc or
9+
windows-sys) from the public API, allowing us to update those without breaking
10+
the API.
11+
12+
* Renamed `Socket::freebind_ipv6` to `freebind_v6`
13+
(https://github.com/rust-lang/socket2/pull/592).
14+
* Renamed `Socket::freebind` to `freebind_v4`
15+
(https://github.com/rust-lang/socket2/pull/592).
16+
* Renamed `Socket::original_dst` to `original_dst_v4`
17+
(https://github.com/rust-lang/socket2/pull/592).
18+
* Renamed `Socket::original_dst_ipv6` to `original_dst_v6`
19+
(https://github.com/rust-lang/socket2/pull/592).
20+
* Bump MSRV to 1.70
21+
(https://github.com/rust-lang/socket2/pull/597).
22+
* Use `c_int` from `std::ffi` instead of from libc
23+
(https://github.com/rust-lang/socket2/pull/599,
24+
https://github.com/rust-lang/socket2/pull/595).
25+
* `SockAddr`'s methods now accept/return `SockAddrStorage` instead of
26+
`sockaddr_storage`/`SOCKADDR_STORAGE`
27+
(https://github.com/rust-lang/socket2/pull/576):
28+
* `new`
29+
* `try_init`
30+
* `as_ptr`
31+
* `as_storage`
32+
* Add `SockFilter`, wrapper around `libc::sock_filter`, argument to
33+
`Socket::attach_filter`
34+
(https://github.com/rust-lang/socket2/pull/581).
35+
* Various renames of TCP methods on `Socket`
36+
(https://github.com/rust-lang/socket2/pull/592):
37+
* `keepalive_time` -> `tcp_keepalive_time`
38+
* `keepalive_interval` -> `tcp_keepalive_interval`
39+
* `keepalive_retries` -> `tcp_keepalive_retries`
40+
* `nodelay` -> `tcp_nodelay`
41+
* `set_nodelay` -> `tcp_set_nodelay`
42+
* `tcp_mss` -> `mss`
43+
* `tcp_set_mss` -> `set_mss`
44+
* `tcp_cork` -> `cork`
45+
* `tcp_set_cork` -> `set_cork`
46+
* `tcp_quickack` -> `quickack`
47+
* `tcp_set_quickack` -> `set_quickack`
48+
* `thin_linear_timeouts` -> `tcp_thin_linear_timeouts`.
49+
50+
## Non-breaking changes
51+
52+
* Added `Socket::(set_)priority`
53+
(https://github.com/rust-lang/socket2/pull/588).
54+
* Added TCP retries on Windows
55+
(https://github.com/rust-lang/socket2/pull/557).
56+
* Added `SockAddrStorage`, wrapper around `sockaddr_storage`/`SOCKADDR_STORAGE`
57+
for usage with `SockAddr` (instead of the types from libc/windows-sys)
58+
(https://github.com/rust-lang/socket2/pull/576).
59+
* Implemented `Socket::bind_device_by_index_{v4,v6}` on Android and Linux
60+
(https://github.com/rust-lang/socket2/pull/572).
61+
* Implemented `Copy` and `Clone` for `InterfaceIndexOrAddress`
62+
(https://github.com/rust-lang/socket2/pull/571).
63+
* Updated to Windows-sys v0.59
64+
(https://github.com/rust-lang/socket2/pull/579).
65+
* We now use `OwnedFd`/`OwnedSocket` internally for `Socket`
66+
(https://github.com/rust-lang/socket2/pull/600).
67+
168
# 0.5.10
269

370
* Add cygwin support

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[package]
22
name = "socket2"
33
version = "0.6.0"
4-
publish = false # In development.
54
authors = [
65
"Alex Crichton <alex@alexcrichton.com>",
76
"Thomas de Zeeuw <thomasdezeeuw@gmail.com>"

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ See the [API documentation] for more.
2121

2222
# Branches
2323

24-
Currently Socket2 supports two versions: v0.5 and v0.4. Version 0.5 is being
25-
developed in the master branch. Version 0.4 is developed in the [v0.4.x branch]
26-
branch.
24+
Currently Socket2 supports the following versions:
25+
* v0.6 developed in the master branch
26+
* v0.5 developed in the [v0.5.x branch]
27+
* v0.4 developed in the [v0.4.x branch]
2728

29+
[v0.5.x branch]: https://github.com/rust-lang/socket2/tree/v0.5.x
2830
[v0.4.x branch]: https://github.com/rust-lang/socket2/tree/v0.4.x
2931

3032
# OS support
@@ -33,10 +35,7 @@ Socket2 attempts to support the same OS/architectures as Rust does, see
3335
https://doc.rust-lang.org/nightly/rustc/platform-support.html. However this is
3436
not always possible, below is current list of support OSs.
3537

36-
*If your favorite OS is not on the list consider contributing it! See [issue
37-
#78].*
38-
39-
[issue #78]: https://github.com/rust-lang/socket2/issues/78
38+
*If your favorite OS is not on the list consider contributing it!*
4039

4140
### Tier 1
4241

0 commit comments

Comments
 (0)