Noah Kennedy
9931901d5c
chore: list 1.25.x as LTS release ( #5524 )
2023-03-01 23:42:18 +00:00
Noah Kennedy
a377240bbf
chore: prepare for Tokio v1.26.0 release ( #5521 )
...
# 1.26.0 (March 1st, 2023)
### Fixed
- macros: fix empty `join!` and `try_join!` ([#5504 ])
- sync: don't leak tracing spans in mutex guards ([#5469 ])
- sync: drop wakers after unlocking the mutex in Notify ([#5471 ])
- sync: drop wakers outside lock in semaphore ([#5475 ])
### Added
- fs: add `fs::try_exists` ([#4299 ])
- net: add types for named unix pipes ([#5351 ])
- sync: add `MappedOwnedMutexGuard` ([#5474 ])
### Changed
- chore: update windows-sys to 0.45 ([#5386 ])
- net: use Message Read Mode for named pipes ([#5350 ])
- sync: mark lock guards with `#[clippy::has_significant_drop]` ([#5422 ])
- sync: reduce contention in watch channel ([#5464 ])
- time: remove cache padding in timer entries ([#5468 ])
- time: Improve `Instant::now()` perf with test-util ([#5513 ])
### Internal Changes
- io: use `poll_fn` in `copy_bidirectional` ([#5486 ])
- net: refactor named pipe builders to not use bitfields ([#5477 ])
- rt: remove Arc from Clock ([#5434 ])
- sync: make `notify_waiters` calls atomic ([#5458 ])
- time: don't store deadline twice in sleep entries ([#5410 ])
### Unstable
- metrics: add a new metric for budget exhaustion yields ([#5517 ])
### Documented
- io: improve AsyncFd example ([#5481 ])
- runtime: document the nature of the main future ([#5494 ])
- runtime: remove extra period in docs ([#5511 ])
- signal: updated Documentation for Signals ([#5459 ])
- sync: add doc aliases for `blocking_*` methods ([#5448 ])
- sync: fix docs for Send/Sync bounds in broadcast ([#5480 ])
- sync: document drop behavior for channels ([#5497 ])
- task: clarify what happens to spawned work during runtime shutdown ([#5394 ])
- task: clarify `process::Command` docs ([#5413 ])
- task: fix wording with 'unsend' ([#5452 ])
- time: document immediate completion guarantee for timeouts ([#5509 ])
- tokio: document supported platforms ([#5483 ])
[#4299 ]: https://github.com/tokio-rs/tokio/pull/4299
[#5350 ]: https://github.com/tokio-rs/tokio/pull/5350
[#5351 ]: https://github.com/tokio-rs/tokio/pull/5351
[#5386 ]: https://github.com/tokio-rs/tokio/pull/5386
[#5394 ]: https://github.com/tokio-rs/tokio/pull/5394
[#5410 ]: https://github.com/tokio-rs/tokio/pull/5410
[#5413 ]: https://github.com/tokio-rs/tokio/pull/5413
[#5422 ]: https://github.com/tokio-rs/tokio/pull/5422
[#5434 ]: https://github.com/tokio-rs/tokio/pull/5434
[#5448 ]: https://github.com/tokio-rs/tokio/pull/5448
[#5452 ]: https://github.com/tokio-rs/tokio/pull/5452
[#5458 ]: https://github.com/tokio-rs/tokio/pull/5458
[#5459 ]: https://github.com/tokio-rs/tokio/pull/5459
[#5464 ]: https://github.com/tokio-rs/tokio/pull/5464
[#5468 ]: https://github.com/tokio-rs/tokio/pull/5468
[#5469 ]: https://github.com/tokio-rs/tokio/pull/5469
[#5471 ]: https://github.com/tokio-rs/tokio/pull/5471
[#5474 ]: https://github.com/tokio-rs/tokio/pull/5474
[#5475 ]: https://github.com/tokio-rs/tokio/pull/5475
[#5477 ]: https://github.com/tokio-rs/tokio/pull/5477
[#5480 ]: https://github.com/tokio-rs/tokio/pull/5480
[#5481 ]: https://github.com/tokio-rs/tokio/pull/5481
[#5483 ]: https://github.com/tokio-rs/tokio/pull/5483
[#5486 ]: https://github.com/tokio-rs/tokio/pull/5486
[#5494 ]: https://github.com/tokio-rs/tokio/pull/5494
[#5497 ]: https://github.com/tokio-rs/tokio/pull/5497
[#5504 ]: https://github.com/tokio-rs/tokio/pull/5504
[#5509 ]: https://github.com/tokio-rs/tokio/pull/5509
[#5511 ]: https://github.com/tokio-rs/tokio/pull/5511
[#5513 ]: https://github.com/tokio-rs/tokio/pull/5513
[#5517 ]: https://github.com/tokio-rs/tokio/pull/5517
2023-03-01 22:09:48 +00:00
Noah Kennedy
52da177dea
metrics: add a new metric for budget exhaustion yields ( #5517 )
2023-03-01 21:25:35 +01:00
Noah Kennedy
c2612b446f
io: reduce syscalls in poll_write ( #4970 )
...
This applies the same optimization made in #4840 to writes.
2022-09-02 15:23:17 -05:00
Noah Kennedy
b67b8c1398
chore: stabilize JoinSet and AbortHandle ( #4920 )
...
Closes #4535 .
This leaves the ID-related APIs unstable.
2022-08-19 17:16:11 +00:00
Noah Kennedy and Carl Lerche
28ce4eeab2
io: reduce syscalls in poll_read ( #4840 )
...
As the [epoll documentation points out](https://man7.org/linux/man-pages/man7/epoll.7.html ), a read that only partially fills a buffer is sufficient to show that the socket buffer has been drained.
We can take advantage of this by clearing readiness in this case, which seems to significantly improve performance under certain conditions.
Co-authored-by: Carl Lerche <[email protected] >
2022-07-26 05:52:30 +00:00
Noah Kennedy
5cf22e48c5
chore: allow miri to use latest nightly once again ( #4833 )
...
This reverts [#4825 ], as miri seems to be working again on the latest nightly.
I had originally thought it was this issue with rustup which was to blame, but this seems to be wrong: https://github.com/rust-lang/rustup/issues/3031
[#4825 ]: https://github.com/tokio-rs/tokio/pull/4825
2022-07-13 11:35:28 -05:00
Noah Kennedy
b343767725
chore: prepare Tokio v1.20.0 ( #4830 )
2022-07-12 22:03:44 +00:00
Noah Kennedy
be620e913d
chore: fix ci by hard-coding nightly version for miri ( #4825 )
...
It would seem that the latest nightly is having issues, so I went with the one from yesterday (2022-7-10).
2022-07-12 02:14:27 +00:00
Noah Kennedy
d8cad13fd9
tests: alter integration tests for stdio to not use a handrolled cat implementation ( #4803 )
...
This fixes #4801 , where, as a result of https://github.com/rust-lang/rust/pull/95469 , our implementation of cat used for this test no longer works, as stdio functions on windows now can abort the process if the pipe is set to nonblocking mode.
Unfortunately in windows, setting one end of the pipe to be nonblocking makes the whole thing nonblocking, so when, in tokio::process we set the child pipes to nonblocking mode, it causes serious problems for any rust program at the other end.
Fixing this issue is for another day, but fixing the tests is for today.
2022-07-01 22:32:15 -05:00
Noah Kennedy
4ec6ba8b76
metrics: fix compilation with unstable, process, and rt ( #4682 )
...
Fixes #4681 .
2022-05-11 19:31:37 +00:00
Noah Kennedy
44cfe10ee5
chore: prepare tokio-macros 1.4.0 ( #4139 )
2021-09-29 23:30:47 +02:00