Commit Graph
4547 Commits
Author SHA1 Message Date
Shuang Li 4bbd2f4d7c docs: fix missing brace in reactor-refactor.md (#8236) 2026-06-28 23:42:35 +03:00
Tim Vilgot Mikael Fredenberg 930ca7436b signal: merge windows statics (#8231) 2026-06-28 10:24:29 -07:00
46c830117b fs(tests): do not leak FDs with shutdown background (#8184)
---------

Co-authored-by: Martin Grigorov <[email protected]>
Co-authored-by: Mattia Pitossi <[email protected]>
2026-06-25 17:20:53 +02:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 8f37021c16 ci: bump actions/checkout from 6 to 7 (#8229)
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-25 09:25:48 +03:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> cdaa78fc37 ci: bump actions/cache from 5 to 6 (#8230)
Bumps [actions/cache](https://github.com/actions/cache) from 5 to 6.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-25 08:51:00 +03:00
Matteo Monti dba1f20585 sync: implement cancellation token getter for drop guard (#8226) 2026-06-24 15:16:23 +02:00
Nanasi 95b8895da8 stream: update coop handling for empty and once (#8227) 2026-06-24 12:38:36 +00:00
Giorgio Maria Federico Birnthaler 73e8937cc5 util: fix typo in blocking_check.rs comment (#8223)
Replace 'i dont' with 'i don't' in the cfg(not(unix)) stub of
'check_socket_for_blocking'. The line is a casual internal comment
about why WASI is not yet supported there; it just needs the missing
apostrophe.
2026-06-23 20:03:19 +00:00
Ebrahim Eldesoky 630ec12a4f stream: use cooperative budgeting in tokio_stream::iter (#8218) 2026-06-23 11:42:03 +00:00
GraymanandTim Vilgot Mikael Fredenberg 060f66c665 docs: clarify cancel safety wording (#8181)
Co-authored-by: Tim Vilgot Mikael Fredenberg <[email protected]>
2026-06-23 09:13:01 +00:00
Prashant Singh Chouhan a59f9a0a94 test: add Spawn::poll_until_idle (#8213) 2026-06-23 10:25:14 +02:00
Robert Holt aee321206b metrics: add task schedule latency metric (#7986) 2026-06-23 10:23:34 +02:00
Tim Vilgot Mikael Fredenberg 5f52f113d4 tracing: remove unnecessary span clone (#8126) 2026-06-23 07:51:55 +00:00
Minh Vu f59aae423e stream: fix overflow in StreamMap::size_hint (#8216) 2026-06-23 09:49:54 +02:00
Minh Vu dc3a883b99 examples: connect proxy upstream per client (#8217) 2026-06-23 09:49:33 +02:00
Patrick WehbeandPatrick Wehbe 66e29121b3 time: fix reversed poll order in timeout doc (#8214)
The timeout doc said the timeout is checked before polling the future,
but the impl polls the future first and only then checks the delay (see
the Future impl for Timeout, which calls me.value.poll before
poll_delay). Reverse the clause to match the implementation. This is
also what makes the rest of the sentence correct: the future can
complete and exceed the timeout without an error precisely because it is
polled before the timeout is checked.

Co-authored-by: Patrick Wehbe <[email protected]>
2026-06-19 22:32:30 +02:00
Tim Vilgot Mikael Fredenberg daa653d94f tokio: remove needless generic type on LinkedList (#8188) 2026-06-19 23:28:28 +08:00
Mahdi Ali-RaihanandVrtgs 7892f6020d Implemented io-uring Op<Statx> and applied to read_uring and fs::try_exists (#8080)
* implement Op<Statx> and use it to implement fs::try_exists

* fix statx on unavailable platforms

* complete using only io-uring operations for read_uring

* Implemented io-uring::Op<Statx> and apply it accordingly to read_uring, try_exists

* Added test for io uring statx operations. Checks for cancellations, shutdown, stating multiple files, ELOOP, ENAMETOOLONG, EACCES

* Removed musl as supported platform for io_uring statx operations, as statx is supported on 1.25+ musl, and MSRV that uses 1.25 on all *-linux-musl platforms is 1.93

* Removed pending checks for cancel_op_future since io_uring not available on Linux <5.1, removed stat permission denied test case since it doesn't work on Linux 4.19

* Removed redundant cfg attributes on functions, added STATX_BTIME flag in statx operation, use assert pending in cancel ops

* Uncommented stat_permission_denied test and make sure it doesn't run on platforms that don't support io_uring, removed unnecessary comments, and added TODO on symlink_metadata for when Metadata::from_statx is stabilized

* Statx fd leak drop test added and added STATX_BTIME to file_metadata

* Remove unnecessary utils function, refactored code in statx and statx fd leak test, and removed cfg_io_uring gates (localized the feature gate to the pertinent part of the code that uses it in read_uring)

---------

Co-authored-by: Vrtgs <[email protected]>
2026-06-13 13:30:47 -04:00
ADD-SPandAlice Ryhl da044f27d7 net: disable some Miri tests for TCP socket (#8205)
Co-authored-by: Alice Ryhl <[email protected]>
2026-06-12 10:12:08 +08:00
Mukhammedali Berektassuly ecb5125a67 runtime: document interaction with fork() (#8202) 2026-06-10 12:05:27 +00:00
Jean SIMARD bde8967853 task: add Stream wrapper for JoinSet (#8189) 2026-06-10 09:04:27 +02:00
Satyam Gupta 21e4a2a282 taskdump: support taskdumps on s390x (#8192)
Signed-off-by: satyamg1620 <[email protected]>
2026-06-10 08:55:09 +02:00
Amey Pawar 2e7930fe58 net: accept ConnectionReset in shutdown_after_tcp_reset test (#8196)
The test asserts shutdown() returns Ok(()) after the peer resets the
connection (linger = 0). This holds on Linux and macOS, but on FreeBSD the
kernel can finish processing the RST before shutdown() runs, so it returns
ConnectionReset and the test fails intermittently -- the oneshot only
synchronizes the application-level drop, not the kernel's RST processing.

Accept Ok(()) or ConnectionReset for the post-reset shutdown, since both
are valid for a connection the peer has already reset.
2026-06-09 15:00:24 +00:00
Sabnock 67637b348a macros: clarify tokio::main expansion (#8193) 2026-06-09 14:22:46 +02:00
Nicolò Paternoster 778e9d97d9 tests: fix typo in io_uring support functions docs (#8186) 2026-06-03 17:37:57 +02:00
elomatreb 71362aa609 net: add SocketAddr methods to Unix sockets (#8144) 2026-06-03 09:23:30 +02:00
WhySoBad 2de86e557c net: enable more Miri tests for TCP socket (#8180) 2026-06-02 23:50:54 +08:00
RyanStewart 326bd2cc44 codec: use libc::memchr for LinesCodec delimiter scan (#8141) 2026-06-02 17:23:18 +02:00
WhySoBad 32312ae0d6 net: enable Miri tests for TCP socket (#8156) 2026-05-26 10:40:09 +08:00
Qiqi Zhang 37ced33efd time: ensure timers stay in the same runtime after .reset() (#8169) 2026-05-26 10:29:50 +08:00
Tim Vilgot Mikael Fredenberg 923e72345c time: move lazy-registration state into Sleep (#8132) 2026-05-25 08:11:09 +08:00
Mattia Pitossi f619fc0587 docs: improve contributing guidelines (#8166) 2026-05-24 09:10:16 +02:00
吴杨帆 82fe082ef1 fs: clarify create_dir_all succeeds if path exists (#8149) 2026-05-21 15:43:17 +02:00
Joe Grund 1fe1b0e727 task: add JoinMap::try_join_next (#8099) 2026-05-21 15:41:55 +02:00
Minh Vu c6af672353 io: advance partially written buffers correctly in write_all_vectored (#8159) 2026-05-21 01:21:35 -07:00
Abhinav 2a05f364b7 ci: set copyback to false for FreeBSD jobs (#8155) 2026-05-20 14:32:23 +02:00
Mattia Pitossi c6d58ce7e7 ci: fix macOS runners (#8145) 2026-05-15 08:24:07 +02:00
vip892766gma de360cfc7e tokio-stream: fix duplicated word in changelog (#8143) 2026-05-14 20:33:43 -07:00
RyanStewart 7d3b0ad192 sync: remove useless conversion in oneshot Receiver::poll (#8142) 2026-05-13 09:05:35 +02:00
Russell Cohen 0121120b6d taskdump: skip double wake on Trace::capture/Trace::trace_with (#8043) 2026-05-12 19:56:50 +02:00
Mattia Pitossi bdcea6b2cd fs: skip some io_uring tests on Kernels that don't support it (#8134) 2026-05-11 13:58:50 +02:00
Tim Vilgot Mikael Fredenberg ee0dc90926 time: consolidate mutex locks on spurious poll (#8124) 2026-05-08 11:02:54 -07:00
Alice Ryhl 78594a7497 Merge 'tokio-1.52.3' into 'master' (#8131) 2026-05-08 13:00:22 +00:00
Alice Ryhl d87569164f chore: prepare Tokio v1.52.3 (#8130) tokio-1.52.3 2026-05-08 14:52:32 +02:00
Alice Ryhl e1aebb031c Merge 'tokio-1.51.3' into 'tokio-1.52.x' (#8129) 2026-05-08 09:30:59 +00:00
Alice Ryhl fd63094ee0 chore: prepare Tokio v1.51.3 (#8127) tokio-1.51.3 2026-05-08 10:45:32 +02:00
xtqqczze 067f229371 io: replace Vec method truncate(0) with clear (#8125)
https://rust-lang.github.io/rust-clippy/master/index.html#manual_clear
2026-05-08 08:38:49 +02:00
Alice Ryhl 8c600d0fd2 Merge 'tokio-1.47.5' into 'tokio-1.51.x' (#8123) 2026-05-07 13:59:06 +02:00
Alice Ryhl 11bfc1345b chore: prepare Tokio v1.47.5 (#8122) tokio-1.47.5 2026-05-07 13:55:35 +02:00
Alice Ryhl f085b6211b sync: notify receivers in mpsc OwnedPermit::release() method (#8075) 2026-05-07 09:32:14 +02:00