Sourced from tokio's releases.
Tokio v1.46.0
1.46.0 (July 2nd, 2025)
Fixed
- net: fixed
TcpStream::shutdown
incorrectly returning an error on macOS (#7290)Added
- sync:
mpsc::OwnedPermit::{same_channel, same_channel_as_sender}
methods (#7389)- macros:
biased
option forjoin!
andtry_join!
, similar toselect!
(#7307)- net: support for cygwin (#7393)
- net: support
pope::OpenOptions::read_write
on Android (#7426)- net: add
Clone
implementation fornet::unix::SocketAddr
(#7422)Changed
- runtime: eliminate unnecessary lfence while operating on
queue::Local<T>
(#7340)- task: disallow blocking in
LocalSet::{poll,drop}
(#7372)Unstable
- runtime: add
TaskMeta::spawn_location
tracking where a task was spawned (#7417)- runtime: removed borrow from
LocalOptions
parameter toruntime::Builder::build_local
(#7346)Documented
- io: clarify behavior of seeking when
start_seek
is not used (#7366)- io: document cancellation safety of
AsyncWriteExt::flush
(#7364)- net: fix docs for
recv_buffer_size
method (#7336)- net: fix broken link of
RawFd
inTcpSocket
docs (#7416)- net: update
AsRawFd
doc link to current Rust stdlib location (#7429)- readme: fix double period in reactor description (#7363)
- runtime: add doc note that
on_*_task_poll
is unstable (#7311)- sync: update broadcast docs on allocation failure (#7352)
- time: add a missing panic scenario of
time::advance
(#7394)#7290: tokio-rs/tokio#7290 #7307: tokio-rs/tokio#7307 #7311: tokio-rs/tokio#7311 #7336: tokio-rs/tokio#7336 #7340: tokio-rs/tokio#7340 #7346: tokio-rs/tokio#7346 #7352: tokio-rs/tokio#7352 #7363: tokio-rs/tokio#7363 #7364: tokio-rs/tokio#7364 #7366: tokio-rs/tokio#7366 #7372: tokio-rs/tokio#7372 #7389: tokio-rs/tokio#7389 #7393: tokio-rs/tokio#7393
... (truncated)
3f1f268
chore: prepare Tokio v1.46.0 (#7437)3e890cc
rt(unstable): add spawn Location
to TaskMeta
(#7417)69290a6
net: derive Clone
for net::unix::SocketAddr
(#7422)e2b1758
fuzz: cfg fuzz tests under cfg(test) (#7428)b7a75b5
net: update AsRawFd
doc link to current Rust stdlib
location (#7429)6b705b3
net: allow pipe::OpenOptions::read_write
on Android (#7426)3636fd0
net: fix broken link of RawFd
in TcpSocket
docs (#7416)2506c9f
benches: revert "properly gate unix benches" (#7412)b3a1448
sync: improve docs of tokio_util::sync::CancellationToken
(#7408)013f323
docs: add a missing panic scenario of time::advance
(#7394)