Update Rust crate tokio to 1.21 - autoclosed #6
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "renovate/tokio-1.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
1.0
->1.21
Release Notes
tokio-rs/tokio
v1.21.2
1.21.2 (September 27, 2022)
This release removes the dependency on the
once_cell
crate to restore the MSRV of 1.21.x, which is the latest minor version at the time of release. (#5048)v1.21.1
1.21.1 (September 13, 2022)
Fixed
LocalSet
Drop (#4976)v1.21.0
1.21.0 (September 2, 2022)
This release is the first release of Tokio to intentionally support WASM. The
sync,macros,io-util,rt,time
features are stabilized on WASM. Additionally the wasm32-wasi target is given unstable support for thenet
feature.Added
device
andbind_device
methods to TCP/UDP sockets (#4882)tos
andset_tos
methods to TCP and UDP sockets (#4877)ServerOptions
(#4845)mpsc::Sender::max_capacity
method (#4904)mpsc::Sender
(#4595)LocalSet::enter
(#4765)JoinSet
andAbortHandle
(#4920)track_caller
to public APIs (#4805, #4848, #4852)wasm32-wasi
target (#4716)Fixed
linked_list::Link
impls (#4841)#[must_use]
to lock guards (#4886)recv
on closed and reopened broadcast channel (#4867)Changed
File::start_seek
(#4897)poll_read
(#4840)SignalKind
methods const (#4956)Internal changes
basic_scheduler::Config
(#4935)runtime
module (#4942)Documented
AsyncSeekExt::rewind
docs (#4893)try_read()
for zero-length buffers (#4937)Builder::worker_threads
(#4849)watch::Sender::send
improved (#4959)JoinHandle
(#4901)spawn_blocking
(#4811)Interval::tick
happens immediately (#4951)Unstable
Builder::spawn_on
(#4953)task::Builder::spawn*
methods fallible (#4823)v1.20.2
1.20.2 (September 27, 2022)
This release removes the dependency on the
once_cell
crate to restore the MSRV of the 1.20.x LTS release. (#5048)v1.20.1
1.20.1 (July 25, 2022)
Fixed
v1.20.0
1.20.0 (July 12, 2022)
Added
has_changed
method towatch::Ref
(#4758)Changed
src/time/driver/wheel/stack.rs
(#4766)Fixed
Documented
Unstable
join_one
tojoin_next
(#4755)v1.19.2
1.19.2 (June 6, 2022)
This release fixes another bug in
Notified::enable
. (#4751)v1.19.1
1.19.1 (June 5, 2022)
This release fixes a bug in
Notified::enable
. (#4747)v1.19.0
1.19.0 (June 3, 2022)
Added
is_finished
method forJoinHandle
andAbortHandle
(#4709)Notified::enable
(#4705)watch::Sender::send_if_modified
(#4591)take_error
toTcpSocket
andTcpStream
(#4739)Changed
Fixed
join!
andtry_join!
(#4624)Documented
block_on
(#4729)MissedTickBehavior::Burst
(#4713)Unstable
IoDriverMetrics
(#4725)#[track_caller]
toJoinSet
/JoinMap
(#4697)Builder::{spawn_on, spawn_local_on, spawn_blocking_on}
(#4683)consume_budget
for cooperative scheduling (#4498)join_set::Builder
for configuringJoinSet
tasks (#4687)JoinSet::join_one
(#4726)v1.18.3
1.18.3 (September 27, 2022)
This release removes the dependency on the
once_cell
crate to restore the MSRV of the 1.18.x LTS release. (#5048)v1.18.2
1.18.2 (May 5, 2022)
Add missing features for the
winapi
dependency. (#4663)v1.18.1
1.18.1 (May 2, 2022)
The 1.18.0 release broke the build for targets without 64-bit atomics when building with
tokio_unstable
. This release fixes that. (#4649)v1.18.0
Compare Source
1.18.0 (April 27, 2022)
This release adds a number of new APIs in
tokio::net
,tokio::signal
, andtokio::sync
. In addition, it adds new unstable APIs totokio::task
(Id
sfor uniquely identifying a task, and
AbortHandle
for remotely cancelling atask), as well as a number of bugfixes.
Fixed
#[track_caller]
forspawn_blocking
(#4616)select
macro to process 64 branches (#4519)try_io
methods not calling Mio'stry_io
internally (#4582)Added
UdpSocket::peer_addr
(#4611)try_read_buf
method for named pipes (#4626)SignalKind
Hash
/Eq
impls andc_int
conversion (#4540)SIGRTMAX
(#4555)watch::Sender::send_modify
method (#4310)broadcast::Receiver::len
method (#4542)watch::Receiver::same_channel
method (#4581)Clone
forRecvError
types (#4560)Changed
mio
to 0.8.1 (#4582)tokio::select!
's internalutil
module (#4543)Vec::with_capacity
when building runtime (#4553)Documented
tokio_unstable
(#4524)Handle::current
's docs to mentionEnterGuard
(#4567)Signal::recv
is cancel-safe (#4634)UnboundedReceiver
close docs (#4548)Unstable
The following changes only apply when building with
--cfg tokio_unstable
:task::Id
type (#4630)AbortHandle
type for cancelling tasks in aJoinSet
(#4530],doc(cfg(...))
attributes forJoinSet
(#4531)AbortHandle
RustDoc (#4545)v1.17.0
Compare Source
1.17.0 (February 15, 2022)
This release updates the minimum supported Rust version (MSRV) to 1.49,
the
mio
dependency to v0.8, and the (optional)parking_lot
dependency to v0.12. Additionally, it contains several bug fixes, as
well as internal refactoring and performance improvements.
Fixed
sleep
with large durations (#4495)Instant
arithmetic on platformswhere
Instant::now
is not monotonic (#4461)DuplexStream
not participating in cooperative yielding(#4478)
JoinHandle
(#4430)Changed
parking_lot
dependency to v0.12.0 (#4459)mio
dependency to v0.8 (#4449)(#4480)
std::future::Ready
instead of our ownReady
future(#4271)
atomic::spin_loop_hint
withhint::spin_loop
(#4491)
Documented
tokio::process::ChildStdin
(#4479)Unstable
The following changes only apply when building with
--cfg tokio_unstable
:tracing
spans generated byspawn_local
(#4483)JoinSet
for managing sets of tasks (#4335)v1.16.1
Compare Source
1.16.1 (January 28, 2022)
This release fixes a bug in #4428 with the change #4437.
v1.16.0
Compare Source
Fixes a soundness bug in
io::Take
(#4428). The unsoundness is exposed whenleaking memory in the given
AsyncRead
implementation and then overwriting thesupplied buffer:
Also, this release includes improvements to the multi-threaded scheduler that
can increase throughput by up to 20% in some cases (#4383).
Fixed
io::Take
in edge case (#4428)File::write
results in awrite
syscall when the runtime shuts down (#4316)wait_with_output
(#4315)Send
fromparking_lot::*Guard
(#4359)Added
TcpSocket::linger()
andset_linger()
(#4324)UnwindSafe
for socket types (#4384)UnwindSafe
forJoinHandle
(#4418)watch::Receiver::has_changed()
(#4342)oneshot::Receiver::blocking_recv()
(#4334)RwLock
blocking operations (#4425)Unstable
The following changes only apply when building with
--cfg tokio_unstable
v1.15.0
Compare Source
Fixed
io::empty()
(#4300)Changed
Added
Interval::reset()
(#4248)AsyncFdReadyGuard
(#4267)Command::as_std()
(#4295)Added (unstable)
tokio::sync
types (#4302)v1.14.1
Compare Source
This release backports a bug fix from 1.16.1
Fixes a soundness bug in
io::Take
(#4428). The unsoundness is exposed whenleaking memory in the given
AsyncRead
implementation and then overwriting thesupplied buffer:
Fixed
io::Take
in edge case (#4428)v1.14.0
Compare Source
1.14.0 (November 15, 2021)
Fixed
mut
patterns inselect!
(#4211)oneshot::Sender::send
and awaiting aoneshot::Receiver
when the oneshot has been closed (#4226)AtomicWaker
panic safe (#3689)(#4213)
Added
RuntimeStats::busy_duration_total
(#4179, #4223)Changed
copy
buffer size to matchstd::io::copy
(#4209)Documented
v1.13.1
Compare Source
1.13.1 (November 15, 2021)
This release fixes a data race when sending and receiving on a
closed
oneshot
channel (RUSTSEC-2021-0124).Fixed
oneshot::Sender::send
and awaiting aoneshot::Receiver
when the oneshot has been closed (#4226)v1.13.0
Compare Source
1.13.0 (October 29, 2021)
Fixed
Notify
to clone the waker before locking its waiter list (#4129)Added
poll_{recv,send}_ready
methods toudp
anduds_datagram
(#4131)try_*
,readable
,writable
,ready
, andpeer_addr
methods to split halves (#4120)blocking_lock
toMutex
(#4130)watch::Sender::send_replace
(#3962, #4195)Debug
forMutex<T>
impl to unsizedT
(#4134)Changed
copy_bidirectional
thatpoll_write
is sensible (#4125)select!
(#4192)block_on
wakeups better (#4157)Documented
try_join!
(#4133)tokio/src/lib.rs
(#4132)Interval::tick
cancel safety (#4152)v1.12.0
Compare Source
1.12.0 (September 21, 2021)
Fixed
try_reserve
error is consistent withtry_send
(#4119)spin_loop_hint
instead ofyield_now
(#4115)SendError
field public (#4097)Added
AsyncSeekExt::rewind
(#4107)block_on
futures (#4094)try_recv
for mpsc channels (#4113)Changed
LocalSet
when using macro (#4027)Documented
poll_recv
(#4117)PollSender
implsSink
(#4110)yield_now
(#4091)v1.11.0
Compare Source
1.11.0 (August 31, 2021)
Fixed
fill_buf
by not callingpoll_fill_buf
twice (#4084)Added
watch::Sender::subscribe
(#3800)from_std
toChildStd*
(#4045)Changed
Documented
v1.10.1
Compare Source
1.10.1 (August 24, 2021)
Fixed
v1.10.0
Compare Source
1.10.0 (August 12, 2021)
Added
(read|write)_f(32|64)[_le]
methods (#4022)fill_buf
andconsume
toAsyncBufReadExt
(#3991)Child::raw_handle()
on windows (#3998)Fixed
--cfg docsrs
(#4020)io::copy
(#4001)spin_loop_hint
instead ofyield_now
in mpsc (#4037)Changes
Documented
AsyncBufReadExt
(#3997)watch::send
fails (#4021)v1.9.0
Compare Source
1.9.0 (July 19, 2021)
Added
TcpStream
(#3888)TaskLocal::scope
(#3273)Fixed
LocalSet
(#3978)Changes
OnceCell
(#3945)JoinError
(#3959)v1.8.5
Compare Source
This release backports a bug fix from 1.16.1
Fixes a soundness bug in
io::Take
(#4428). The unsoundness is exposed whenleaking memory in the given
AsyncRead
implementation and then overwriting thesupplied buffer:
Fixed
io::Take
in edge case (#4428)v1.8.4
Compare Source
1.8.4 (November 15, 2021)
This release backports a bugfix for a data race when sending and receiving on a
closed
oneshot
channel ([RUSTSEC-2021-0124]) from v1.13.1.Fixed
oneshot::Sender::send
and awaiting aoneshot::Receiver
when the oneshot has been closed (#4226)v1.8.3
Compare Source
1.8.3 (July 22, 2021)
This release backports two fixes from 1.9.0
Fixed
LocalSet
(#3978)v1.8.2
Compare Source
Fixes a missed edge case from 1.8.1.
Fixed
v1.8.1
Compare Source
Forward ports 1.5.1 fixes.
Fixed
JoinHandle::abort
(#3934)v1.8.0
Compare Source
1.8.0 (July 2, 2021)
Added
get_{ref,mut}
methods toAsyncFdReadyGuard
andAsyncFdReadyMutGuard
(#3807)BufWriter
(#3163)NamedPipe{Client,Server}
(#3866, #3899)watch::Receiver::borrow_and_update
(#3813)From<T>
forOnceCell<T>
(#3877)Added (unstable)
tokio::task::Builder
(#3881)Fixed
UnixStream
(#3898)Documented
v1.7.3
Compare Source
Fixes a missed edge case from 1.7.2.
Fixed
v1.7.2
Compare Source
Forward ports 1.5.1 fixes.
Fixed
JoinHandle::abort
(#3934)v1.7.1
Compare Source
Fixed
v1.7.0
Compare Source
1.7.0 (June 15, 2021)
Added
TcpSocket
fromstd::net::TcpStream
conversion (#3838)receiver_count
towatch::Sender
(#3729)sync::notify::Notified
future publicly (#3840)Fixed
clippy::default_numeric_fallback
lint in generated code (#3831)mpsc::RecvError
type (#3833)Documented
AsyncReadExt::read_buf
(#3850)AsyncWrite::poll_write
(#3820)v1.6.4
Compare Source
Fixes a missed edge case from 1.6.3.
Fixed
v1.6.3
Compare Source
Forward ports 1.5.1 fixes.
Fixed
JoinHandle::abort
(#3934)v1.6.2
Compare Source
Fixes
time:advance
regression introduced in 1.6 (#3852)v1.6.1
Compare Source
This release reverts #3518 because it doesn't work on some kernels due to
a kernel bug. (#3803)
v1.6.0
Compare Source
1.6.0 (May 14, 2021)
Added
write_all_buf
toAsyncWriteExt
(#3737)AsyncSeek
forBufReader
,BufWriter
, andBufStream
(#3491)mpsc::Sender::{reserve_owned, try_reserve_owned}
(#3704)MutexGuard::map
method that returns aMappedMutexGuard
(#2472)Fixed
DuplexStream
close (#3756)std::os::raw::c_int
instead oflibc::c_int
on public API (#3774)notify_waiters
(#3660)JoinHandle
panic message (#3727)time::advance
from going too far (#3712)Documented
net::unix::datagram
module from docs (#3775)Barrier
doc should use task, not thread (#3780)block_in_place
(#3753)v1.5.1
Compare Source
Fixed
JoinHandle::abort
(#3934)v1.5.0
Compare Source
1.5.0 (April 12, 2021)
Added
AsyncSeekExt::stream_position
(#3650)AsyncWriteExt::write_vectored
(#3678)copy_bidirectional
utility (#3572)IntoRawFd
forTcpSocket
(#3684)OnceCell
(#3591)OwnedRwLockReadGuard
andOwnedRwLockWriteGuard
(#3340)Semaphore::is_closed
(#3673)mpsc::Sender::capacity
(#3690)RwLock
max reads (#3644)sync_scope
forLocalKey
(#3612)Fixed
noalias
attributes on intrusive linked list (#3654)JoinHandle::abort()
when called from other threads (#3672)oneshot::try_recv
(#3674)Semaphore
permit overflow calculation (#3644)Documented
AsyncFd
(#3635){Handle,Runtime}::block_on
(#3628)Semaphore
is fair (#3693)v1.4.0
Compare Source
Added
select!
(#3603)Handle::block_on
(#3569)Fixed
block_on
future (#3582)EnterGuard
withmust_use
(#3609)Documented
PollSender
(#3613)Mutex
FIFO explanation (#3615)v1.3.0
Compare Source
Added
unconstrained()
opt-out (#3547)into_std
for net types without it (#3509)same_channel
method tompsc::Sender
(#3532){try_,}acquire_many_owned
toSemaphore
(#3535)RwLockWriteGuard::map
andRwLockWriteGuard::try_map
(#3348)Fixed
oneshot::Receiver::close
after successfultry_recv
(#3552)timeout(Duration::MAX)
(#3551)Documented
read_until
(#3536)AsyncRead::poll_read
doc (#3557)UdpSocket
splitting doc (#3517)LocalSet
onnew_current_thread
(#3508)join_all
forBarrier
(#3514)oneshot
(#3592)notify
tonotify_one
(#3526)Sleep
doc (#3515)interval.rs
andtime/mod.rs
docs (#3533)v1.2.0
Compare Source
Added
Signal::poll_recv
method public (#3383)Fixed
test-util
paused time fully deterministic (#3492)Documented
v1.1.1
Compare Source
Forward ports 1.0.3 fix.
Fixed
v1.1.0
Compare Source
Added
try_read_buf
andtry_recv_buf
(#3351)Sender::try_reserve
function (#3418)RwLock
try_read
andtry_write
methods (#3400)ReadBuf::inner_mut
(#3443)Changed
select!
error message (#3352)read_to_end
(#3426)Fixed
LocalSet
onspawn_local
(#3369)Documented
Stream
wrappers intokio-stream
(#3343)test-util
feature is not enabled with full (#3397)AsyncFd
docs about changes of the inner fd (#3430)Sleep
is notUnpin
(#3457)PollSemaphore
(#3456)LocalSet
example (#3438)mpsc
documentation (#3458)v1.0.3
Compare Source
Fixed
v1.0.2
Compare Source
Fixed
read_to_end
(#3428).Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
04e71231ac
to32cf3f720f
32cf3f720f
to4bbd97f14a
Update Rust crate tokio to 1.21to Update Rust crate tokio to 1.21 - autoclosedPull request closed