Skip to content

Commit 556820f

Browse files
authored
chore: prepare Tokio v1.48.0 (#7677)
1 parent fd1659a commit 556820f

File tree

4 files changed

+116
-3
lines changed

4 files changed

+116
-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.47.1", features = ["full"] }
59+
tokio = { version = "1.48.0", features = ["full"] }
6060
```
6161
Then, on your main.rs:
6262

tokio/CHANGELOG.md

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,116 @@
1+
# 1.48.0 (October 14th, 2025)
2+
3+
The MSRV is increased to 1.71.
4+
5+
### Added
6+
7+
- fs: add `File::max_buf_size` ([#7594])
8+
- io: export `Chain` of `AsyncReadExt::chain` ([#7599])
9+
- net: add `SocketAddr::as_abstract_name` ([#7491])
10+
- net: add `TcpStream::quickack` and `TcpStream::set_quickack` ([#7490])
11+
- net: implement `AsRef<Self>` for `TcpStream` and `UnixStream` ([#7573])
12+
- task: add `LocalKey::try_get` ([#7666])
13+
- task: implement `Ord` for `task::Id` ([#7530])
14+
15+
### Changed
16+
17+
- deps: bump windows-sys to version 0.61 ([#7645])
18+
- fs: preserve `max_buf_size` when cloning a `File` ([#7593])
19+
- macros: suppress `clippy::unwrap_in_result` in `#[tokio::main]` ([#7651])
20+
- net: remove `PollEvented` noise from Debug formats ([#7675])
21+
- process: upgrade `Command::spawn_with` to use `FnOnce` ([#7511])
22+
- sync: remove inner mutex in `SetOnce` ([#7554])
23+
- sync: use `UnsafeCell::get_mut` in `Mutex::get_mut` and `RwLock::get_mut` ([#7569])
24+
- time: reduce the generated code size of `Timeout<T>::poll` ([#7535])
25+
26+
### Fixed
27+
28+
- macros: fix hygiene issue in `join!` and `try_join!` ([#7638])
29+
- net: fix copy/paste errors in udp peek methods ([#7604])
30+
- process: fix error when runtime is shut down on nightly-2025-10-12 ([#7672])
31+
- runtime: use release ordering in `wake_by_ref()` even if already woken ([#7622])
32+
- sync: close the `broadcast::Sender` in `broadcast::Sender::new()` ([#7629])
33+
- sync: fix implementation of unused `RwLock::try_*` methods ([#7587])
34+
35+
### Unstable
36+
37+
- tokio: use cargo features instead of `--cfg` flags for `taskdump` and `io_uring` ([#7655], [#7621])
38+
- fs: support `io_uring` in `fs::write` ([#7567])
39+
- fs: support `io_uring` with `File::open()` ([#7617])
40+
- fs: support `io_uring` with `OpenOptions` ([#7321])
41+
- macros: add `local` runtime flavor ([#7375], [#7597])
42+
43+
### Documented
44+
45+
- io: clarify the zero capacity case of `AsyncRead::poll_read` ([#7580])
46+
- io: fix typos in the docs of `AsyncFd` readiness guards ([#7583])
47+
- net: clarify socket gets closed on drop ([#7526])
48+
- net: clarify the behavior of `UCred::pid()` on Cygwin ([#7611])
49+
- net: clarify the supported platform of `set_reuseport()` and `reuseport()` ([#7628])
50+
- net: qualify that `SO_REUSEADDR` is only set on Unix ([#7533])
51+
- runtime: add guide for choosing between runtime types ([#7635])
52+
- runtime: clarify the behavior of `Handle::block_on` ([#7665])
53+
- runtime: clarify the edge case of `Builder::global_queue_interval()` ([#7605])
54+
- sync: clarify bounded channel panic behavior ([#7641])
55+
- sync: clarify the behavior of `tokio::sync::watch::Receiver` ([#7584])
56+
- sync: document cancel safety on `SetOnce::wait` ([#7506])
57+
- sync: fix the docs of `parking_lot` feature flag ([#7663])
58+
- sync: improve the docs of `UnboundedSender::send` ([#7661])
59+
- sync: improve the docs of `sync::watch` ([#7601])
60+
- sync: reword allocation failure paragraph in broadcast docs ([#7595])
61+
- task: clarify the behavior of several `spawn_local` methods ([#7669])
62+
- task: clarify the task ID reuse guarantees ([#7577])
63+
- task: improve the example of `poll_proceed` ([#7586])
64+
65+
[#7321]: https://github.com/tokio-rs/tokio/pull/7321
66+
[#7375]: https://github.com/tokio-rs/tokio/pull/7375
67+
[#7490]: https://github.com/tokio-rs/tokio/pull/7490
68+
[#7491]: https://github.com/tokio-rs/tokio/pull/7491
69+
[#7494]: https://github.com/tokio-rs/tokio/pull/7494
70+
[#7506]: https://github.com/tokio-rs/tokio/pull/7506
71+
[#7511]: https://github.com/tokio-rs/tokio/pull/7511
72+
[#7526]: https://github.com/tokio-rs/tokio/pull/7526
73+
[#7530]: https://github.com/tokio-rs/tokio/pull/7530
74+
[#7533]: https://github.com/tokio-rs/tokio/pull/7533
75+
[#7535]: https://github.com/tokio-rs/tokio/pull/7535
76+
[#7554]: https://github.com/tokio-rs/tokio/pull/7554
77+
[#7567]: https://github.com/tokio-rs/tokio/pull/7567
78+
[#7569]: https://github.com/tokio-rs/tokio/pull/7569
79+
[#7573]: https://github.com/tokio-rs/tokio/pull/7573
80+
[#7577]: https://github.com/tokio-rs/tokio/pull/7577
81+
[#7580]: https://github.com/tokio-rs/tokio/pull/7580
82+
[#7583]: https://github.com/tokio-rs/tokio/pull/7583
83+
[#7584]: https://github.com/tokio-rs/tokio/pull/7584
84+
[#7586]: https://github.com/tokio-rs/tokio/pull/7586
85+
[#7587]: https://github.com/tokio-rs/tokio/pull/7587
86+
[#7593]: https://github.com/tokio-rs/tokio/pull/7593
87+
[#7594]: https://github.com/tokio-rs/tokio/pull/7594
88+
[#7595]: https://github.com/tokio-rs/tokio/pull/7595
89+
[#7597]: https://github.com/tokio-rs/tokio/pull/7597
90+
[#7599]: https://github.com/tokio-rs/tokio/pull/7599
91+
[#7601]: https://github.com/tokio-rs/tokio/pull/7601
92+
[#7604]: https://github.com/tokio-rs/tokio/pull/7604
93+
[#7605]: https://github.com/tokio-rs/tokio/pull/7605
94+
[#7611]: https://github.com/tokio-rs/tokio/pull/7611
95+
[#7617]: https://github.com/tokio-rs/tokio/pull/7617
96+
[#7621]: https://github.com/tokio-rs/tokio/pull/7621
97+
[#7622]: https://github.com/tokio-rs/tokio/pull/7622
98+
[#7628]: https://github.com/tokio-rs/tokio/pull/7628
99+
[#7629]: https://github.com/tokio-rs/tokio/pull/7629
100+
[#7635]: https://github.com/tokio-rs/tokio/pull/7635
101+
[#7638]: https://github.com/tokio-rs/tokio/pull/7638
102+
[#7641]: https://github.com/tokio-rs/tokio/pull/7641
103+
[#7645]: https://github.com/tokio-rs/tokio/pull/7645
104+
[#7651]: https://github.com/tokio-rs/tokio/pull/7651
105+
[#7655]: https://github.com/tokio-rs/tokio/pull/7655
106+
[#7661]: https://github.com/tokio-rs/tokio/pull/7661
107+
[#7663]: https://github.com/tokio-rs/tokio/pull/7663
108+
[#7665]: https://github.com/tokio-rs/tokio/pull/7665
109+
[#7666]: https://github.com/tokio-rs/tokio/pull/7666
110+
[#7669]: https://github.com/tokio-rs/tokio/pull/7669
111+
[#7672]: https://github.com/tokio-rs/tokio/pull/7672
112+
[#7675]: https://github.com/tokio-rs/tokio/pull/7675
113+
1114
# 1.47.1 (August 1st, 2025)
2115

3116
### Fixed

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.47.1"
9+
version = "1.48.0"
1010
edition = "2021"
1111
rust-version = "1.71"
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.47.1", features = ["full"] }
59+
tokio = { version = "1.48.0", features = ["full"] }
6060
```
6161
Then, on your main.rs:
6262

0 commit comments

Comments
 (0)