Bump tokio from 1.20.1 to 1.22.0
Bumps tokio from 1.20.1 to 1.22.0.
Release notes
Sourced from tokio's releases.
Tokio v1.22.0
Added
- runtime: add
Handle::runtime_flavor
(#5138)- sync: add
Mutex::blocking_lock_owned
(#5130)- sync: add
Semaphore::MAX_PERMITS
(#5144)- sync: add
merge()
to semaphore permits (#4948)- sync: add
mpsc::WeakUnboundedSender
(#5189)Added (unstable)
- process: add
Command::process_group
(#5114)- runtime: export metrics about the blocking thread pool (#5161)
- task: add
task::id()
andtask::try_id()
(#5171)Fixed
- macros: don't take ownership of futures in macros (#5087)
- runtime: fix Stacked Borrows violation in
LocalOwnedTasks
(#5099)- runtime: mitigate ABA with 32-bit queue indices when possible (#5042)
- task: wake local tasks to the local queue when woken by the same thread (#5095)
- time: panic in release mode when
mark_pending
called illegally (#5093)- runtime: fix typo in expect message (#5169)
- runtime: fix
unsync_load
on atomic types (#5175)- task: elaborate safety comments in task deallocation (#5172)
- runtime: fix
LocalSet
drop in thread local (#5179)- net: remove libc type leakage in a public API (#5191)
- runtime: update the alignment of
CachePadded
(#5106)Changed
- io: make
tokio::io::copy
continue filling the buffer when writer stalls (#5066)- runtime: remove
coop::budget
fromLocalSet::run_until
(#5155)- sync: make
Notify
panic safe (#5154)Documented
- io: fix doc for
write_i8
to use signed integers (#5040)- net: fix doc typos for TCP and UDP
set_tos
methods (#5073)- net: fix function name in
UdpSocket::recv
documentation (#5150)- sync: typo in
TryLockError
forRwLock::try_write
(#5160)- task: document that spawned tasks execute immediately (#5117)
- time: document return type of
timeout
(#5118)- time: document that
timeout
checks only before poll (#5126)- sync: specify return type of
oneshot::Receiver
in docs (#5198)Internal changes
- runtime: use const
Mutex::new
for globals (#5061)- runtime: remove
Option
aroundmio::Events
in io driver (#5078)- runtime: remove a conditional compilation clause (#5104)
- runtime: remove a reference to internal time handle (#5107)
- runtime: misc time driver cleanup (#5120)
- runtime: move signal driver to runtime module (#5121)
- runtime: signal driver now uses I/O driver directly (#5125)
... (truncated)
Commits
-
bf31759
chore: prepare Tokio v1.22.0 (#5203) -
d658262
ci: remove libc types from external types allow list (#5197) -
1cbbcc9
sync: specify return type ofoneshot::Receiver
in docs (#5198) -
a668020
net: remove libc type leakage in a public API (#5191) -
01f0193
chore: fix compilation on master (#5190) -
71bd49e
task: addtask::id()
andtask::try_id()
(#5171) -
582d512
sync: addmpsc::WeakUnboundedSender
(#5189) -
b7812c8
rt: fixLocalSet
drop in thread local (#5179) -
9e3fb16
rt: moveCoreStage
methods toCore
(#5182) -
53cba02
rt: fix accidental unsetting of current handle (#5178) - Additional commits viewable in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
$dependabot rebase
will rebase this MR -
$dependabot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts
Merge request reports
Activity
Filter activity
Please register or sign in to reply