M.Amin Rayej
0a15768380
io: clean up buffer casts ( #7142 )
2025-02-10 19:57:25 +03:30
Motoyuki Kimura
eb1a2ee990
net: rename the argument for send_to
( #7146 )
2025-02-08 15:05:05 +03:30
M.Amin Rayej
8713d39228
process: add example for reading Child
stdout ( #7141 )
2025-02-08 13:31:02 +03:30
Florian Gäbler
7e27911911
fs: align symlink and hardlink parameter names with std ( #7143 )
2025-02-07 23:40:15 +03:30
Alice Ryhl
4b3da20c98
fs: empty reads on File should not start a background read ( #7139 )
2025-02-06 01:37:29 +03:30
Jason Gin
b8ac94ed70
rt: add before and after task poll callbacks ( #7120 )
...
Add callbacks for poll start and stop, enabling users to instrument these points
in the runtime's life cycle.
2025-01-30 21:14:00 +00:00
Oliver Wangler
5086e56dcb
io: implemented get_ref
and get_mut
for SyncIoBridge
( #7128 )
...
Co-authored-by: ow <oliver.wangler@helsing.ai>
2025-01-28 15:28:07 +01:00
Ariel Ben-Yehuda
2671ffb55b
tracing: make the task tracing API unstable piblkc ( #6972 )
...
* make self-tracing public
* address review comments
* try to fix doctest
* adjust imports to fit standard
* more documentation
---------
Co-authored-by: Ariel Ben-Yehuda <arielby@amazon.com>
2025-01-27 13:09:23 -08:00
Taiki Endo
7f09959b0a
chore: use [lints] to address unexpected_cfgs lint ( #7124 )
2025-01-25 17:46:21 +01:00
Taiki Endo
fb7dec0e95
ci: test AArch64/Armv7hf Linux on ubuntu-22.04-arm runner ( #7123 )
2025-01-25 11:17:37 +01:00
M.Amin Rayej
ee19b0ed73
net: fix warnings when building the docs ( #7113 )
2025-01-22 11:48:43 +01:00
Josh McKinney
c081dfe3ce
macros: characterization tests for ? operator fail ( #7069 )
...
When a `?` operator is used in a tokio entry point function (wrapped in
`#[tokio::main]`), which has a Option or Result return type, but where
the function does not actually return that type correctly, currently the
compiler returns two errors instead of just one. The first of which is
incorrect and only exists due to the macro expanding to an async block.
```
cannot use the `?` operator in an async block that returns `()`
```
This commit is a characterization test for this behavior to help show
when it's fixed (or even changed for better / worse)
2025-01-22 10:55:00 +01:00
M.Amin Rayej
21a13f9eea
runtime: clean up magic number in registration set ( #7112 )
2025-01-21 14:40:32 +01:00
Motoyuki Kimura
a82bdeebe9
sync: handle panic during mpsc drop ( #7094 )
2025-01-13 18:36:51 +01:00
Evan Rittenhouse
435e39001b
sync: fix sync::broadcast::Sender<T>::closed()
doctest ( #7090 )
...
The test's previous iteration could sometimes flake since we didn't
await the completion of the first task. Since the tasks only existed to
`move` the relevant `rx`'s in, to force a drop, we can omit them
entirely and drop the `rx`s via `drop()`. This prevents any
scheduling-related flakes.
2025-01-12 12:33:07 +01:00
Marshall Lee
dabae570b1
ci: add spellcheck.dic validation ( #7062 )
2025-01-10 13:39:23 +01:00
29
6bd3be2e45
process: add Command::get_kill_on_drop()
( #7086 )
2025-01-10 12:35:13 +01:00
Alice Ryhl
6fc1a8c8da
ci: fix ci error about wasm32-wasip1 ( #7085 )
2025-01-10 18:59:35 +09:00
Evan Rittenhouse
5c8cd33820
sync: add broadcast::Sender::closed
( #6685 )
2025-01-09 16:37:49 +01:00
Alice Ryhl
5f3296df77
chore: prepare Tokio v1.43.0 ( #7079 )
tokio-1.43.0
2025-01-08 16:57:25 +01:00
Alice Ryhl
cc974a646b
chore: prepare tokio-macros v2.5.0 ( #7078 )
tokio-macros-2.5.0
2025-01-08 16:56:31 +01:00
Russell Cohen
15495fd883
metrics: improve flexibility of H2Histogram Configuration ( #6963 )
2025-01-08 15:00:34 +01:00
Paolo Barbolini
ad4183412a
io: don't call set_len
before initializing vector in Blocking
( #7054 )
2025-01-08 10:05:58 +00:00
Alice Ryhl
bd3e857737
runtime: move is_join_waker_set
assertion in unset_waker
( #7072 )
2025-01-06 22:19:53 +01:00
Thomas Schilling
15f73666f1
runtime: fix LocalRuntime
doc links ( #7074 )
2025-01-06 14:49:42 +00:00
Alice Ryhl
fd2048dad1
ci: split miri jobs into unit and integration tests ( #7071 )
2025-01-06 15:39:06 +01:00
Alice Ryhl
e8f39157b6
chore: use unsync loads for unsync_load
( #7073 )
...
This reverts #6203 and #6179 .
2025-01-06 14:16:15 +01:00
Aeon
67f127769b
net: fix ambiguity in TcpStream::try_write_vectored
docs ( #7067 )
2025-01-06 11:16:58 +01:00
philomathic_life
463502cbaf
io: clarify ReadBuf::uninit
allows initialized buffers as well ( #7053 )
2025-01-06 11:16:15 +01:00
Sebastian Urban
a1520f5525
runtime: fix thread parking on WebAssembly ( #7041 )
...
On WebAssembly the notification state was not checked
before sleeping and thus wrongfully ignored.
Additionally this refines the check whether threads are
available on a particular WebAssembly target.
2025-01-06 11:14:28 +01:00
Al Liu
acd6627d6d
net: add UdpSocket::peek
methods ( #7068 )
2025-01-06 11:12:08 +01:00
Aeon
2353806daf
io: change AsyncReadExt::read
docs formatting ( #7066 )
2025-01-04 21:30:59 +01:00
tiif
7be2bfa744
net: fix typo in miri comment ( #7063 )
2025-01-03 10:11:05 +00:00
Andrea Ciprietti
e066431c94
sync: extend documentation for watch::Receiver::wait_for
( #7038 )
2025-01-02 21:33:56 +01:00
tiif
2052938a9f
ci: run doc tests with miri ( #7060 )
2025-01-02 13:14:30 +00:00
Paolo Barbolini
b3ff911c38
io: use Buf::put_bytes
in Repeat
read impl ( #7055 )
2024-12-30 13:44:55 +01:00
Fancy2209
9d42b977df
misc: get haiku working
2024-12-30 03:36:40 -06:00
Timo
970d880ceb
task: drop the join waker of a task eagerly ( #6986 )
2024-12-29 18:17:02 +01:00
Felipe Lima
4ca13e6015
sync: fix typos in OnceCell
docs ( #7047 )
2024-12-21 14:09:38 +01:00
CMelz
b54b9d4338
codec: fix typo in API documentation ( #7044 )
2024-12-18 13:33:21 +01:00
Rafael Bachmann
10e23d1c62
docs: replace match guards by pattern matching in examples ( #7035 )
2024-12-15 12:01:37 +01:00
Rain
aa7e0cef72
signal: add support for realtime signals on illumos ( #7029 )
...
The API was added in libc 0.2.168.
Also added a test for realtime signals.
2024-12-13 22:32:34 -06:00
Noisy
bfa8cadaa0
chore: spelling and date format Corrections ( #7018 )
2024-12-10 13:16:41 +01:00
Josh McKinney
6d15c6cacb
stream: add examples to wrapper types ( #7024 )
2024-12-10 11:14:18 +00:00
Motoyuki Kimura
79a2afae9f
util: enable Either
to use underlying AsyncWrite
implementation ( #7025 )
2024-12-10 01:52:16 +09:00
Ariel Ben-Yehuda
48e07a6d10
taskdump: add accessor methods for backtrace ( #6975 )
2024-12-09 16:16:09 +09:00
tiif
eb72ddde3b
task: run spawn_pinned
tests with miri ( #7023 )
2024-12-08 12:45:16 +01:00
29
dc16b12edb
process: add Command::into_std()
( #7014 )
2024-12-07 12:56:02 +01:00
Alice Ryhl
67355c6d23
chore: prepare tokio-stream v0.1.17 ( #7020 )
tokio-stream-0.1.17
2024-12-06 11:19:06 +01:00
Alice Ryhl
405d746d38
signal: remove oneshot channels from tests ( #7015 )
2024-12-05 08:36:45 -08:00