GuTS805
b6ed00435d
codec: fix broken length_delimited builder doc examples ( #8350 )
...
The Builder::new, new_codec, and new_read doc examples combined
length_adjustment(0) with num_skip(0). This leaves the length
header bytes in the buffer without accounting for them, so decoding
returns a frame that includes the raw header at the front and is
short at the back, corrupting the following frame.
Drop num_skip(0) so the default (skip the header) behavior applies,
and turn all three examples into executable doctests that perform a
real encode/decode round-trip and assert on the payload, so this
class of bug is caught automatically going forward.
Fixes : #8348
2026-08-09 17:31:23 +02:00
Fodesu
e10d614cb9
task: use LocalRuntime in LocalPoolHandle ( #7852 )
2026-08-09 15:24:13 +00:00
MildlyMeticulous
d87d860cc8
codec: optimize buffer reserve for LengthDelimitedCodec::encode ( #8333 )
...
The reservation used `n`, the length after `length_adjustment` has been
applied, but the encoder goes on to write `length_field_len` bytes of
header plus `data.len()` bytes of payload. A positive `length_adjustment`
therefore under-reserved by exactly the adjustment on every frame, and a
negative one over-reserved, so the reservation did not match the write in
either of the adjusted configurations shown in the module docs.
2026-08-09 16:47:16 +02:00
Minh Vu
ed25636141
time: wake DelayQueue when cleared ( #8320 )
2026-08-09 16:45:35 +02:00
Minh Vu
7f86b2ace5
codec: clamp runtime frame length to field width ( #8275 )
2026-08-09 16:39:18 +02:00
MAAZIZ Adel Ayoub
a5b2d1ff69
tokio-util: stop polling StreamReader after EOF ( #8332 )
2026-08-07 21:59:51 +08:00
Tim Vilgot Mikael Fredenberg
cc8c053421
tokio: simplify Option handling with idiomatic combinators ( #8336 )
2026-08-07 21:18:39 +08:00
Alice Ryhl
f2189d3bd6
chore: prepare tokio-util v0.7.19 ( #8309 )
2026-07-21 14:09:36 +02:00
Mattia Pitossi
ac6869a431
rt: remove unstable cfgs leftovers after local runtime stabilization ( #8298 )
2026-07-20 20:12:30 +02:00
Minh Vu
5e16ee00fa
task: avoid replacing the JoinQueue waker in try_join_next ( #8279 )
...
Do not poll pending join handles with a noop waker, since that can replace the waker registered by poll_join_next and leave its caller asleep.
2026-07-16 13:15:11 +02:00
Minh Vu
6e8475dd60
time: wake DelayQueue after resetting to expired ( #8274 )
...
Resetting an item into the expired stack bypassed the existing Sleep reset
path, leaving a pending consumer asleep until an unrelated deadline.
2026-07-14 09:33:59 +02:00
linkmauve
d5950a8890
refactor: fix variable name typos ( #8267 )
2026-07-10 20:53:52 +02:00
bfd4ddf597
docs: correct spelling typos in comments and doc strings ( #8263 )
...
Fix several spelling errors found in comments and documentation:
- mulithreading -> multithreading (tcp_shutdown.rs)
- succeded -> succeeded (signal/windows/sys.rs)
- implementor/implementors -> implementer/implementers (multiple files)
Co-authored-by: maxtaran2010 <[email protected] >
Co-authored-by: Claude Sonnet 4.6 <[email protected] >
Co-authored-by: Alice Ryhl <[email protected] >
2026-07-10 11:03:18 +00:00
Minh Vu
962420a4f3
codec: document UdpFramed decoder errors ( #8248 )
2026-07-06 13:44:17 +02:00
Matteo Monti
dba1f20585
sync: implement cancellation token getter for drop guard ( #8226 )
2026-06-24 15:16:23 +02: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
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
Timo and Martin Tzvetanov Grigorov
02ff0833e0
sync: implement PartialEq and Eq for CancellationToken ( #8110 )
...
Co-authored-by: Martin Tzvetanov Grigorov <[email protected] >
2026-05-05 13:46:35 +02:00
Evan Cameron
8c980ea75a
io: add write_all_vectored to tokio-util ( #7768 )
2026-02-27 11:16:43 +01:00
cui
96f64f4ee2
codec: fix is_readable should be buffer empty or not ( #7912 )
2026-02-16 17:33:35 +01:00
Tim Vilgot Mikael Fredenberg
9dacb1c53e
tokio: replace some futures with poll_fn ( #7895 )
2026-02-09 13:30:31 +01:00
Alex H
8167f87137
task: add AbortOnDrop ( #7855 )
2026-02-09 13:23:46 +01:00
Mattia Pitossi
159f70bc55
ci: fix ambiguity issue during tokio releases ( #7848 )
2026-02-09 11:04:59 +01:00
Mattia Pitossi
8fd44d9bdc
docs: fix link to tokio::select! ( #7867 )
2026-01-20 23:05:01 +02:00
Mattia Pitossi and Martin Grigorov
bf185b61ff
docs: fix broken links of select! ( #7860 )
...
Co-authored-by: Martin Grigorov <[email protected] >
2026-01-17 10:10:59 -08:00
Mattia Pitossi
27d1383581
deps: bump tokio to 1.47.0 ( #7862 )
2026-01-17 10:06:00 -08:00
Alice Ryhl
9cc02cc88d
chore: prepare tokio-util 0.7.18 ( #7829 )
2026-01-04 13:53:14 +01:00
Qi
064181f386
io: add tokio_util::io::simplex ( #7565 )
...
Signed-off-by: ADD-SP <[email protected] >
2025-12-18 20:35:01 +08:00
Owen Griffiths and Qi
0ec0a85461
io: document the default capacity of the ReaderStream ( #7147 )
...
Signed-off-by: ADD-SP <[email protected] >
Co-authored-by: Qi <[email protected] >
2025-12-12 23:22:17 +08:00
Mattia Pitossi
ab3996a6dd
time: update outdated docs of Wheel ( #7749 )
2025-11-29 18:06:33 +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
Benjamin Ran and Benjamin Ran
d84a9e9af3
util: enable loom tests ( #7644 )
...
Co-authored-by: Benjamin Ran <[email protected] >
2025-11-06 19:20:08 +08: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 <[email protected] >
2025-11-04 11:15:29 +01:00
Qi
454fd8c347
chore: prepare tokio-util v0.7.17 ( #7719 )
...
Signed-off-by: ADD-SP <[email protected] >
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
Qi
b8318fa172
task: add tests for spawn_local in panic scenarios ( #7694 )
...
Signed-off-by: ADD-SP <[email protected] >
2025-10-20 20:25:00 +08: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
c1fa25f300
task: clarify the behavior of several spawn_local methods ( #7669 )
2025-10-12 10:46:23 +08:00
Alice Ryhl
5b4cbbc39e
tokio: raise MSRV to 1.71 ( #7658 )
2025-10-02 11:14:17 +02:00
Tudyx
d0953e833d
task: simplify the example of TaskTracker ( #7657 )
2025-10-02 15:07:28 +08:00
Alice Ryhl
95edd8515e
docs: fix some docs links ( #7654 )
2025-09-30 12:35:46 +00:00
Lucas Black
8ccf2fb92e
ci: unfreeze wasm tests from rustc 1.88.0 ( #7537 )
2025-09-26 21:29:01 +08:00
Nikolai Kuklin
bce76c515f
task: add try_join_next and try_join_next_with_id on JoinQueue ( #7636 )
2025-09-25 20:31:31 +08:00
Nikolai Kuklin
1b98d5ad85
task: add tokio_util::task::JoinQueue ( #7590 )
2025-09-20 15:38:59 +08:00
Martin Grigorov
86de2e306b
util: fix pending_only_on_first_poll_with_cancellation_token_owned_test to use an owned cancellation token ( #7613 )
...
The name of the test suggests that it should test the
with_cancellation_token_owned() extension method
2025-09-15 16:22:42 +09:00
Martin Grigorov
7a0ca807be
time: add #[track_caller] to FutureExt::timeout ( #7588 )
...
Signed-off-by: Martin Tzvetanov Grigorov <[email protected] >
2025-09-11 09:18:40 +02:00
Martin Grigorov
de978c47e0
task: remove duplicated code in JoinMap::remove_by_id ( #7603 )
2025-09-10 22:16:15 +08:00