This release bumps the MSRV to 1.70. (#6645)
- sync: Add
run_until_cancelled
totokio_util::sync::CancellationToken
(#6618) - task: add
AbortOnDropHandle
type (#6786)
- deps: no default features for hashbrown (#6541)
- time: wake
DelayQueue
when removing last item (#6752) - deps: enable the full feature when compiled for the playground (#6818)
- task: fix typo in
TaskTracker
docs (#6792)
This release updates the MSRV to 1.63. (#6126)
- either: implement
Sink
forEither
(#6239) - time: add
DelayQueue::deadline
(#6163) - time: add
FutureExt::timeout
(#6276)
- codec: assert compatibility between
LengthDelimitedCodec
options (#6414) - codec: make tracing feature optional for codecs (#6434)
- io: add
T: ?Sized
totokio_util::io::poll_read_buf
(#6441) - sync: remove
'static
bound onimpl Sink for PollSender
(#6397)
- codec: add examples for
FramedRead
andFramedWrite
(#6310) - codec: document cancel safety of
SinkExt::send
andStreamExt::next
(#6417)
- task: add
TaskTracker
(#6033) - task: add
JoinMap::keys
(#6046) - io: implement
Seek
forSyncIoBridge
(#6058)
- deps: update hashbrown to 0.14 (#6102)
- io: add passthrough
AsyncRead
/AsyncWrite
toInspectWriter
/InspectReader
(#5739) - task: add spawn blocking methods to
JoinMap
(#5797) - io: pass through traits for
StreamReader
andSinkWriter
(#5941) - io: add
SyncIoBridge::into_inner
(#5971)
- sync: handle possibly dangling reference safely (#5812)
- util: fix broken intra-doc link (#5849)
- compat: fix clippy warnings (#5891)
- codec: Specify the line ending of
LinesCodec
(#5982)
This release bumps the MSRV of tokio-util to 1.56.
- time: add
DelayQueue::peek
(#5569)
This release contains one performance improvement:
- sync: try to lock the parent first in
CancellationToken
(#5561)
- time: fix panic in
DelayQueue
(#5630)
- sync: improve
CancellationToken
doc on child tokens (#5632)
This release reverts the removal of the Encoder
bound on the FramedParts
constructor from #5280 since it turned out to be a breaking change. (#5450)
This release fixes a compilation failure in 0.7.5 when it is used together with Tokio version 1.21 and unstable features are enabled. (#5445)
This release fixes an accidental breaking change where UnwindSafe
was
accidentally removed from CancellationToken
.
- codec: add
Framed::backpressure_boundary
(#5124) - io: add
InspectReader
andInspectWriter
(#5033) - io: add
tokio_util::io::{CopyToBytes, SinkWriter}
(#5070, #5436) - io: impl
std::io::BufRead
onSyncIoBridge
(#5265) - sync: add
PollSemaphore::poll_acquire_many
(#5137) - sync: add owned future for
CancellationToken
(#5153) - time: add
DelayQueue::try_remove
(#5052)
- codec: fix
LengthDelimitedCodec
buffer over-reservation (#4997) - sync: impl
UnwindSafe
onCancellationToken
(#5438) - util: remove
Encoder
bound onFramedParts
constructor (#5280)
- io: add lines example for
StreamReader
(#5145)
- util: add
track_caller
to public APIs (#4785)
- task: fix compilation errors in
JoinMap
with Tokio v1.21.0 (#4755) - task: remove the unstable, deprecated
JoinMap::join_one
(#4920)
- tracing: don't require default tracing features (#4592)
- util: simplify implementation of
ReusableBoxFuture
(#4675)
This release contains a rewrite of CancellationToken
that fixes a memory leak. (#4652)
- codec: add
length_field_type
toLengthDelimitedCodec
builder (#4508) - io: add
StreamReader::into_inner_with_chunk()
(#4559)
- switch from log to tracing (#4539)
- sync: fix waker update condition in
CancellationToken
(#4497) - bumped tokio dependency to 1.6 to satisfy minimum requirements (#4490)
- task: add
spawn_pinned
(#3370) - time: add
shrink_to_fit
andcompact
methods toDelayQueue
(#4170) - codec: improve
Builder::max_frame_length
docs (#4352) - codec: add mutable reference getters for codecs to pinned
Framed
(#4372) - net: add generic trait to combine
UnixListener
andTcpListener
(#4385) - codec: implement
Framed::map_codec
(#4427) - codec: implement
Encoder<BytesMut>
forBytesCodec
(#4465)
- sync: add lifetime parameter to
ReusableBoxFuture
(#3762) - sync: refactored
PollSender<T>
to fix a subtly brokenSink<T>
implementation (#4214) - time: remove error case from the infallible
DelayQueue::poll_elapsed
(#4241)
This is a backport for the memory leak in CancellationToken
that was originally fixed in 0.7.2. (#4652)
- time: update deadline on removal in
DelayQueue
(#4178) - codec: Update stream impl for Framed to return None after Err (#4166)
- sync: add drop guard for
CancellationToken
(#3839) - compact: added
AsyncSeek
compat (#4078) - time: expose
Key
used inDelayQueue
'sExpired
(#4081) - io: add
with_capacity
toReaderStream
(#4086)
- codec: remove unnecessary
doc(cfg(...))
(#3989)
- udp: make
UdpFramed
takeBorrow<UdpSocket>
(#3451) - compat: implement
AsRawFd
/AsRawHandle
forCompat<T>
(#3765)
- util: makes
Framed
andFramedStream
resumable after eof (#3272) - util: add
PollSemaphore::{add_permits, available_permits}
(#3683)
- chore: avoid allocation if
PollSemaphore
is unused (#3634)
- util: annotate time module as requiring
time
feature (#3606)
- codec:
LinesCodec
should only returnMaxLineLengthExceeded
once per line (#3556) - sync: fuse PollSemaphore (#3578)
- sync: add
ReusableBoxFuture
utility (#3464)
- sync: use
ReusableBoxFuture
forPollSemaphore
(#3463) - deps: remove
async-stream
dependency (#3463) - deps: remove
tokio-stream
dependency (#3487)
- sync: add pollable
Semaphore
(#3444)
- time: fix panics on updating
DelayQueue
entries (#3270)
- codec:
get_ref()
,get_mut()
,get_pin_mut()
andinto_inner()
forFramed
,FramedRead
,FramedWrite
andStreamReader
(#3364). - codec:
write_buffer()
andwrite_buffer_mut()
forFramed
andFramedWrite
(#3387).
- depend on
tokio
1.0.
- rt: add constructors to
TokioContext
(#3221).
- io:
poll_read_buf
util fn (#2972). - io:
poll_write_buf
util fn with vectored write support (#3156).
- io: update
bytes
to 0.6 (#3071).
- sync:
CancellationToken
for coordinating task cancellation (#2747). - rt:
TokioContext
sets the Tokio runtime for the duration of a future (#2791) - io:
StreamReader
/ReaderStream
map betweenAsyncRead
values andStream
of bytes (#2788). - time:
DelayQueue
to manage many delays (#2897).
- Adjust minimum-supported Tokio version to v0.2.5 to account for an internal dependency on features in that version of Tokio. (#2326)
- Breaking Change: Change
Encoder
trait to take a genericItem
parameter, which allows codec writers to pass references intoFramed
andFramedWrite
types. (#1746)
- Use advance over split_to when data is not needed. (#2198)
- Initial release