| 1 |
# 1.2.2 |
| 2 |
|
| 3 |
* Add support for Solaris using event ports |
| 4 |
(https://github.com/tokio-rs/mio/pull/1962). |
| 5 |
* Add experiment support for NuttX using `poll(2)` |
| 6 |
(https://github.com/tokio-rs/mio/pull/1966). |
| 7 |
|
| 8 |
# 1.2.1 |
| 9 |
|
| 10 |
* Add support for horizonOS/n3ds |
| 11 |
(https://github.com/tokio-rs/mio/pull/1951). |
| 12 |
* On Windows set `WSA_FLAG_NO_HANDLE_INHERIT` for socket creation |
| 13 |
(https://github.com/tokio-rs/mio/pull/1946). |
| 14 |
* Fixed a race condition in Windows' `NamedPipe::connect` |
| 15 |
(https://github.com/tokio-rs/mio/pull/1954). |
| 16 |
* Fixed a casting issue when polling with a timeout larger than ~24.8 days on Linux |
| 17 |
(https://github.com/tokio-rs/mio/pull/1948). |
| 18 |
|
| 19 |
# 1.2.0 |
| 20 |
|
| 21 |
* Support was added for WASM Preview 2 |
| 22 |
(https://github.com/tokio-rs/mio/pull/1931). |
| 23 |
* Implement `AsFd` for `Registry` |
| 24 |
(https://github.com/tokio-rs/mio/pull/1936). |
| 25 |
* The backlog size for listeners were changed to match std lib |
| 26 |
(https://github.com/tokio-rs/mio/pull/1934). |
| 27 |
|
| 28 |
# 1.1.1 |
| 29 |
|
| 30 |
* Handle `ERROR_MORE_DATA` when scheduling reads for Window named pipes |
| 31 |
(https://github.com/tokio-rs/mio/pull/1921). |
| 32 |
* Fix compilation error on NetBSD due to changes in types in the libc crate |
| 33 |
(https://github.com/tokio-rs/mio/pull/1923). |
| 34 |
|
| 35 |
# 1.1.0 |
| 36 |
|
| 37 |
MSRV was increased to 1.71 to support windows-sys v0.61. |
| 38 |
|
| 39 |
* Changed the backlog passed to listen to match the standard library, this |
| 40 |
should effect most users but see the pr for details |
| 41 |
(https://github.com/tokio-rs/mio/pull/1896). |
| 42 |
* Fixed an issue where `TcpStream::peek` returned `WouldBlock` the events would |
| 43 |
stop working correctly |
| 44 |
(https://github.com/tokio-rs/mio/pull/1895). |
| 45 |
* Added support for cygwin |
| 46 |
(https://github.com/tokio-rs/mio/pull/1871). |
| 47 |
* Make `Event` `Send` and `Sync` on platforms using kqueue |
| 48 |
(https://github.com/tokio-rs/mio/pull/1906). |
| 49 |
* Fixed an issue where it would reach `unreachable!` code in `NamedPipe` |
| 50 |
(https://github.com/tokio-rs/mio/pull/1903). |
| 51 |
* Updated windows-sys to 0.60 and 0.61 |
| 52 |
(https://github.com/tokio-rs/mio/pull/1891 |
| 53 |
and https://github.com/tokio-rs/mio/pull/1901). |
| 54 |
|
| 55 |
# 1.0.4 |
| 56 |
|
| 57 |
* Update windows-sys to 0.59 |
| 58 |
(https://github.com/tokio-rs/mio/pull/1857). |
| 59 |
* Fix build failure of uds tests on Android |
| 60 |
(https://github.com/tokio-rs/mio/pull/1847). |
| 61 |
* Fix set nonblocking socket on AIX |
| 62 |
(https://github.com/tokio-rs/mio/pull/1867). |
| 63 |
* Emit a better error when using mio on WASM |
| 64 |
(https://github.com/tokio-rs/mio/pull/1856). |
| 65 |
|
| 66 |
# 1.0.3 |
| 67 |
|
| 68 |
* Implement more I/O safety traits |
| 69 |
(https://github.com/tokio-rs/mio/pull/1831). |
| 70 |
* Remove hermit-abi dependency, now using libc |
| 71 |
(https://github.com/tokio-rs/mio/pull/1830). |
| 72 |
* Use `poll(2)` implementation on AIX, removing the need for using |
| 73 |
`mio_unsupported_force_poll_poll` |
| 74 |
(https://github.com/tokio-rs/mio/pull/1833). |
| 75 |
|
| 76 |
# 1.0.2 |
| 77 |
|
| 78 |
* Work around eventfd bug on illumos |
| 79 |
(https://github.com/tokio-rs/mio/pull/1826). |
| 80 |
* Fix dead code warning on Hermit when building with `--no-default-features |
| 81 |
--features os-ext` |
| 82 |
(https://github.com/tokio-rs/mio/pull/1828). |
| 83 |
|
| 84 |
# 1.0.1 |
| 85 |
|
| 86 |
* Added Fuchsia support |
| 87 |
(https://github.com/tokio-rs/mio/pull/1811). |
| 88 |
* Added GNU/Hurd support |
| 89 |
(https://github.com/tokio-rs/mio/pull/1816). |
| 90 |
* Fixed an issue where accepting on a UDS socket without sometime pass an address |
| 91 |
with a NULL byte to SocketAddr::from_pathname |
| 92 |
(https://github.com/tokio-rs/mio/pull/1817). |
| 93 |
* Internal cleanups that should make the `cfg` situations easier to follow |
| 94 |
(https://github.com/tokio-rs/mio/pull/1812, |
| 95 |
https://github.com/tokio-rs/mio/pull/1813). |
| 96 |
|
| 97 |
# 1.0 |
| 98 |
|
| 99 |
With v1 Mio is able to bump its MSRV to 1.70, allowing us to implement I/O |
| 100 |
safety traits (https://github.com/rust-lang/rust/issues/87074) and replace |
| 101 |
`SocketAddr` with the version found in the standard library. |
| 102 |
|
| 103 |
## Added |
| 104 |
|
| 105 |
* Implement `AsFd` for`TcpListener`, `TcpStream`, `UdpSocket`, `UnixDatagram`, |
| 106 |
`UnixListener`, `UnixStream`, `pipe::Receiver` and `pipe::Sender` |
| 107 |
(https://github.com/tokio-rs/mio/pull/1749, https://github.com/tokio-rs/mio/pull/1797). |
| 108 |
* Implement `From` for `TcpListener`, `TcpStream`, `UdpSocket`, `UnixDatagram`, |
| 109 |
`UnixListener`, and `UnixStream` for their standard library counterpart |
| 110 |
(https://github.com/tokio-rs/mio/pull/1767). |
| 111 |
* Add support for abstract namespaces on Android |
| 112 |
(https://github.com/tokio-rs/mio/pull/1749). |
| 113 |
* Add support for QNX OS |
| 114 |
(https://github.com/tokio-rs/mio/pull/1766, |
| 115 |
https://github.com/tokio-rs/mio/pull/1800). |
| 116 |
* Add support for Apple visionOS |
| 117 |
(https://github.com/tokio-rs/mio/pull/1795). |
| 118 |
* Support for Haiku |
| 119 |
(https://github.com/tokio-rs/mio/pull/1807). |
| 120 |
|
| 121 |
## Removed |
| 122 |
|
| 123 |
* The `SocketAddr` type is removed in favour of `std::os::unix::net::SocketAddr` |
| 124 |
(https://github.com/tokio-rs/mio/pull/1760). All methods on Mio's version |
| 125 |
should exist on the version in the standard library. |
| 126 |
|
| 127 |
## Changes |
| 128 |
|
| 129 |
* MSRV was updated to 1.74, updating to Rust edition edition |
| 130 |
(https://github.com/tokio-rs/mio/pull/1733). |
| 131 |
* `UnixDatagram::{local_addr,peer_addr,bind_addr,recv_from}`, |
| 132 |
`UnixListener::{local_addr,bind_addr,accept}` and |
| 133 |
`UnixStream::{local_addr,peer_addr,connect_addr}` return and/or use |
| 134 |
`std::os::unix::net::SocketAddr` instead of Mio's own `SocketAddr` type |
| 135 |
(https://github.com/tokio-rs/mio/pull/1760). |
| 136 |
* Use `OwnedFd` internally for `Poll` where possible |
| 137 |
(https://github.com/tokio-rs/mio/pull/1749). |
| 138 |
* Support ESP-IDF and Hermit without cfg flags |
| 139 |
(https://github.com/tokio-rs/mio/pull/1789, |
| 140 |
https://github.com/tokio-rs/mio/pull/1802, |
| 141 |
https://github.com/tokio-rs/mio/pull/1802). |
| 142 |
* Updated windows-sys to v0.52 |
| 143 |
(https://github.com/tokio-rs/mio/pull/1668). |
| 144 |
|
| 145 |
# 0.8.11 |
| 146 |
|
| 147 |
* Fix receiving IOCP events after deregistering a Windows named pipe |
| 148 |
(https://github.com/tokio-rs/mio/pull/1760, backport pr: |
| 149 |
https://github.com/tokio-rs/mio/pull/1761). |
| 150 |
|
| 151 |
# 0.8.10 |
| 152 |
|
| 153 |
## Added |
| 154 |
|
| 155 |
* Solaris support |
| 156 |
(https://github.com/tokio-rs/mio/pull/1724). |
| 157 |
|
| 158 |
# 0.8.9 |
| 159 |
|
| 160 |
## Added |
| 161 |
|
| 162 |
* ESP-IDF framework support |
| 163 |
(https://github.com/tokio-rs/mio/pull/1692). |
| 164 |
* AIX operating system support |
| 165 |
(https://github.com/tokio-rs/mio/pull/1704). |
| 166 |
* Vita support |
| 167 |
(https://github.com/tokio-rs/mio/pull/1721). |
| 168 |
* `{UnixListener,UnixStream}:bind_addr` |
| 169 |
(https://github.com/tokio-rs/mio/pull/1630). |
| 170 |
* `mio_unsupported_force_poll_poll` and `mio_unsupported_force_waker_pipe` |
| 171 |
**unsupported** configuration flags to force a specific poll or waker |
| 172 |
implementation |
| 173 |
(https://github.com/tokio-rs/mio/pull/1684, |
| 174 |
https://github.com/tokio-rs/mio/pull/1685, |
| 175 |
https://github.com/tokio-rs/mio/pull/1692). |
| 176 |
|
| 177 |
## Fixed |
| 178 |
|
| 179 |
* The `pipe(2)` based waker (swapped file descriptors) |
| 180 |
(https://github.com/tokio-rs/mio/pull/1722). |
| 181 |
* The duplicate waker check to work correctly with cloned `Registry`s. |
| 182 |
(https://github.com/tokio-rs/mio/pull/1706). |
| 183 |
|
| 184 |
# 0.8.8 |
| 185 |
|
| 186 |
## Fixed |
| 187 |
|
| 188 |
* Fix compilation on WASI (https://github.com/tokio-rs/mio/pull/1676). |
| 189 |
|
| 190 |
# 0.8.7 |
| 191 |
|
| 192 |
## Added |
| 193 |
|
| 194 |
* Add/fix support for tvOS and watchOS, Mio should now build for tvOS and |
| 195 |
watchOS, but we don't have a CI setup yet |
| 196 |
(https://github.com/tokio-rs/mio/pull/1658). |
| 197 |
|
| 198 |
## Changed |
| 199 |
|
| 200 |
* Made the `log` dependency optional behind the `log` feature flag (enabled by |
| 201 |
default). Users that disabled Mio's default features will now not see any |
| 202 |
logging from Mio, enabling the `log` feature will fix that. This was done in |
| 203 |
response to the `log` crate increasing it's MSRV to v1.60, see |
| 204 |
https://github.com/rust-lang/log/pull/552 |
| 205 |
(https://github.com/tokio-rs/mio/pull/1673). |
| 206 |
* Update windows-sys dependency to v0.48 |
| 207 |
(https://github.com/tokio-rs/mio/pull/1663). |
| 208 |
|
| 209 |
## Fixed |
| 210 |
|
| 211 |
* Fix overflow in `Poll::poll` when using `Duration::MAX` as timeout |
| 212 |
(https://github.com/tokio-rs/mio/pull/1657). |
| 213 |
|
| 214 |
# 0.8.6 |
| 215 |
|
| 216 |
## Added |
| 217 |
|
| 218 |
* `Interest::PRIORITY` on Linux and Android, to trigger `Event::is_priority` |
| 219 |
(https://github.com/tokio-rs/mio/pull/1647). |
| 220 |
|
| 221 |
## Changed |
| 222 |
|
| 223 |
* Updated windows-sys to 0.45 |
| 224 |
(https://github.com/tokio-rs/mio/pull/1644). |
| 225 |
* We started testing with sanitizers on the CI |
| 226 |
(https://github.com/tokio-rs/mio/pull/1648). |
| 227 |
|
| 228 |
## Fixed |
| 229 |
|
| 230 |
* A number of potential fd leaks when setup resulted in an error right after |
| 231 |
creation (https://github.com/tokio-rs/mio/pull/1636). |
| 232 |
* Less truncating for timeout values in `Poll::poll` |
| 233 |
(https://github.com/tokio-rs/mio/pull/1642). |
| 234 |
|
| 235 |
# 0.8.5 |
| 236 |
|
| 237 |
## Changed |
| 238 |
|
| 239 |
* Updated `windows-sys` to 0.42.0 |
| 240 |
(https://github.com/tokio-rs/mio/pull/1624). |
| 241 |
* Officially document Wine as not supported, some people claimed it worked, |
| 242 |
other claims it doesn't, but nobody stepped up to fix the problem |
| 243 |
(https://github.com/tokio-rs/mio/pull/1596). |
| 244 |
* Switch to GitHub Actions |
| 245 |
(https://github.com/tokio-rs/mio/pull/1598, https://github.com/tokio-rs/mio/pull/1601). |
| 246 |
* Documented the current Poll::poll time behaviour |
| 247 |
(https://github.com/tokio-rs/mio/pull/1603). |
| 248 |
|
| 249 |
## Fixed |
| 250 |
|
| 251 |
* Timeout less than one millisecond becoming zero millsiconds |
| 252 |
(https://github.com/tokio-rs/mio/pull/1615, https://github.com/tokio-rs/mio/pull/1616) |
| 253 |
* Undefined reference to `epoll\_create1` on Android API level < 21. |
| 254 |
(https://github.com/tokio-rs/mio/pull/1590). |
| 255 |
|
| 256 |
# 0.8.4 |
| 257 |
|
| 258 |
## Added |
| 259 |
|
| 260 |
* Support `Registery::try_clone` on `wasm32-wasi` |
| 261 |
(https://github.com/tokio-rs/mio/pull/1576). |
| 262 |
* Add docs about polling without registering event sources |
| 263 |
(https://github.com/tokio-rs/mio/pull/1585). |
| 264 |
|
| 265 |
# 0.8.3 |
| 266 |
|
| 267 |
## Changed |
| 268 |
|
| 269 |
* Replace `winapi` dependency with `windows-sys`. |
| 270 |
(https://github.com/tokio-rs/mio/pull/1556). |
| 271 |
* Future proofed the kevent ABI for FreeBSD |
| 272 |
(https://github.com/tokio-rs/mio/pull/1572). |
| 273 |
|
| 274 |
## Fixed |
| 275 |
|
| 276 |
* Improved support for Redox, making it possible to run on stable Rust |
| 277 |
(https://github.com/tokio-rs/mio/pull/1555). |
| 278 |
* Don't ignore EAGAIN in UDS connect call |
| 279 |
(https://github.com/tokio-rs/mio/pull/1564). |
| 280 |
* Documentation of `TcpStream::connect` |
| 281 |
(https://github.com/tokio-rs/mio/pull/1565). |
| 282 |
|
| 283 |
# 0.8.2 |
| 284 |
|
| 285 |
## Added |
| 286 |
|
| 287 |
* Experimental support for Redox. |
| 288 |
|
| 289 |
# 0.8.1 |
| 290 |
|
| 291 |
## Added |
| 292 |
|
| 293 |
* Add `try_io` method to all I/O types (#1551). This execute a user defined I/O |
| 294 |
closure while updating Mio's internal state ensuring that the I/O type |
| 295 |
receives more events if it hits a WouldBlock error. This is added to the |
| 296 |
following types: |
| 297 |
* `TcpStream` |
| 298 |
* `UdpSocket` |
| 299 |
* `UnixDatagram` |
| 300 |
* `UnixStream` |
| 301 |
* `unix::pipe::Sender` |
| 302 |
* `unix::pipe::Receiver` |
| 303 |
* Basic, experimental support for `wasm32-wasi` target (#1549). Note that a lot |
| 304 |
of time type are still missing, e.g. the `Waker`, and may never be possible to |
| 305 |
implement. |
| 306 |
|
| 307 |
# 0.8.0 |
| 308 |
|
| 309 |
## Removed |
| 310 |
|
| 311 |
* Deprecated features (https://github.com/tokio-rs/mio/commit/105f8f2afb57b01ddea716a0aa9720f226c520e3): |
| 312 |
* extra-docs (always enabled) |
| 313 |
* tcp (replaced with "net" feature). |
| 314 |
* udp (replaced with "net" feature). |
| 315 |
* uds (replaced with "net" feature). |
| 316 |
* pipe (replaced with "os-ext" feature). |
| 317 |
* os-util (replaced with "os-ext" feature). |
| 318 |
* `TcpSocket` type |
| 319 |
(https://github.com/tokio-rs/mio/commit/02e9be41f27daf822575444fdd2b3067433a5996). |
| 320 |
The socket2 crate provides all the functionality and more. |
| 321 |
* Support for Solaris, it never really worked anyway |
| 322 |
(https://github.com/tokio-rs/mio/pull/1528). |
| 323 |
|
| 324 |
## Changes |
| 325 |
|
| 326 |
* Update minimum Rustc version (MSVR) to 1.46.0 |
| 327 |
(https://github.com/tokio-rs/mio/commit/5c577efecd23750a9a3e0f6ad080ab98f14a255d). |
| 328 |
|
| 329 |
## Added |
| 330 |
|
| 331 |
* `UdpSocket::peer_addr` |
| 332 |
(https://github.com/tokio-rs/mio/commit/5fc104d08e0e74c8a19247f7cba0f058699fc438). |
| 333 |
|
| 334 |
# 0.7.14 |
| 335 |
|
| 336 |
## Fixes |
| 337 |
|
| 338 |
* Remove use unsound internal macro (#1519). |
| 339 |
|
| 340 |
## Added |
| 341 |
|
| 342 |
* `sys::unix::SocketAddr::as_abstract_namespace()` (#1520). |
| 343 |
|
| 344 |
# 0.7.13 |
| 345 |
|
| 346 |
## Fixes |
| 347 |
|
| 348 |
* Fix `Registry::try_clone` invalid usage of `F_DUPFD_CLOEXEC` (#1497, |
| 349 |
https://github.com/tokio-rs/mio/commit/2883f5c1f35bf1a59682c5ffc4afe6b97d7d6e68). |
| 350 |
|
| 351 |
# 0.7.12 (yanked) |
| 352 |
|
| 353 |
## Fixes |
| 354 |
|
| 355 |
* Set `FD_CLOEXEC` when calling `Registry::try_clone` |
| 356 |
(https://github.com/tokio-rs/mio/commit/d1617b567ff6bc669d71e367d22e0e93ff7e2e24 for epoll and |
| 357 |
(https://github.com/tokio-rs/mio/commit/b367a05e408ca90a26383c3aa16d8a16f019dc59 for kqueue). |
| 358 |
|
| 359 |
# 0.7.11 |
| 360 |
|
| 361 |
## Fixes |
| 362 |
|
| 363 |
* Fix missing feature of winapi. |
| 364 |
(https://github.com/tokio-rs/mio/commit/a7e61db9e3c2b929ef1a33532bfcc22045d163ce). |
| 365 |
|
| 366 |
# 0.7.10 |
| 367 |
|
| 368 |
## Fixes |
| 369 |
|
| 370 |
* Fix an instance of not doc(cfg(.*)) |
| 371 |
(https://github.com/tokio-rs/mio/commit/25e8f911357c740034f10a170dfa4ea1b28234ce). |
| 372 |
|
| 373 |
# 0.7.9 |
| 374 |
|
| 375 |
## Fixes |
| 376 |
|
| 377 |
* Fix error handling in `NamedPipe::write` |
| 378 |
(https://github.com/tokio-rs/mio/commit/aec872be9732e5c6685100674278be27f54a271b). |
| 379 |
* Use `accept(2)` on x86 Android instead of `accept4(2)` |
| 380 |
(https://github.com/tokio-rs/mio/commit/6f86b925d3e48f30905d5cfa54348acf3f1fa036, |
| 381 |
https://github.com/tokio-rs/mio/commit/8d5414880ab82178305ac1d2c16d715e58633d3e). |
| 382 |
* Improve error message when opening AFD device |
| 383 |
(https://github.com/tokio-rs/mio/commit/139f7c4422321eb4a17b14ae2c296fddd19a8804). |
| 384 |
|
| 385 |
# 0.7.8 |
| 386 |
|
| 387 |
## Fixes |
| 388 |
|
| 389 |
* Fix `TcpStream::set_linger` on macOS |
| 390 |
(https://github.com/tokio-rs/mio/commit/175773ce02e85977db81224c782c8d140aba8543). |
| 391 |
* Fix compilation on DragonFlyBSD |
| 392 |
(https://github.com/tokio-rs/mio/commit/b51af46b28871f8dd3233b490ee62237ffed6a26). |
| 393 |
|
| 394 |
# 0.7.7 |
| 395 |
|
| 396 |
## Added |
| 397 |
|
| 398 |
* `UdpSocket::only_v6` |
| 399 |
(https://github.com/tokio-rs/mio/commit/0101e05a800f17fb88f4315d9b9fe0f08cca6e57). |
| 400 |
* `Clone` implementation for `Event` |
| 401 |
(https://github.com/tokio-rs/mio/commit/26540ebbae89df6d4d08465c56f715d8f2addfc3). |
| 402 |
* `AsRawFd` implementation for `Registry` |
| 403 |
(https://github.com/tokio-rs/mio/commit/f70daa72da0042b1880256164774c3286d315a02). |
| 404 |
* `Read` and `Write` implementation for `&unix::pipe::Sender` and `Receiver`, |
| 405 |
that is on the reference to them, an implementation existed on the types |
| 406 |
themselves already |
| 407 |
(https://github.com/tokio-rs/mio/commit/1be481dcbbcb6906364008b5d61e7f53cddc3eb3). |
| 408 |
|
| 409 |
## Fixes |
| 410 |
|
| 411 |
* Underflow in `SocketAddr::address` |
| 412 |
(https://github.com/tokio-rs/mio/commit/6d3fa69240cd4bb95e9d34605c660c30245a18bd). |
| 413 |
* Android build with the net feature enabled, but with os-poll disabled |
| 414 |
(https://github.com/tokio-rs/mio/commit/49d8fd33e026ad6e2c055d05d6667180ba2af7be). |
| 415 |
* Solaris build with the net feature enabled, but with os-poll disabled |
| 416 |
(https://github.com/tokio-rs/mio/commit/a6e025e9d9511639ec106ebedc0dd312bdc9be12). |
| 417 |
* Ensure that `Waker::wake` works on illumos systems with poor `pipe(2)` and |
| 418 |
`epoll(2)` interaction using `EPOLLET` |
| 419 |
(https://github.com/tokio-rs/mio/commit/943d4249dcc17cd8b4d2250c4fa19116097248fa). |
| 420 |
* Fix `unix::pipe` on illumos |
| 421 |
(https://github.com/tokio-rs/mio/commit/0db49f6d5caf54b12176821363d154384357e70a). |
| 422 |
|
| 423 |
# 0.7.6 |
| 424 |
|
| 425 |
## Added |
| 426 |
|
| 427 |
* `net` feature, replaces `tcp`, `udp` and `uds` features |
| 428 |
(https://github.com/tokio-rs/mio/commit/a301ba520a8479b459c4acdcefa4a7c5eea818c7). |
| 429 |
* `os-ext` feature, replaces `os-util` and `pipe` features |
| 430 |
(https://github.com/tokio-rs/mio/commit/f5017fae8a3d3bb4b4cada25b01a2d76a406badc). |
| 431 |
* Added keepalive support to `TcpSocket` |
| 432 |
(https://github.com/tokio-rs/mio/commit/290c43a96662d54ab7c4b8814e5a9f9a9e523fda). |
| 433 |
* `TcpSocket::set_{send, recv}_buffer_size` |
| 434 |
(https://github.com/tokio-rs/mio/commit/40c4af79bf5b32b8fbdbf6f2e5c16290e1d3d406). |
| 435 |
* `TcpSocket::get_linger` |
| 436 |
(https://github.com/tokio-rs/mio/commit/13e82ced655bbb6e2729226e485a7de9f2c2ccd9). |
| 437 |
* Implement `IntoRawFd` for `TcpSocket` |
| 438 |
(https://github.com/tokio-rs/mio/commit/50548ed45d0b2c98f1f2e003e210d14195284ef4). |
| 439 |
|
| 440 |
## Deprecated |
| 441 |
|
| 442 |
* The `tcp`, `udp` and `uds` features, replaced by a new `net` feature. |
| 443 |
(https://github.com/tokio-rs/mio/commit/a301ba520a8479b459c4acdcefa4a7c5eea818c7). |
| 444 |
* The `extra-docs` feature, now enabled by default. |
| 445 |
(https://github.com/tokio-rs/mio/commit/25731e8688a2d91c5c700674a2c2d3841240ece1). |
| 446 |
* The `os-util` and `pipe` features, replaced by a new `os-ext` feature. |
| 447 |
(https://github.com/tokio-rs/mio/commit/f5017fae8a3d3bb4b4cada25b01a2d76a406badc). |
| 448 |
|
| 449 |
## Fixes |
| 450 |
|
| 451 |
* Incorrect assumption of the layout of `std::net::SocketAddr`. Previously Mio |
| 452 |
would assume that `SocketAddrV{4,6}` had the same layout as |
| 453 |
`libc::sockaddr_in(6)`, however this is not guaranteed by the standard |
| 454 |
library. |
| 455 |
(https://github.com/tokio-rs/mio/commit/152e0751f0be1c9b0cbd6778645b76bcb0eba93c). |
| 456 |
* Also bumped the miow dependency to version 0.3.6 to solve the same problem as |
| 457 |
above. |
| 458 |
|
| 459 |
# 0.7.5 |
| 460 |
|
| 461 |
## Added |
| 462 |
|
| 463 |
* `TcpSocket::get_localaddr()` retrieves local address |
| 464 |
(https://github.com/tokio-rs/mio/commit/b41a022b2242eef1969c70c8ba93e04c528dba47). |
| 465 |
* `TcpSocket::set_reuseport()` & `TcpSocket::get_reuseport()` configures and reads `SO_REUSEPORT` |
| 466 |
(https://github.com/tokio-rs/mio/commit/183bbe409ab69cbf9db41d0263b41ec86202d9a0). |
| 467 |
* `unix:pipe()` a wrapper around pipe(2) sys call |
| 468 |
(https://github.com/tokio-rs/mio/commit/2b7c0967a7362303946deb3d4ca2ae507af6c72d). |
| 469 |
* Add a check that a single Waker is active per Poll instance (only in debug mode) |
| 470 |
(https://github.com/tokio-rs/mio/commit/f4874f28b32efcf4841691884c65a89734d96a56). |
| 471 |
* Added `Interest:remove()` |
| 472 |
(https://github.com/tokio-rs/mio/commit/b8639c3d9ac07bb7e2e27685680c8a6510fa1357). |
| 473 |
|
| 474 |
# 0.7.4 |
| 475 |
|
| 476 |
## Fixes |
| 477 |
|
| 478 |
* lost "socket closed" events on windows |
| 479 |
(https://github.com/tokio-rs/mio/commit/50c299aca56c4a26e5ed20c283007239fbe6a7a7). |
| 480 |
|
| 481 |
## Added |
| 482 |
|
| 483 |
* `TcpSocket::set_linger()` configures SO_LINGER |
| 484 |
(https://github.com/tokio-rs/mio/commit/3b4096565c1a879f651b8f8282ecdcbdbd5c92d3). |
| 485 |
|
| 486 |
# 0.7.3 |
| 487 |
|
| 488 |
## Added |
| 489 |
|
| 490 |
* `TcpSocket` for configuring a TCP socket before connecting or listening |
| 491 |
(https://github.com/tokio-rs/mio/commit/5b09e60d0f64419b989bda88c86a3147334a03b3). |
| 492 |
|
| 493 |
# 0.7.2 |
| 494 |
|
| 495 |
## Added |
| 496 |
|
| 497 |
* Windows named pipe support. |
| 498 |
(https://github.com/tokio-rs/mio/commit/52e8c2220e87696d20f13561402bcaabba4136ed). |
| 499 |
|
| 500 |
# 0.7.1 |
| 501 |
|
| 502 |
## Reduced support for 32-bit Apple targets |
| 503 |
|
| 504 |
In January 2020 Rust reduced its support for 32-bit Apple targets |
| 505 |
(https://blog.rust-lang.org/2020/01/03/reducing-support-for-32-bit-apple-targets.html). |
| 506 |
Starting with v0.7.1 Mio will do the same as we're no longer checking 32 bit |
| 507 |
iOS/macOS on our CI. |
| 508 |
|
| 509 |
## Added |
| 510 |
|
| 511 |
* Support for illumos |
| 512 |
(https://github.com/tokio-rs/mio/commit/976f2354d0e8fbbb64fba3bf017d7131f9c369a0). |
| 513 |
* Report `epoll(2)`'s `EPOLLERR` event as `Event::is_write_closed` if it's the |
| 514 |
only event |
| 515 |
(https://github.com/tokio-rs/mio/commit/0c77b5712d675eeb9bd43928b5dd7d22b2c7ac0c). |
| 516 |
* Optimised event::Iter::{size_hint, count} |
| 517 |
(https://github.com/tokio-rs/mio/commit/40df934a11b05233a7796c4de19a4ee06bc4e03e). |
| 518 |
|
| 519 |
## Fixed |
| 520 |
|
| 521 |
* Work around Linux kernel < 2.6.37 bug on 32-bits making timeouts longer then |
| 522 |
~30 minutes effectively infinite |
| 523 |
(https://github.com/tokio-rs/mio/commit/d555991f5ee81f6c1eec0fe481557d3d5b8d5ff4). |
| 524 |
* Set `SO_NOSIGPIPE` on all sockets (not just UDP) on for Apple targets |
| 525 |
(https://github.com/tokio-rs/mio/commit/b8bbdcb0d3236f4c4acb257996d42a88dc9987d9). |
| 526 |
* Properly handle `POLL_ABORT` on Windows |
| 527 |
(https://github.com/tokio-rs/mio/commit/a98da62b3ed1eeed1770aaca12f46d647e4fa749). |
| 528 |
* Improved error handling around failing `SIO_BASE_HANDLE` calls on Windows |
| 529 |
(https://github.com/tokio-rs/mio/commit/b15fc18458a79ef8a51f73effa92548650f4e5dc). |
| 530 |
|
| 531 |
## Changed |
| 532 |
|
| 533 |
* On NetBSD we now use `accept4(2)` |
| 534 |
(https://github.com/tokio-rs/mio/commit/4e306addc7144f2e02a7e8397c220b179a006a19). |
| 535 |
* The package uploaded to crates.io should be slightly smaller |
| 536 |
(https://github.com/tokio-rs/mio/commit/eef8d3b9500bc0db957cd1ac68ee128ebc68351f). |
| 537 |
|
| 538 |
## Removed |
| 539 |
|
| 540 |
* Dependency on `lazy_static` on Windows |
| 541 |
(https://github.com/tokio-rs/mio/commit/57e4c2a8ac153bc7bb87829e22cf0a21e3927e8a). |
| 542 |
|
| 543 |
# 0.7.0 |
| 544 |
|
| 545 |
Version 0.7 of Mio contains various major changes compared to version 0.6. |
| 546 |
Overall a large number of API changes have been made to reduce the complexity of |
| 547 |
the implementation and remove overhead where possible. |
| 548 |
|
| 549 |
Please refer to the [blog post about |
| 550 |
0.7-alpha.1](https://tokio.rs/blog/2019-12-mio-v0.7-alpha.1/) for additional |
| 551 |
information. |
| 552 |
|
| 553 |
## Added |
| 554 |
|
| 555 |
* `Interest` structure that replaces `Ready` in registering event sources. |
| 556 |
* `Registry` structure that separates the registering and polling functionality. |
| 557 |
* `Waker` structure that allows another thread to wake a thread polling `Poll`. |
| 558 |
* Unix Domain Socket (UDS) types: `UnixDatagram`, `UnixListener` and |
| 559 |
`UnixStream`. |
| 560 |
|
| 561 |
## Removed |
| 562 |
|
| 563 |
* All code deprecated in 0.6 was removed in 0.7. |
| 564 |
* Support for Fuchsia was removed as the code was unmaintained. |
| 565 |
* Support for Bitrig was removed, rustc dropped support for it also. |
| 566 |
* `UnixReady` was merged into `Ready`. |
| 567 |
* Custom user-space readiness queue was removed, this includes the public |
| 568 |
`Registration` and `SetReadiness` types. |
| 569 |
* `PollOpt` was removed and all registrations use edge-triggers. See the upgrade |
| 570 |
guide on how to process event using edge-triggers. |
| 571 |
* The network types (types in the `net` module) now support only the same API as |
| 572 |
found in the standard library, various methods on the types were removed. |
| 573 |
* `TcpStream` now supports vectored I/O. |
| 574 |
* `Poll::poll_interruptible` was removed. Instead `Poll::poll` will now return |
| 575 |
an error if one occurs. |
| 576 |
* `From<usize>` is removed from `Token`, the internal field is still public, so |
| 577 |
`Token(my_token)` can still be used. |
| 578 |
|
| 579 |
## Changed |
| 580 |
|
| 581 |
* Various documentation improvements were made around correct usage of `Poll` |
| 582 |
and registered event sources. It is recommended to reread the documentation of |
| 583 |
at least `event::Source` and `Poll`. |
| 584 |
* Mio now uses Rust 2018 and rustfmt for all code. |
| 585 |
* `Event` was changed to be a wrapper around the OS event. This means it can be |
| 586 |
significantly larger on some OSs. |
| 587 |
* `Ready` was removed and replaced with various `is_*` methods on `Event`. For |
| 588 |
example instead checking for readable readiness using |
| 589 |
`Event::ready().is_readable()`, you would call `Event::is_readable()`. |
| 590 |
* `Ready::is_hup` was removed in favour of `Event::is_read_closed` and |
| 591 |
`Event::is_write_closed`. |
| 592 |
* The Iterator implementation of `Events` was changed to return `&Event`. |
| 593 |
* `Evented` was renamed to `event::Source` and now takes mutable reference to |
| 594 |
the source. |
| 595 |
* Minimum supported Rust version was increased to 1.39. |
| 596 |
* By default Mio now uses a shim implementation. To enable the full |
| 597 |
implementation, that uses the OS, enable the `os-oll` feature. To enable the |
| 598 |
network types use `tcp`, `udp` and/or `uds`. For more documentation on the |
| 599 |
features see the `feature` module in the API documentation (requires the |
| 600 |
`extra-docs` feature). |
| 601 |
* The entire Windows implementation was rewritten. |
| 602 |
* Various optimisation were made to reduce the number of system calls in |
| 603 |
creating and using sockets, e.g. making use of `accept4(2)`. |
| 604 |
* The `fmt::Debug` implementation of `Events` is now actually useful as it |
| 605 |
prints all `Event`s. |
| 606 |
|
| 607 |
# 0.6.23 (Dec 01, 2020) |
| 608 |
|
| 609 |
### Changed |
| 610 |
- **MSRV**: Increased the MSRV from 1.18.0 (Jun 8, 2017) to 1.31.0 (Dec 6, |
| 611 |
2018) |
| 612 |
(https://github.com/tokio-rs/mio/commit/4879e0d32ddfd98e762fc87240e594a3ad8fca30). |
| 613 |
|
| 614 |
### Fixed |
| 615 |
- Work around Linux kernel < 2.6.37 bug on 32-bits making timeouts longer then |
| 616 |
~30 minutes effectively infinite |
| 617 |
(https://github.com/tokio-rs/mio/commit/e7cba59950e9c9fa6194e29b5b1e72029e3df455). |
| 618 |
- Update miow and net2 dependencies to get rid of invalid memory layout assumption |
| 619 |
(https://github.com/tokio-rs/mio/commit/13f02ac0a86d7c0c0001e5ff8960a0b4340d075c). |
| 620 |
|
| 621 |
# 0.6.22 (May 01, 2020) |
| 622 |
|
| 623 |
### Added |
| 624 |
- Add support for illumos target (#1294) |
| 625 |
|
| 626 |
# 0.6.21 (November 27, 2019) |
| 627 |
|
| 628 |
### Fixed |
| 629 |
- remove `=` dependency on `cfg-if`. |
| 630 |
|
| 631 |
# 0.6.20 (November 21, 2019) |
| 632 |
|
| 633 |
### Fixed |
| 634 |
- Use default IOCP concurrency value (#1161). |
| 635 |
- setting FD_CLOEXEC in pipe (#1095). |
| 636 |
|
| 637 |
# 0.6.19 (May 28, 2018) |
| 638 |
|
| 639 |
### Fixed |
| 640 |
- Do not trigger HUP events on kqueue platforms (#958). |
| 641 |
|
| 642 |
# 0.6.18 (May 24, 2018) |
| 643 |
|
| 644 |
### Fixed |
| 645 |
- Fix compilation on kqueue platforms with 32bit C long (#948). |
| 646 |
|
| 647 |
# 0.6.17 (May 15, 2018) |
| 648 |
|
| 649 |
### Fixed |
| 650 |
- Don't report `RDHUP` as `HUP` (#939) |
| 651 |
- Fix lazycell related compilation issues. |
| 652 |
- Fix EPOLLPRI conflicting with READABLE |
| 653 |
- Abort process on ref count overflows |
| 654 |
|
| 655 |
### Added |
| 656 |
- Define PRI on all targets |
| 657 |
|
| 658 |
# 0.6.16 (September 5, 2018) |
| 659 |
|
| 660 |
* Add EPOLLPRI readiness to UnixReady on supported platforms (#867) |
| 661 |
* Reduce spurious awaken calls (#875) |
| 662 |
|
| 663 |
# 0.6.15 (July 3, 2018) |
| 664 |
|
| 665 |
* Implement `Evented` for containers (#840). |
| 666 |
* Fix android-aarch64 build (#850). |
| 667 |
|
| 668 |
# 0.6.14 (March 8, 2018) |
| 669 |
|
| 670 |
* Add `Poll::poll_interruptible` (#811) |
| 671 |
* Add `Ready::all` and `usize` conversions (#825) |
| 672 |
|
| 673 |
# 0.6.13 (February 5, 2018) |
| 674 |
|
| 675 |
* Fix build on DragonFlyBSD. |
| 676 |
* Add `TcpListener::from_std` that does not require the socket addr. |
| 677 |
* Deprecate `TcpListener::from_listener` in favor of from_std. |
| 678 |
|
| 679 |
# 0.6.12 (January 5, 2018) |
| 680 |
|
| 681 |
* Add `TcpStream::peek` function (#773). |
| 682 |
* Raise minimum Rust version to 1.18.0. |
| 683 |
* `Poll`: retry select() when interrupted by a signal (#742). |
| 684 |
* Deprecate `Events` index access (#713). |
| 685 |
* Add `Events::clear` (#782). |
| 686 |
* Add support for `lio_listio` (#780). |
| 687 |
|
| 688 |
# 0.6.11 (October 25, 2017) |
| 689 |
|
| 690 |
* Allow register to take empty interest (#640). |
| 691 |
* Fix bug with TCP errors on windows (#725). |
| 692 |
* Add TcpListener::accept_std (#733). |
| 693 |
* Update IoVec to fix soundness bug -- includes behavior change. (#747). |
| 694 |
* Minimum Rust version is now 1.14.0. |
| 695 |
* Fix Android x86_64 build. |
| 696 |
* Misc API & doc polish. |
| 697 |
|
| 698 |
# 0.6.10 (July 27, 2017) |
| 699 |
|
| 700 |
* Experimental support for Fuchsia |
| 701 |
* Add `only_v6` option for UDP sockets |
| 702 |
* Fix build on NetBSD |
| 703 |
* Minimum Rust version is now 1.13.0 |
| 704 |
* Assignment operators (e.g. `|=`) are now implemented for `Ready` |
| 705 |
|
| 706 |
# 0.6.9 (June 7, 2017) |
| 707 |
|
| 708 |
* More socket options are exposed through the TCP types, brought in through the |
| 709 |
`net2` crate. |
| 710 |
|
| 711 |
# 0.6.8 (May 26, 2017) |
| 712 |
|
| 713 |
* Support Fuchia |
| 714 |
* POSIX AIO support |
| 715 |
* Fix memory leak caused by Register::new2 |
| 716 |
* Windows: fix handling failed TCP connections |
| 717 |
* Fix build on aarch64-linux-android |
| 718 |
* Fix usage of `O_CLOEXEC` with `SETFL` |
| 719 |
|
| 720 |
# 0.6.7 (April 27, 2017) |
| 721 |
|
| 722 |
* Ignore EPIPE coming out of `kevent` |
| 723 |
* Timer thread should exit when timer is dropped. |
| 724 |
|
| 725 |
# 0.6.6 (March 22, 2017) |
| 726 |
|
| 727 |
* Add send(), recv() and connect() to UDPSocket. |
| 728 |
* Fix bug in custom readiness queue |
| 729 |
* Move net types into `net` module |
| 730 |
|
| 731 |
# 0.6.5 (March 14, 2017) |
| 732 |
|
| 733 |
* Misc improvements to kqueue bindings |
| 734 |
* Add official support for iOS, Android, BSD |
| 735 |
* Reimplement custom readiness queue |
| 736 |
* `Poll` is now `Sync` |
| 737 |
* Officially deprecate non-core functionality (timers, channel, etc...) |
| 738 |
* `Registration` now implements `Evented` |
| 739 |
* Fix bug around error conditions with `connect` on windows. |
| 740 |
* Use iovec crate for scatter / gather operations |
| 741 |
* Only support readable and writable readiness on all platforms |
| 742 |
* Expose additional readiness in a platform specific capacity |
| 743 |
|
| 744 |
# 0.6.4 (January 24, 2017) |
| 745 |
|
| 746 |
* Fix compilation on musl |
| 747 |
* Add `TcpStream::from_stream` which converts a std TCP stream to Mio. |
| 748 |
|
| 749 |
# 0.6.3 (January 22, 2017) |
| 750 |
|
| 751 |
* Implement readv/writev for `TcpStream`, allowing vectored reads/writes to |
| 752 |
work across platforms |
| 753 |
* Remove `nix` dependency |
| 754 |
* Implement `Display` and `Error` for some channel error types. |
| 755 |
* Optimize TCP on Windows through `SetFileCompletionNotificationModes` |
| 756 |
|
| 757 |
# 0.6.2 (December 18, 2016) |
| 758 |
|
| 759 |
* Allow registration of custom handles on Windows (like `EventedFd` on Unix) |
| 760 |
* Send only one byte for the awakener on Unix instead of four |
| 761 |
* Fix a bug in the timer implementation which caused an infinite loop |
| 762 |
|
| 763 |
# 0.6.1 (October 30, 2016) |
| 764 |
|
| 765 |
* Update dependency of `libc` to 0.2.16 |
| 766 |
* Fix channel `dec` logic |
| 767 |
* Fix a timer bug around timeout cancellation |
| 768 |
* Don't allocate buffers for TCP reads on Windows |
| 769 |
* Touched up documentation in a few places |
| 770 |
* Fix an infinite looping timer thread on OSX |
| 771 |
* Fix compile on 32-bit OSX |
| 772 |
* Fix compile on FreeBSD |
| 773 |
|
| 774 |
# 0.6.0 (September 2, 2016) |
| 775 |
|
| 776 |
* Shift primary API towards `Poll` |
| 777 |
* `EventLoop` and types to `deprecated` mod. All contents of the |
| 778 |
`deprecated` mod will be removed by Mio 1.0. |
| 779 |
* Increase minimum supported Rust version to 1.9.0 |
| 780 |
* Deprecate unix domain socket implementation in favor of using a |
| 781 |
version external to Mio. For example: https://github.com/alexcrichton/mio-uds. |
| 782 |
* Remove various types now included in `std` |
| 783 |
* Updated TCP & UDP APIs to match the versions in `std` |
| 784 |
* Enable implementing `Evented` for any type via `Registration` |
| 785 |
* Rename `IoEvent` -> `Event` |
| 786 |
* Access `Event` data via functions vs. public fields. |
| 787 |
* Expose `Events` as a public type that is passed into `Poll` |
| 788 |
* Use `std::time::Duration` for all APIs that require a time duration. |
| 789 |
* Polled events are now retrieved via `Events` type. |
| 790 |
* Implement `std::error::Error` for `TimerError` |
| 791 |
* Relax `Send` bound on notify messages. |
| 792 |
* Remove `Clone` impl for `Timeout` (future proof) |
| 793 |
* Remove `mio::prelude` |
| 794 |
* Remove `mio::util` |
| 795 |
* Remove dependency on bytes |
| 796 |
|
| 797 |
# 0.5.0 (December 3, 2015) |
| 798 |
|
| 799 |
* Windows support (#239) |
| 800 |
* NetBSD support (#306) |
| 801 |
* Android support (#295) |
| 802 |
* Don't re-export bytes types |
| 803 |
* Renamed `EventLoop::register_opt` to `EventLoop::register` (#257) |
| 804 |
* `EventLoopConfig` is now a builder instead of having public struct fields. It |
| 805 |
is also no longer `Copy`. (#259) |
| 806 |
* `TcpSocket` is no longer exported in the public API (#262) |
| 807 |
* Integrate with net2. (#262) |
| 808 |
* `TcpListener` now returns the remote peer address from `accept` as well (#275) |
| 809 |
* The `UdpSocket::{send_to, recv_from}` methods are no longer generic over `Buf` |
| 810 |
or `MutBuf` but instead take slices directly. The return types have also been |
| 811 |
updated to return the number of bytes transferred. (#260) |
| 812 |
* Fix bug with kqueue where an error on registration prevented the |
| 813 |
changelist from getting flushed (#276) |
| 814 |
* Support sending/receiving FDs over UNIX sockets (#291) |
| 815 |
* Mio's socket types are permanently associated with an EventLoop (#308) |
| 816 |
* Reduce unnecessary poll wakeups (#314) |
| 817 |
|
| 818 |
|
| 819 |
# 0.4.1 (July 21, 2015) |
| 820 |
|
| 821 |
* [BUGFIX] Fix notify channel concurrency bug (#216) |
| 822 |
|
| 823 |
# 0.4.0 (July 16, 2015) |
| 824 |
|
| 825 |
* [BUGFIX] EventLoop::register requests all events, not just readable. |
| 826 |
* [BUGFIX] Attempting to send a message to a shutdown event loop fails correctly. |
| 827 |
* [FEATURE] Expose TCP shutdown |
| 828 |
* [IMPROVEMENT] Coalesce readable & writable into `ready` event (#184) |
| 829 |
* [IMPROVEMENT] Rename TryRead & TryWrite function names to avoid conflict with std. |
| 830 |
* [IMPROVEMENT] Provide TCP and UDP types in Mio (path to windows #155) |
| 831 |
* [IMPROVEMENT] Use clock_ticks crate instead of time (path to windows #155) |
| 832 |
* [IMPROVEMENT] Move unix specific features into mio::unix module |
| 833 |
* [IMPROVEMENT] TcpListener sets SO_REUSEADDR by default |