288 Commits

Author SHA1 Message Date
Motoyuki Kimura
09bc9a05e4
chore: use boxed slice if possible (#6858) 2024-09-25 19:45:28 +09:00
Eduardo Sánchez Muñoz
12b2567b95
chore: use poll_fn from std (#6810) 2024-09-05 09:54:06 +02:00
Timo
35f244ad09
chore: prepare tokio-util v0.7.12 (#6823) 2024-09-05 00:22:11 +02:00
Sarek Høverstad Skotåm
1166ecc2ac
config: enable full for tokio-util in the playground (#6818) 2024-09-03 20:34:20 +00:00
Havish Maka
11f66f43a0
chore: replace ready! with std::task::ready! (#6804) 2024-08-29 22:02:56 +02:00
Yotam Ofek
c9fad08466
codec: fix typo in the docs for Encoder::Error (#6800) 2024-08-27 09:08:22 +02:00
Rafael Bachmann
1ac8dff213
task: add AbortOnDropHandle type (#6786) 2024-08-20 10:58:04 +02:00
dpl
70569bd009
task: fix typo in TaskTracker docs (#6792) 2024-08-18 15:09:19 +02:00
Vrtgs
17819062e2
tokio: update code according to new MSRV (#6764) 2024-08-11 11:55:22 +02:00
Adam Cigánek
1e798d26ed
time: wake DelayQueue when removing last item (#6752) 2024-08-06 16:22:31 +02:00
Alice Ryhl
15cd5146d4
chore: increase MSRV to 1.70 (#6645) 2024-07-22 18:01:27 +00:00
Hai-Hsin
06582776a5
codec: fix length_delimited docs examples (#6638) 2024-06-23 13:52:51 +09:00
Eric Seppanen
ed4ddf443d
io: fix trait bounds on impl Sink for StreamReader (#6647)
This impl had a bound on `StreamReader<S, E>`; this is incorrect
because:
- The second generic parameter to `StreamReader` is not an error type;
  it's a buffer type.
- The `Stream` error type in `StreamReader` should not need to be the
  same as the `Sink` error type.

This "passthrough" `Sink` impl was effectively unusable because it
required the `Sink` error type be the same as the `StreamReader` buffer
type.

Resolve this by allowing the `StreamReader` buffer to be anything in
this impl.
2024-06-21 15:00:33 +02:00
Timo
53ea44bfb9
sync: add CancellationToken::run_until_cancelled (#6618) 2024-06-13 10:58:45 +02:00
Josh McKinney
3a6fdc0568
license: fix formatting and remove year in licenses (#6451) 2024-05-26 09:29:27 +00:00
Michael Scholten
daa89017da
ci: fix new clippy warnings (#6569) 2024-05-18 10:09:37 +02:00
Alice Ryhl
2a0df5fb05
ci: bump nightly to nightly-2024-05-05 (#6538) 2024-05-05 15:43:11 +00:00
Alice Ryhl
b652a4e64c
util: no default features for hashbrown (#6541) 2024-05-05 17:18:49 +02:00
Alice Ryhl
cdf9d997dc
chore: prepare tokio-util v0.7.11 (#6535) 2024-05-04 22:32:31 +02:00
LongYinan
9ed595767d
wasm: support rt-multi-thread with wasm32-wasi-preview1-threads (#6510) 2024-04-24 09:45:54 +02:00
Rafael Bachmann
be9328da75
chore: fix clippy warnings (#6466) 2024-04-08 20:44:18 +09:00
Quentin Perez
01ed7b55f7
net: add Apple visionOS support (#6465) 2024-04-06 18:09:43 +02:00
Jens Reidel
d298049299
codec: make tracing feature optional for codecs (#6434)
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2024-03-30 18:20:05 +01:00
Timo
1fcb77db34
io: add T: ?Sized to tokio_util::io::poll_read_buf (#6441) 2024-03-30 12:13:06 +00:00
Siech0
3936ebdfe4
chore: update CI to clippy 1.77 (#6443) 2024-03-30 15:49:42 +09:00
M.Amin Rayej
deff2524c3
util: document cancel safety of SinkExt::send and StreamExt::next (#6417) 2024-03-25 01:53:01 +03:30
M.Amin Rayej
8342e4b524
util: assert compatibility between LengthDelimitedCodec options (#6414) 2024-03-24 01:12:24 +03:30
Vincent Palancher
c9e75785c8
sync: remove 'static bound on impl Sink for PollSender (#6397)
In PR #5665, the `'static` bound has been removed on values sent into
`PollSender`. One of this bound was remaining on the `PollSender`
implementation of `Sink`. This patch removes it and adds some tests on
the `Sink` interface for `PollSender`.
2024-03-14 10:23:59 +01:00
M.Amin Rayej
e25d661e08
util: add examples for FramedRead and FramedWrite (#6310) 2024-02-11 02:38:44 +03:30
Patrick McGleenon
e392c4ff1e
chore: update CI to clippy 1.76 (#6334)
Co-authored-by: Rafael Bachmann <rafael.bachmann.93@gmail.com>
2024-02-10 10:45:40 +01:00
Owen Leung
131e7b4e49
ci: add spellchecking (#6297) 2024-01-29 10:53:43 +01:00
M.Amin Rayej
58edfc61ab
ci: verify that tests work with panic=abort (#6283) 2024-01-16 16:10:23 +01:00
Evan Rittenhouse
bfd7b08067
time: add FutureExt::timeout (#6276) 2024-01-16 09:51:38 +01:00
Taiki Endo
84c5674c60
ci: update clippy version to 1.75 (#6273) 2024-01-07 02:33:37 +09:00
Alice Ryhl
c7e7f203ee
chore: typographic improvements (#6262) 2024-01-03 18:01:27 +00:00
Eddy Oyieko
53ad102cf0
util: implement Sink for Either (#6239) 2023-12-22 18:23:04 +01:00
simlay
4c33ed33f6
net: add Apple watchOS support (#6176) 2023-11-29 21:16:48 +01:00
aliu
a8e8fa6681
time: add DelayQueue::deadline (#6163) 2023-11-23 18:20:26 +01:00
Alice Ryhl
944024e8eb
chore: update rust-version to 1.63 in all crates (#6126) 2023-11-04 09:07:22 +01:00
Fritz Rehde
593dbf55d1
docs: fix typos (#6118) 2023-10-30 15:17:46 +01:00
Alice Ryhl
503fad7908
chore: prepare tokio-util v0.7.10 (#6104) 2023-10-25 12:05:47 +02:00
Alice Ryhl
58acb56a17
ci: update nightly to 2023-10-21 (#6103) 2023-10-24 14:15:25 +00:00
Friedel Ziegelmayer
d22c549d97
deps: update hashbrown to 0.14 (#6102) 2023-10-24 12:27:39 +02:00
Alice Ryhl
70410836ae
task: add tokio_util::sync::TaskTracker (#6033) 2023-10-22 14:35:19 +00:00
Rafael Bachmann
6871084629
chore: clippy and doc fixes (#6081) 2023-10-16 17:37:51 +02:00
Andrea Stedile
f1e41a4ad4
task: add JoinMap::keys (#6046)
Co-authored-by: Alice Ryhl <aliceryhl@google.com>
2023-10-15 16:47:41 +02:00
David Yamnitsky
4557451257
io: implement Seek for SyncIoBridge (#6058) 2023-10-07 14:43:35 +02:00
Luís Cruz
52b29b33bb
net: add apple tvos support (#6045) 2023-10-04 18:48:53 +02:00
Weijia Jiang
707fb4d0df
tokio: remove wildcard in match patterns (#5970) 2023-09-23 22:05:44 +02:00
Chris Constantine
3f6165d82e
chore: prepare tokio-util v0.7.9 (#6019) 2023-09-20 19:30:12 +02:00