4021 Commits

Author SHA1 Message Date
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
Alice Ryhl
e0d1293fac
ci: add instructions that explain how to fix spellcheck errors (#7016) 2024-12-05 12:28:27 +01:00
Rain
480c010b01
signal: add SignalKind::info on illumos (#6995) 2024-12-05 10:18:45 +01:00
Alice Ryhl
c032ea0203
ci: detect trailing whitespace (#7013) 2024-12-04 17:23:13 +01:00
Alice Ryhl
0b31c2f73d
chore: prepare tokio-util v0.7.13 (#7012) tokio-util-0.7.13 2024-12-04 12:49:55 +01:00
Zettroke
129f9fc0c8
codec: fix incorrect handling of invalid utf-8 in LinesCodec::decode_eof (#7011) 2024-12-04 10:18:14 +00:00
Hayden Stainsby
b5c227d51f
tracing: move tracing instrumentation tests into tokio tests (#7007)
In #6112, tests for the tracing instrumentation were introduced. They
had to live in their own test crate under `tokio/tests` because the
`tracing-mock` crate that the tests use had not yet been published to
crates.io.

Now `tracing-mock` has been published to crates.io and so the separate
test crate and separate job to run it are no longer necessary. The
tracing instrumentation tests can be placed in with the other
integration tests in the `tokio` crate.

The tests themselves have also been updated to match the changes in the
`tracing-mock` API since the version which was being used.
2024-12-04 07:47:48 +01:00
Alice Ryhl
dcae2b9eb8
ci: unfreeze FreeBSD from rustc 1.81 (#7009) 2024-12-03 14:33:28 +00:00
Alice Ryhl
bb9d57017e
chore: prepare Tokio v1.42.0 (#7005) tokio-1.42.0 2024-12-03 14:48:39 +01:00
leopardracer
af9c683d52
tests: fix typo in build test instructions (#7004) 2024-12-03 13:11:36 +00:00
Alice Ryhl
4bc5a1a058
ci: allow Unicode-3.0 license for unicode-ident (#7006)
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
2024-12-03 13:57:31 +01:00
quininer
f8948ea021
runtime: do not defer yield_now inside block_in_place (#6999) 2024-12-02 13:52:00 +01:00
David Herberth
bce9780dd3
time: use array::from_fn instead of manually creating array (#7000) 2024-12-01 19:54:30 +01:00
Alice Ryhl
38151f30cb
readme: unlist 1.32.x as LTS release (#6997) 2024-11-29 13:16:35 +00:00
Alice Ryhl
5dda72d338
ci: pin valgrind to rustc 1.82 (#6998) 2024-11-29 21:50:01 +09:00
Nur
c07257f99f
io: simplify io readiness logic (#6966) 2024-11-21 17:31:39 +01:00
Taliyah Webb
d08578fc9a
time: fix a typo in Instant docs (#6982) 2024-11-20 12:02:55 +00:00
tiif
4047d7962a
miri: add annotations for tests with miri ignore (#6981) 2024-11-20 11:44:28 +01:00
Maarten de Vries
cbdceb91ac
io: add AsyncFd::try_io() and try_io_mut() (#6967) 2024-11-19 17:55:54 +01:00
Hamir Mahal
d4178cf349
tokio: avoid positional fmt params when possible (#6978) 2024-11-18 13:50:58 +01:00
tiif
2f899144ed
io: avoid ptr->ref->ptr roundtrip in RegistrationSet (#6929) 2024-11-16 11:16:09 +01:00
tiif
6255598baa
docs: update miri test command in CONTRIBUTING.md (#6976) 2024-11-15 17:29:11 +01:00
Jonas Fassbender
772e0ca8a6
docs: fix documentation build on Windows (#6945) 2024-11-14 01:28:55 +09:00
Michael_Liu
3b677d1fde
net: fix docs discription in unix module (#6791) 2024-11-11 14:14:46 +00:00
Alice Ryhl
bb7ca7507b
chore: prepare Tokio v1.41.1 (#6959)
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
tokio-1.41.1
2024-11-07 11:56:09 +01:00
Russell Cohen
4a34b77af5
metrics: fix bug with wrong number of buckets for the histogram (#6957) 2024-11-07 08:45:36 +01:00
DaniPopes
8897885425
docs: fix mismatched backticks in CONTRIBUTING.md (#6951)
It's rendered correctly at least on GitHub, but syntax highlighting fails after that point.
2024-11-04 10:29:57 +00:00
Taiki Endo
0dbdd196b6
ci: update cargo-check-external-types to 0.1.13 (#6949) 2024-11-02 16:50:00 +09:00
Joseph Perez
94e55c092b
net: fix typo in TcpStream internal comment (#6944) 2024-10-29 09:31:39 +00:00
Jonas Fassbender
4468f27c31
metrics: fixed flaky worker_steal_count test (#6932) 2024-10-28 09:26:45 +01:00
Jonas Fassbender
070a825999
metrics: removed race condition from global_queue_depth_multi_thread test (#6936) 2024-10-27 19:36:18 +01:00
Jonas Fassbender
946401c345
net: display net requirement for net::UdpSocket in docs (#6938) 2024-10-26 12:37:39 +02:00
Taiki Endo
0c01fd23b4
ci: use patched version of cargo-check-external-types to fix CI failure (#6937) 2024-10-26 10:27:59 +02:00
Alice Ryhl
ebe241647e
ci: use cargo deny (#6931) 2024-10-23 18:48:07 +02:00
Motoyuki Kimura
01e04daaa1
chore: prepare Tokio v1.41.0 (#6917) tokio-1.41.0 2024-10-22 11:22:33 +02:00
Josh McKinney
92ccadeb3c
runtime: fix stability feature flags for docs (#6909) 2024-10-22 11:19:57 +02:00
Russell Cohen
fbfeb9a68a
metrics: rename *_poll_count_* to *_poll_time_* (#6924)
A consistent bit of feedback I've heard is that the `poll_count_histogram` name is a little confusing since the value customers actually get out of it is `poll_times`.

This renames all public APIs from `poll_count` to `poll_time`. The existing APIs were deprecated with one exception: the newly added `poll_count_histogram_configuration` which hasn't been released yet was simply renamed.
2024-10-22 09:21:07 +02:00
Russell Cohen
da745ff335
metrics: add H2 Histogram option to improve histogram granularity (#6897) 2024-10-21 14:05:45 +02:00
Jonas Fassbender
ce1c74f1cc
metrics: fix deadlock in injection_queue_depth_multi_thread test (#6916) 2024-10-21 10:04:39 +02:00
Motoyuki Kimura
28c9a14a2e
metrics: rename injection_queue_depth to global_queue_depth (#6918) 2024-10-18 19:34:06 +00:00
Alice Ryhl
32e0b4325f
ci: freeze FreeBSD and wasm-unknown-unknown on rustc 1.81 (#6911)
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
2024-10-18 13:14:17 +02:00
Rafael Bachmann
1656d8e231
sync: add mpsc::Receiver::blocking_recv_many (#6867)
Fixes: #6865
Co-authored-by: Rafael Bachmann <rafael.bachmann@paessler.com>
2024-10-17 11:02:12 +02:00
Russell Cohen
c9e998e4b3
ci: print the correct sort order of the dictionary on failure (#6905) 2024-10-17 10:45:38 +02:00
Noah Kennedy
512e9decfb
rt: add LocalRuntime (#6808)
This change adds LocalRuntime, a new unstable runtime type which cannot be transferred across thread boundaries and supports spawn_local when called from the thread which owns the runtime.

The initial set of docs for this are iffy. Documentation is absent right now at the module level, with the docs for the LocalRuntime struct itself being somewhat duplicative of those for the `Runtime` type. This can be addressed later as stabilization nears.

This API has a few interesting implementation details:
- because it was considered beneficial to reuse the same Handle as the normal runtime, it is possible to call spawn_local from a runtime context while on a different thread from the one which drives the runtime and owns it. This forces us to check the thread ID before attempting a local spawn.
- An empty LocalOptions struct is passed into the build_local method in order to build the runtime. This will eventually have stuff in it like hooks.

Relates to #6739.
2024-10-12 10:39:23 -05:00