Skip to content

Commit 2dec2ac

Browse files
committed
chore: prepare Tokio v1.46.0
# 1.46.0 (July 1st, 2025) ### Fixed - net: fixed `TcpStream::shutdown` incorrectly returning an error on macOS ([#7290]) ## Added - sync: `mpsc::OwnedPermit::{same_channel, same_channel_as_sender}` methods ([#7389]) - macros: `biased` option for `join!` and `try_join!`, similar to `select!` ([#7307]) - net: support for cygwin ([#7393]) - net: support `pope::OpenOptions::read_write` on Android ([#7426]) - net: add `Clone` implementation for `net::unix::SocketAddr` ([#7422]) ## Changed - runtime: eliminate unnecessary lfence while operating on `queue::Local<T>` ([#7340]) - task: disallow blocking in `LocalSet::{poll,drop}` ([#7372]) ## Unstable - runtime: add `TaskMeta::spawn_location` tracking where a task was spawned ([#7417]) - runtime: removed borrow from `LocalOptions` parameter to `runtime::Builder::build_local` ([#7346]) ## Documented - io: clarify behavior of seeking when `start_seek` is not used ([#7366]) - io: document cancellation safety of `AsyncWriteExt::flush` ([#7364]) - net: fix docs for `recv_buffer_size` method ([#7336]) - net: fix broken link of `RawFd` in `TcpSocket` docs ([#7416]) - net: update `AsRawFd` doc link to current Rust stdlib location ([#7429]) - readme: fix double period in reactor description (#7363) - runtime: add doc note that `on_*_task_poll` is unstable ([#7311]) - sync: update broadcast docs on allocation failure ([#7352]) - time: add a missing panic scenario of `time::advance` ([#7394]) [#7290]: #7290 [#7307]: #7307 [#7311]: #7311 [#7336]: #7336 [#7340]: #7340 [#7346]: #7346 [#7352]: #7352 [#7364]: #7364 [#7366]: #7366 [#7372]: #7372 [#7389]: #7389 [#7393]: #7393 [#7394]: #7394 [#7416]: #7416 [#7422]: #7422 [#7426]: #7426 [#7429]: #7429 [#7417]: #7417
1 parent 3e890cc commit 2dec2ac

File tree

4 files changed

+65
-3
lines changed

4 files changed

+65
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Make sure you activated the full features of the tokio crate on Cargo.toml:
5656

5757
```toml
5858
[dependencies]
59-
tokio = { version = "1.45.1", features = ["full"] }
59+
tokio = { version = "1.46.0", features = ["full"] }
6060
```
6161
Then, on your main.rs:
6262

tokio/CHANGELOG.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,65 @@
1+
# 1.46.0 (July 1st, 2025)
2+
3+
### Fixed
4+
5+
- net: fixed `TcpStream::shutdown` incorrectly returning an error on macOS
6+
([#7290])
7+
8+
## Added
9+
10+
- sync: `mpsc::OwnedPermit::{same_channel, same_channel_as_sender}` methods
11+
([#7389])
12+
- macros: `biased` option for `join!` and `try_join!`, similar to `select!`
13+
([#7307])
14+
- net: support for cygwin ([#7393])
15+
- net: support `pope::OpenOptions::read_write` on Android ([#7426])
16+
- net: add `Clone` implementation for `net::unix::SocketAddr` ([#7422])
17+
18+
## Changed
19+
20+
- runtime: eliminate unnecessary lfence while operating on `queue::Local<T>`
21+
([#7340])
22+
- task: disallow blocking in `LocalSet::{poll,drop}` ([#7372])
23+
24+
## Unstable
25+
26+
- runtime: add `TaskMeta::spawn_location` tracking where a task was spawned
27+
([#7417])
28+
- runtime: removed borrow from `LocalOptions` parameter to
29+
`runtime::Builder::build_local` ([#7346])
30+
31+
## Documented
32+
33+
- io: clarify behavior of seeking when `start_seek` is not used ([#7366])
34+
- io: document cancellation safety of `AsyncWriteExt::flush` ([#7364])
35+
- net: fix docs for `recv_buffer_size` method ([#7336])
36+
- net: fix broken link of `RawFd` in `TcpSocket` docs ([#7416])
37+
- net: update `AsRawFd` doc link to current Rust stdlib location ([#7429])
38+
- readme: fix double period in reactor description ([#7363])
39+
- runtime: add doc note that `on_*_task_poll` is unstable ([#7311])
40+
- sync: update broadcast docs on allocation failure ([#7352])
41+
- time: add a missing panic scenario of `time::advance` ([#7394])
42+
43+
[#7290]: https://github.com/tokio-rs/tokio/pull/7290
44+
[#7307]: https://github.com/tokio-rs/tokio/pull/7307
45+
[#7311]: https://github.com/tokio-rs/tokio/pull/7311
46+
[#7336]: https://github.com/tokio-rs/tokio/pull/7336
47+
[#7340]: https://github.com/tokio-rs/tokio/pull/7340
48+
[#7346]: https://github.com/tokio-rs/tokio/pull/7346
49+
[#7352]: https://github.com/tokio-rs/tokio/pull/7352
50+
[#7363]: https://github.com/tokio-rs/tokio/pull/7363
51+
[#7364]: https://github.com/tokio-rs/tokio/pull/7364
52+
[#7366]: https://github.com/tokio-rs/tokio/pull/7366
53+
[#7372]: https://github.com/tokio-rs/tokio/pull/7372
54+
[#7389]: https://github.com/tokio-rs/tokio/pull/7389
55+
[#7393]: https://github.com/tokio-rs/tokio/pull/7393
56+
[#7394]: https://github.com/tokio-rs/tokio/pull/7394
57+
[#7416]: https://github.com/tokio-rs/tokio/pull/7416
58+
[#7422]: https://github.com/tokio-rs/tokio/pull/7422
59+
[#7426]: https://github.com/tokio-rs/tokio/pull/7426
60+
[#7429]: https://github.com/tokio-rs/tokio/pull/7429
61+
[#7417]: https://github.com/tokio-rs/tokio/pull/7417
62+
163
# 1.45.1 (May 24th, 2025)
264

365
This fixes a regression on the wasm32-unknown-unknown target, where code that

tokio/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name = "tokio"
66
# - README.md
77
# - Update CHANGELOG.md.
88
# - Create "v1.x.y" git tag.
9-
version = "1.45.1"
9+
version = "1.46.0"
1010
edition = "2021"
1111
rust-version = "1.70"
1212
authors = ["Tokio Contributors <[email protected]>"]

tokio/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Make sure you activated the full features of the tokio crate on Cargo.toml:
5656

5757
```toml
5858
[dependencies]
59-
tokio = { version = "1.45.1", features = ["full"] }
59+
tokio = { version = "1.46.0", features = ["full"] }
6060
```
6161
Then, on your main.rs:
6262

0 commit comments

Comments
 (0)