4220 Commits

Author SHA1 Message Date
Martin Grigorov
6dc4f85f0b
net: clarify the behavior of UCred::pid() on Cygwin (#7611) 2025-09-15 00:05:05 +08:00
Martin Grigorov
637fc1d103
tokio: fix minor errors in tokio/CHANGELOG.md (#7608) 2025-09-11 10:02:34 +00:00
Martin Grigorov
7a0ca807be
time: add #[track_caller] to FutureExt::timeout (#7588)
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2025-09-11 09:18:40 +02:00
Martin Grigorov
d8e8037de5
net: fix copy/paste errors in udp peek methods (#7604) 2025-09-10 16:33:35 +02:00
Martin Grigorov
de978c47e0
task: remove duplicated code in JoinMap::remove_by_id (#7603) 2025-09-10 22:16:15 +08:00
Qi
024bd60933
task: improve the example of poll_proceed (#7586)
Signed-off-by: ADD-SP <qiqi.zhang@konghq.com>
2025-09-10 20:57:03 +08:00
Aatif Syed
7127e257a7
io: export Chain of AsyncReadExt::chain (#7599) 2025-09-10 10:45:42 +02:00
Martin Grigorov
94b6df699b
fs: fill the destination buffer with 0s for MockFile::read() (#7596) 2025-09-10 10:41:20 +02:00
Martin Grigorov
510b9ea9dc
macros: Update the version used for Git tag sample for release steps (#7598)
Change 1.x.y to x.y.z so that it does not become obsolete again when
tokio-macros 3.x is released
2025-09-09 15:52:58 +02:00
Martin Grigorov
0fc23971d9
macros: add missing local flavor to tokio::main error message (#7597) 2025-09-09 21:26:16 +08:00
unvalley
f07233f742
test: add tests for time in wasm32-unknown-unknown (#7510) 2025-09-09 12:31:14 +02:00
Martin Grigorov
8efd04e382
sync: reword allocation failure paragraph in broadcast docs (#7595) 2025-09-09 09:05:14 +00:00
Martin Grigorov
044eaa1a41
fs: preserve max_buf_size when cloning a File (#7593) 2025-09-09 08:34:35 +00:00
Martin Grigorov
03bb6e29b1
fs: add File::max_buf_size (#7594) 2025-09-09 08:12:07 +00:00
Martin Grigorov
ac4c95972e
sync: fix implementation of unused RwLock::try_* methods (#7587)
bd4ccae184b0359cb88f9ebc2ba157867e1eee0e introduced a wrapper for the
RwLock to get rid of poisoning aspects.

By mistake (?!) its try_read/write methods actually delegate to
read/write() and this would lead to blocking

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2025-09-09 09:39:01 +02:00
Martin Grigorov
14e739c306
readme: fix the version used as an example how to use the latest minor of LTS (#7592) 2025-09-09 09:37:47 +02:00
Qi
9f59c6952e
ci: remove the job test-pass (#7575)
Signed-off-by: ADD-SP <qiqi.zhang@konghq.com>
2025-09-08 12:07:40 +02:00
Martin Grigorov
86400a1920
io: fix typos in the docs of AsyncFd readiness guards (#7583)
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2025-09-06 15:58:41 +08:00
Martin Grigorov
c9b4e4c110
examples: fix the write length in the connect-tcp example (#7581)
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2025-09-06 15:49:07 +08:00
Martin Grigorov
3eb515e1a7
examples: update outdated example name connect to connect-tcp (#7582)
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2025-09-06 14:01:40 +08:00
Martin Grigorov
1ed2a1436f
process: fix unit test for trailing LF in uname -r (#7579)
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2025-09-06 13:52:16 +08:00
Martin Grigorov
c6aceed643
io: clarify the zero capacity case of AsyncRead::poll_read (#7580)
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2025-09-06 13:42:35 +08:00
Martin Grigorov
4590828fb4
stream: improve the the docs of TcpListenerStream (#7578)
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2025-09-06 13:36:41 +08:00
Roman
a99a351802
sync: use UnsafeCell::get_mut in Mutex::get_mut and RwLock::get_mut (#7569) 2025-09-04 22:39:28 +08:00
Aatif Syed
d1e06f831e
net: implement AsRef<Self> for TcpStream and UnixStream (#7573) 2025-09-04 10:31:49 +00:00
Sam
37ca2f049c
sync: remove inner mutex in SetOnce (#7554) 2025-09-03 17:37:50 +02:00
Varun Doshi
c8371d45bc
codec: add {FramedRead,FramedWrite}::into_parts() (#7566) 2025-09-03 13:38:51 +02:00
Daniel Sharifi
adc3e19ba7
time: clarify the cancellation safety of the DelayQueue (#7564) 2025-08-31 20:57:17 +08:00
Alex Bakon
925c614c89
time: reduce the generated code size of Timeout<T>::poll (#7535) 2025-08-19 13:42:55 +02:00
Asger Hautop Drewsen
dd74c7c1bf
task: implement Ord for task::Id (#7530) 2025-08-15 09:52:12 +02:00
Logan Praneis
23263231fd
net: qualify that SO_REUSEADDR is only set on Unix (#7533) 2025-08-14 09:25:55 +08:00
CrazyFrog
86528741f9
ci: update GitHub actions/checkout to v5 (#7529) 2025-08-13 12:57:45 +02:00
Noam Soloveichik
131afd3c53
net: clarify socket gets closed on drop (#7526) 2025-08-11 16:26:01 +00:00
Qi
9ed6f70b81
ci: remove a typo from spellcheck.dic (#7524)
Signed-off-by: ADD-SP <qiqi.zhang@konghq.com>
2025-08-10 20:31:09 +08:00
mxsm
46f7d87962
runtime: fix a typo in comment of MAX_LIFO_POLLS_PER_TICK (#7520) 2025-08-09 22:29:43 +08:00
Motoyuki Kimura
987675e843
ci: pin the rust version for wasm tests (#7518) 2025-08-08 10:09:31 +00:00
Qi
11d7c0486a
task: inline the docs of TaskTracker while re-exporting it (#7516)
Signed-off-by: ADD-SP <qiqi.zhang@konghq.com>
2025-08-08 09:54:25 +02:00
Motoyuki Kimura
3e84a198e4
fs: add io_uring open operation (#7321) 2025-08-08 09:51:42 +02:00
Qi
7497561fed
net: render the cygwin in the docs of quickack and set_quickack (#7515)
Signed-off-by: ADD-SP <qiqi.zhang@konghq.com>
2025-08-06 09:01:27 +08:00
Luca Bruno
ef5b6af7f6
future: clarify the fairness of FutureExt for cancellation adapters (#7512)
This fixes the docstrings on `FutureExt` so that the bias and fairness
notes are correct and consistent in all cases.
All cancellation-related wrappers are biased towards the completion of
the inner future, but they do initially check if the token is
already cancelled at construction time.
2025-08-04 21:26:11 +08:00
Motoyuki Kimura
0922aa2a0b
ci: fix clippy warnings triggered under specific cfg (#7495) 2025-08-04 10:36:17 +00:00
Michael Zhao
2403b91d75
process: upgrade Command::spawn_with to use FnOnce (#7511) 2025-08-03 18:27:37 +00:00
Conrad Ludgate
f1d3b065b6
task: fix flaky joinmap test during abort (#7509) 2025-08-03 20:00:33 +02:00
Alice Ryhl
cf6b50a3fd
chore: prepare tokio-util v0.7.16 (#7507) tokio-util-0.7.16 2025-08-03 11:12:41 +02:00
Conrad Ludgate
416e36b0df
task: stabilise JoinMap (#7075) 2025-08-03 07:58:28 +00:00
Alice Ryhl
9741c90f9f
sync: document cancel safety on SetOnce::wait (#7506) 2025-08-03 07:42:30 +00:00
Lucas Black
4e3f17bce3
codec: also apply capacity to read buffer in Framed::with_capacity (#7500) 2025-08-01 21:26:33 +02:00
Alice Ryhl
86cbf81e15 Merge 'tokio-1.47.1' into 'master' 2025-08-01 13:21:45 +02:00
Alice Ryhl
be8ee45b3f
chore: prepare Tokio v1.47.1 (#7504) tokio-1.47.1 2025-08-01 13:20:34 +02:00
Alice Ryhl
d9b19166cd Merge 'tokio-1.43.2' into 'tokio-1.47.x' (#7503) 2025-08-01 13:03:06 +02:00