| 1 |
# 0.7.2 (May 14, 2022) |
| 2 |
|
| 3 |
This release contains a rewrite of `CancellationToken` that fixes a memory leak. ([#4652]) |
| 4 |
|
| 5 |
[#4652]: https://github.com/tokio-rs/tokio/pull/4652 |
| 6 |
|
| 7 |
# 0.7.1 (February 21, 2022) |
| 8 |
|
| 9 |
### Added |
| 10 |
|
| 11 |
- codec: add `length_field_type` to `LengthDelimitedCodec` builder ([#4508]) |
| 12 |
- io: add `StreamReader::into_inner_with_chunk()` ([#4559]) |
| 13 |
|
| 14 |
### Changed |
| 15 |
|
| 16 |
- switch from log to tracing ([#4539]) |
| 17 |
|
| 18 |
### Fixed |
| 19 |
|
| 20 |
- sync: fix waker update condition in `CancellationToken` ([#4497]) |
| 21 |
- bumped tokio dependency to 1.6 to satisfy minimum requirements ([#4490]) |
| 22 |
|
| 23 |
[#4490]: https://github.com/tokio-rs/tokio/pull/4490 |
| 24 |
[#4497]: https://github.com/tokio-rs/tokio/pull/4497 |
| 25 |
[#4508]: https://github.com/tokio-rs/tokio/pull/4508 |
| 26 |
[#4539]: https://github.com/tokio-rs/tokio/pull/4539 |
| 27 |
[#4559]: https://github.com/tokio-rs/tokio/pull/4559 |
| 28 |
|
| 29 |
# 0.7.0 (February 9, 2022) |
| 30 |
|
| 31 |
### Added |
| 32 |
|
| 33 |
- task: add `spawn_pinned` ([#3370]) |
| 34 |
- time: add `shrink_to_fit` and `compact` methods to `DelayQueue` ([#4170]) |
| 35 |
- codec: improve `Builder::max_frame_length` docs ([#4352]) |
| 36 |
- codec: add mutable reference getters for codecs to pinned `Framed` ([#4372]) |
| 37 |
- net: add generic trait to combine `UnixListener` and `TcpListener` ([#4385]) |
| 38 |
- codec: implement `Framed::map_codec` ([#4427]) |
| 39 |
- codec: implement `Encoder<BytesMut>` for `BytesCodec` ([#4465]) |
| 40 |
|
| 41 |
### Changed |
| 42 |
|
| 43 |
- sync: add lifetime parameter to `ReusableBoxFuture` ([#3762]) |
| 44 |
- sync: refactored `PollSender<T>` to fix a subtly broken `Sink<T>` implementation ([#4214]) |
| 45 |
- time: remove error case from the infallible `DelayQueue::poll_elapsed` ([#4241]) |
| 46 |
|
| 47 |
[#3370]: https://github.com/tokio-rs/tokio/pull/3370 |
| 48 |
[#4170]: https://github.com/tokio-rs/tokio/pull/4170 |
| 49 |
[#4352]: https://github.com/tokio-rs/tokio/pull/4352 |
| 50 |
[#4372]: https://github.com/tokio-rs/tokio/pull/4372 |
| 51 |
[#4385]: https://github.com/tokio-rs/tokio/pull/4385 |
| 52 |
[#4427]: https://github.com/tokio-rs/tokio/pull/4427 |
| 53 |
[#4465]: https://github.com/tokio-rs/tokio/pull/4465 |
| 54 |
[#3762]: https://github.com/tokio-rs/tokio/pull/3762 |
| 55 |
[#4214]: https://github.com/tokio-rs/tokio/pull/4214 |
| 56 |
[#4241]: https://github.com/tokio-rs/tokio/pull/4241 |
| 57 |
|
| 58 |
# 0.6.10 (May 14, 2021) |
| 59 |
|
| 60 |
This is a backport for the memory leak in `CancellationToken` that was originally fixed in 0.7.2. ([#4652]) |
| 61 |
|
| 62 |
[#4652]: https://github.com/tokio-rs/tokio/pull/4652 |
| 63 |
|
| 64 |
# 0.6.9 (October 29, 2021) |
| 65 |
|
| 66 |
### Added |
| 67 |
|
| 68 |
- codec: implement `Clone` for `LengthDelimitedCodec` ([#4089]) |
| 69 |
- io: add `SyncIoBridge` ([#4146]) |
| 70 |
|
| 71 |
### Fixed |
| 72 |
|
| 73 |
- time: update deadline on removal in `DelayQueue` ([#4178]) |
| 74 |
- codec: Update stream impl for Framed to return None after Err ([#4166]) |
| 75 |
|
| 76 |
[#4089]: https://github.com/tokio-rs/tokio/pull/4089 |
| 77 |
[#4146]: https://github.com/tokio-rs/tokio/pull/4146 |
| 78 |
[#4166]: https://github.com/tokio-rs/tokio/pull/4166 |
| 79 |
[#4178]: https://github.com/tokio-rs/tokio/pull/4178 |
| 80 |
|
| 81 |
# 0.6.8 (September 3, 2021) |
| 82 |
|
| 83 |
### Added |
| 84 |
|
| 85 |
- sync: add drop guard for `CancellationToken` ([#3839]) |
| 86 |
- compact: added `AsyncSeek` compat ([#4078]) |
| 87 |
- time: expose `Key` used in `DelayQueue`'s `Expired` ([#4081]) |
| 88 |
- io: add `with_capacity` to `ReaderStream` ([#4086]) |
| 89 |
|
| 90 |
### Fixed |
| 91 |
|
| 92 |
- codec: remove unnecessary `doc(cfg(...))` ([#3989]) |
| 93 |
|
| 94 |
[#3839]: https://github.com/tokio-rs/tokio/pull/3839 |
| 95 |
[#4078]: https://github.com/tokio-rs/tokio/pull/4078 |
| 96 |
[#4081]: https://github.com/tokio-rs/tokio/pull/4081 |
| 97 |
[#4086]: https://github.com/tokio-rs/tokio/pull/4086 |
| 98 |
[#3989]: https://github.com/tokio-rs/tokio/pull/3989 |
| 99 |
|
| 100 |
# 0.6.7 (May 14, 2021) |
| 101 |
|
| 102 |
### Added |
| 103 |
|
| 104 |
- udp: make `UdpFramed` take `Borrow<UdpSocket>` ([#3451]) |
| 105 |
- compat: implement `AsRawFd`/`AsRawHandle` for `Compat<T>` ([#3765]) |
| 106 |
|
| 107 |
[#3451]: https://github.com/tokio-rs/tokio/pull/3451 |
| 108 |
[#3765]: https://github.com/tokio-rs/tokio/pull/3765 |
| 109 |
|
| 110 |
# 0.6.6 (April 12, 2021) |
| 111 |
|
| 112 |
### Added |
| 113 |
|
| 114 |
- util: makes `Framed` and `FramedStream` resumable after eof ([#3272]) |
| 115 |
- util: add `PollSemaphore::{add_permits, available_permits}` ([#3683]) |
| 116 |
|
| 117 |
### Fixed |
| 118 |
|
| 119 |
- chore: avoid allocation if `PollSemaphore` is unused ([#3634]) |
| 120 |
|
| 121 |
[#3272]: https://github.com/tokio-rs/tokio/pull/3272 |
| 122 |
[#3634]: https://github.com/tokio-rs/tokio/pull/3634 |
| 123 |
[#3683]: https://github.com/tokio-rs/tokio/pull/3683 |
| 124 |
|
| 125 |
# 0.6.5 (March 20, 2021) |
| 126 |
|
| 127 |
### Fixed |
| 128 |
|
| 129 |
- util: annotate time module as requiring `time` feature ([#3606]) |
| 130 |
|
| 131 |
[#3606]: https://github.com/tokio-rs/tokio/pull/3606 |
| 132 |
|
| 133 |
# 0.6.4 (March 9, 2021) |
| 134 |
|
| 135 |
### Added |
| 136 |
|
| 137 |
- codec: `AnyDelimiter` codec ([#3406]) |
| 138 |
- sync: add pollable `mpsc::Sender` ([#3490]) |
| 139 |
|
| 140 |
### Fixed |
| 141 |
|
| 142 |
- codec: `LinesCodec` should only return `MaxLineLengthExceeded` once per line ([#3556]) |
| 143 |
- sync: fuse PollSemaphore ([#3578]) |
| 144 |
|
| 145 |
[#3406]: https://github.com/tokio-rs/tokio/pull/3406 |
| 146 |
[#3490]: https://github.com/tokio-rs/tokio/pull/3490 |
| 147 |
[#3556]: https://github.com/tokio-rs/tokio/pull/3556 |
| 148 |
[#3578]: https://github.com/tokio-rs/tokio/pull/3578 |
| 149 |
|
| 150 |
# 0.6.3 (January 31, 2021) |
| 151 |
|
| 152 |
### Added |
| 153 |
|
| 154 |
- sync: add `ReusableBoxFuture` utility ([#3464]) |
| 155 |
|
| 156 |
### Changed |
| 157 |
|
| 158 |
- sync: use `ReusableBoxFuture` for `PollSemaphore` ([#3463]) |
| 159 |
- deps: remove `async-stream` dependency ([#3463]) |
| 160 |
- deps: remove `tokio-stream` dependency ([#3487]) |
| 161 |
|
| 162 |
# 0.6.2 (January 21, 2021) |
| 163 |
|
| 164 |
### Added |
| 165 |
|
| 166 |
- sync: add pollable `Semaphore` ([#3444]) |
| 167 |
|
| 168 |
### Fixed |
| 169 |
|
| 170 |
- time: fix panics on updating `DelayQueue` entries ([#3270]) |
| 171 |
|
| 172 |
# 0.6.1 (January 12, 2021) |
| 173 |
|
| 174 |
### Added |
| 175 |
|
| 176 |
- codec: `get_ref()`, `get_mut()`, `get_pin_mut()` and `into_inner()` for |
| 177 |
`Framed`, `FramedRead`, `FramedWrite` and `StreamReader` ([#3364]). |
| 178 |
- codec: `write_buffer()` and `write_buffer_mut()` for `Framed` and |
| 179 |
`FramedWrite` ([#3387]). |
| 180 |
|
| 181 |
# 0.6.0 (December 23, 2020) |
| 182 |
|
| 183 |
### Changed |
| 184 |
- depend on `tokio` 1.0. |
| 185 |
|
| 186 |
### Added |
| 187 |
- rt: add constructors to `TokioContext` (#3221). |
| 188 |
|
| 189 |
# 0.5.1 (December 3, 2020) |
| 190 |
|
| 191 |
### Added |
| 192 |
- io: `poll_read_buf` util fn (#2972). |
| 193 |
- io: `poll_write_buf` util fn with vectored write support (#3156). |
| 194 |
|
| 195 |
# 0.5.0 (October 30, 2020) |
| 196 |
|
| 197 |
### Changed |
| 198 |
- io: update `bytes` to 0.6 (#3071). |
| 199 |
|
| 200 |
# 0.4.0 (October 15, 2020) |
| 201 |
|
| 202 |
### Added |
| 203 |
- sync: `CancellationToken` for coordinating task cancellation (#2747). |
| 204 |
- rt: `TokioContext` sets the Tokio runtime for the duration of a future (#2791) |
| 205 |
- io: `StreamReader`/`ReaderStream` map between `AsyncRead` values and `Stream` |
| 206 |
of bytes (#2788). |
| 207 |
- time: `DelayQueue` to manage many delays (#2897). |
| 208 |
|
| 209 |
# 0.3.1 (March 18, 2020) |
| 210 |
|
| 211 |
### Fixed |
| 212 |
|
| 213 |
- Adjust minimum-supported Tokio version to v0.2.5 to account for an internal |
| 214 |
dependency on features in that version of Tokio. ([#2326]) |
| 215 |
|
| 216 |
# 0.3.0 (March 4, 2020) |
| 217 |
|
| 218 |
### Changed |
| 219 |
|
| 220 |
- **Breaking Change**: Change `Encoder` trait to take a generic `Item` parameter, which allows |
| 221 |
codec writers to pass references into `Framed` and `FramedWrite` types. ([#1746]) |
| 222 |
|
| 223 |
### Added |
| 224 |
|
| 225 |
- Add futures-io/tokio::io compatibility layer. ([#2117]) |
| 226 |
- Add `Framed::with_capacity`. ([#2215]) |
| 227 |
|
| 228 |
### Fixed |
| 229 |
|
| 230 |
- Use advance over split_to when data is not needed. ([#2198]) |
| 231 |
|
| 232 |
# 0.2.0 (November 26, 2019) |
| 233 |
|
| 234 |
- Initial release |
| 235 |
|
| 236 |
[#3487]: https://github.com/tokio-rs/tokio/pull/3487 |
| 237 |
[#3464]: https://github.com/tokio-rs/tokio/pull/3464 |
| 238 |
[#3463]: https://github.com/tokio-rs/tokio/pull/3463 |
| 239 |
[#3444]: https://github.com/tokio-rs/tokio/pull/3444 |
| 240 |
[#3387]: https://github.com/tokio-rs/tokio/pull/3387 |
| 241 |
[#3364]: https://github.com/tokio-rs/tokio/pull/3364 |
| 242 |
[#3270]: https://github.com/tokio-rs/tokio/pull/3270 |
| 243 |
[#2326]: https://github.com/tokio-rs/tokio/pull/2326 |
| 244 |
[#2215]: https://github.com/tokio-rs/tokio/pull/2215 |
| 245 |
[#2198]: https://github.com/tokio-rs/tokio/pull/2198 |
| 246 |
[#2117]: https://github.com/tokio-rs/tokio/pull/2117 |
| 247 |
[#1746]: https://github.com/tokio-rs/tokio/pull/1746 |