4325 Commits

Author SHA1 Message Date
vrtgs
d666068be7
fs: handle EINTR in fs::write for io-uring (#7786) 2025-12-24 23:18:25 +08:00
Qi
1b17a7e241
ci: fix wasm32-wasip1 tests (#7788) 2025-12-24 10:07:28 +08:00
xibeiyoumian
5b91709edf
chore: fix some minor typos in the comments (#7785)
Signed-off-by: xibeiyoumian <xibeiyoumian@outlook.com>
2025-12-23 20:24:13 +08:00
Aaron Chen
08f40652aa
macros: remove extern crate proc_macro (#7783) 2025-12-21 18:42:14 +08:00
Clara Engler
6403b5370e
readme: remove TokioConf 2026 CFP announcement (#7774) 2025-12-20 10:09:00 +01:00
Qi
064181f386
io: add tokio_util::io::simplex (#7565)
Signed-off-by: ADD-SP <qiqi.zhang@konghq.com>
2025-12-18 20:35:01 +08:00
Qi
009a2567d0
sync: clarify the cancellation safety of oneshot::Receiver (#7780)
Signed-off-by: ADD-SP <qiqi.zhang@konghq.com>
Co-authored-by: Alice Ryhl <aliceryhl@google.com>
2025-12-18 19:21:59 +08:00
Qi
231a3a69f9
task: stabilize the LocalSet::id() (#7776)
Signed-off-by: ADD-SP <qiqi.zhang@konghq.com>
2025-12-16 19:02:09 +08:00
Chinedu Francis Nwafili
0fa7755e97
runtime: stabilize runtime:🆔:Id (#7125) 2025-12-16 00:29:10 +08:00
Clara Engler
d3fe35593d
net: clarify the cancellation safety of the TcpStream::peek (#7305) 2025-12-15 10:02:13 +08:00
Owen Griffiths
0ec0a85461
io: document the default capacity of the ReaderStream (#7147)
Signed-off-by: ADD-SP <qiqi.zhang@konghq.com>
Co-authored-by: Qi <add_sp@outlook.com>
2025-12-12 23:22:17 +08:00
Qi
97d06ae1a6
macros: fix the hygiene issue of join! and try_join! (#7766)
Signed-off-by: ADD-SP <qiqi.zhang@konghq.com>
2025-12-08 18:39:29 +08:00
Mattia Pitossi
b5054e1dff
docs: break up CONTRIBUTING.md into several parts (#7762) 2025-12-07 19:10:54 +08:00
Daksh
398eef8120
fs: support io_uring with tokio::fs::read (#7696) 2025-12-05 15:57:32 +08:00
Tethys Svensson
c8116ecd7b
stream: work around the rustc bug in StreamExt::collect (#7754) 2025-12-05 10:24:29 +08:00
Martin Grigorov
5471a5835e
ci: upgrade FreeBSD from 14.2 to 14.3 (#7758)
14.2 is no more available:

```
$ gcloud compute images list --project freebsd-org-cloud-dev --no-standard-images
NAME                                             PROJECT                FAMILY                       DEPRECATED  STATUS
freebsd-13-5-release-amd64-gce                   freebsd-org-cloud-dev  freebsd-13-5                             READY
freebsd-13-5-stable-amd64-v20251030              freebsd-org-cloud-dev  freebsd-13-5-snap                        READY
freebsd-13-5-stable-amd64-v20251107              freebsd-org-cloud-dev  freebsd-13-5-snap                        READY
freebsd-14-3-release-amd64-ufs-gce               freebsd-org-cloud-dev  freebsd-14-3                             READY
freebsd-14-3-stable-amd64-ufs-20251120           freebsd-org-cloud-dev  freebsd-14-3-snap                        READY
freebsd-14-3-stable-amd64-ufs-20251127           freebsd-org-cloud-dev  freebsd-14-3-snap                        READY
freebsd-14-3-stable-amd64-zfs-20251113           freebsd-org-cloud-dev  freebsd-14-3-snap                        READY
freebsd-14-3-stable-amd64-zfs-20251120           freebsd-org-cloud-dev  freebsd-14-3-snap                        READY
freebsd-14-3-stable-amd64-zfs-20251127           freebsd-org-cloud-dev  freebsd-14-3-snap                        READY
freebsd-15-0-release-amd64-ufs                   freebsd-org-cloud-dev  freebsd-15-0-amd64-ufs                   READY
freebsd-15-0-release-amd64-zfs                   freebsd-org-cloud-dev  freebsd-15-0-amd64-zfs                   READY
freebsd-15-0-stable-amd64-ufs-20251120           freebsd-org-cloud-dev  freebsd-15-0-amd64-ufs-snap              READY
freebsd-15-0-stable-amd64-ufs-20251127           freebsd-org-cloud-dev  freebsd-15-0-amd64-ufs-snap              READY
freebsd-15-0-stable-amd64-zfs-20251120           freebsd-org-cloud-dev  freebsd-15-0-amd64-zfs-snap              READY
freebsd-15-0-stable-amd64-zfs-20251127           freebsd-org-cloud-dev  freebsd-15-0-amd64-zfs-snap              READY
freebsd-16-0-current-amd64-ufs-20251110          freebsd-org-cloud-dev  freebsd-16-0-snap                        READY
freebsd-16-0-current-amd64-zfs-20251110          freebsd-org-cloud-dev  freebsd-16-0-snap                        READY
freebsd-16-0-current-arm64-aarch64-ufs-20251111  freebsd-org-cloud-dev  freebsd-16-0-snap                        READY
freebsd-16-0-current-arm64-aarch64-zfs-20251111  freebsd-org-cloud-dev  freebsd-16-0-snap                        READY
```
2025-12-04 16:52:29 +08:00
Alex Gaynor
be99e7aa04
benches: add spawn_blocking concurrency benchmark (#7748) 2025-12-03 10:20:50 +01:00
Alice Ryhl
3bf2e53f0b
net: deprecate {TcpStream,TcpSocket}::set_linger (#7752) 2025-12-02 13:15:48 +01:00
Mattia Pitossi
ab3996a6dd
time: update outdated docs of Wheel (#7749) 2025-11-29 18:06:33 +08:00
Ralf Jung
c03a37fa0b
tokio: enable more tests in Miri (#7734) 2025-11-29 15:08:47 +08:00
Qi
73d733a341
time: add alternative timer for better multicore scalability (#7467)
This change introduces per-worker timer wheels in the time subsystem
to reduce the lock contention.

Key changes:
- Each worker now maintains a local timer wheel.
- Timer insertions are performed locally.
- Timer cancellations are forwarded via a
  dedicated cross-worker cancellation queue.

Relevant RFC: https://github.com/tokio-rs/tokio/issues/7384

---------

Signed-off-by: ADD-SP <qiqi.zhang@konghq.com>
2025-11-27 09:29:28 +08:00
Elichai Turkel
749322d351
task: implement Extend for JoinSet (#7195) 2025-11-25 11:31:21 +01:00
jinronga
963b631754
refactor: introduce constants for default addresses and improve error handling in TCP examples (#7741)
- Added `DEFAULT_ADDR` constant to `chat.rs` and `echo-tcp.rs` for better maintainability.
- Enhanced error logging in `connect-tcp.rs` and `echo-tcp.rs` to include connection addresses.
- Improved peer management in `chat.rs` by automatically cleaning up disconnected peers.
2025-11-25 08:44:41 +02:00
Paolo Barbolini
9a1b076c00
io: replace Result<T, io::Error> with io::Result<T> in AsyncWrite (#7740) 2025-11-23 17:26:48 +08:00
Mohamed Macow
c434ed7865
net: clarify the drop behavior of unix::OwnedWriteHalf (#7742) 2025-11-23 17:18:24 +08:00
Seaker
4714ca168d
net: clarify the platform-dependent backlog in TcpSocket docs (#7738) 2025-11-16 18:44:35 +08:00
Mattia Pitossi
5e3ad02fb1
sync: fix a typo in the docs of PollSender::is_closed (#7737) 2025-11-15 18:43:02 +08:00
Qi
12412afea4
deps: bump tokio to 1.44.0 (#7733) 2025-11-13 11:47:34 +02:00
Mattia Pitossi
cae083a26f
docs: fix typos in README (#7731) 2025-11-12 12:33:24 +01:00
Carl Lerche
fd7a8d7c65
chore: add TokioConf 2026 CFP announcement (#7730)
* chore: add TokioConf 2026 CFP announcement

* sync readmes
2025-11-12 08:53:40 +02:00
Qi
d709df2571
ci: bump miri to nightly-2025-11-09 (#7726) 2025-11-09 18:53:16 +02:00
Qi
665f08b5ad
tokio: enable the unsafe_op_in_unsafe_fn lint at the crate level (#7711)
Signed-off-by: ADD-SP <qiqi.zhang@konghq.com>
2025-11-09 12:35:08 +01:00
Mattia Pitossi
d4641ba9fc
util: use <ptr>::addr instead of unsafe impl (#7725) 2025-11-08 23:49:09 +01:00
Motoyuki Kimura
2bf80f0ac6
runtime: disable io-uring on EPERM (#7724) 2025-11-08 17:13:12 +08:00
Muhamad Awad
62ecff895a
stream: add ChunksTimeout::into_remainder (#7715) 2025-11-06 20:15:10 +08:00
Benjamin Ran
d84a9e9af3
util: enable loom tests (#7644)
Co-authored-by: Benjamin Ran <benjaminran@Benjamins-MacBook-Pro-3.local>
2025-11-06 19:20:08 +08:00
Ari Seyhun
0671c205cc
sync: improve the docs for the errors of mpsc (#7722)
* docs: fix documentation comments for mpsc error enums

* docs: improve code docs for `TryRecvError`

* docs: improve code docs for mpsc `SendError`
2025-11-05 12:45:13 +00:00
Qi
1ece2f1fa7
task: remove unnecessary trait bounds on the Debug implementation (#7720)
Remove the trait bounds of the `Debug` impl for `JoinQueue`
and `AbortOnDropHandle`.

Signed-off-by: ADD-SP <qiqi.zhang@konghq.com>
2025-11-04 11:15:29 +01:00
Ari Seyhun
12319f26d0
sync: add missing period to mpsc::Sender::try_send docs (#7721) 2025-11-03 21:20:25 +08:00
Qi
454fd8c347
chore: prepare tokio-util v0.7.17 (#7719)
Signed-off-by: ADD-SP <qiqi.zhang@konghq.com>
tokio-util-0.7.17
2025-11-02 15:33:25 +01:00
Conrad Ludgate
4421022c25
codec: remove unnecessary trait bounds on all Framed constructors (#7716) 2025-10-29 20:08:13 +08:00
Daksh
5a709e391b
io_uring: change Completable to not return io::Result (#7702) 2025-10-24 22:17:17 +02:00
Alice Ryhl
5efb1c3b16
io: doc that AsyncWrite does not inherit from Write (#7705) 2025-10-23 12:07:02 +02:00
Alice Ryhl
f490029b8f
runtime: revert "replace manual vtable definitions with Wake" (#7699)
This reverts commit 4380de9fe9e0938790a2c06f4bdaa8bd91c08ed1.
2025-10-21 12:59:05 +02:00
Mattia Pitossi
d25778f67d
task: add tests for task::Builder::spawn_local (#7697) 2025-10-20 20:43:41 +08:00
Qi
b8318fa172
task: add tests for spawn_local in panic scenarios (#7694)
Signed-off-by: ADD-SP <qiqi.zhang@konghq.com>
2025-10-20 20:25:00 +08:00
Alice Ryhl
acfdb87e2b
task: use #[tokio::test] explicitly in tests/task_builder.rs (#7698) 2025-10-20 11:15:04 +00:00
KR-bluejay
d060401f6c
sync: return TryRecvError::Disconnected from Receiver::try_recv after Receiver::close (#7686) 2025-10-18 12:57:07 +02:00
FrancescoV1985
5dacc2e2a8
task: add tests for spawn_local and spawn_local_on (#7609)
Add tests for task collections (TaskTracker, JoinSet, JoinMap).
2025-10-16 23:44:57 +08:00
Mattia Pitossi
444d3f5c49
task: add example for spawn_local usage on local runtime (#7689) 2025-10-16 23:13:16 +08:00