|
| 1 | +# 1.18.0 (April 27, 2022) |
| 2 | + |
| 3 | +This release adds a number of new APIs in `tokio::net`, `tokio::signal`, and |
| 4 | +`tokio::sync`. In addition, it adds new unstable APIs to `tokio::task` (`Id`s |
| 5 | +for uniquely identifying a task, and `AbortHandle` for remotely cancelling a |
| 6 | +task), as well as a number of bugfixes. |
| 7 | + |
| 8 | +### Fixed |
| 9 | + |
| 10 | +- blocking: add missing `#[track_caller]` for `spawn_blocking` ([#4616]) |
| 11 | +- macros: fix `select` macro to process 64 branches ([#4519]) |
| 12 | +- net: fix `try_io` methods not calling Mio's `try_io` internally ([#4582]) |
| 13 | +- runtime: recover when OS fails to spawn a new thread ([#4485]) |
| 14 | + |
| 15 | +### Added |
| 16 | + |
| 17 | +- macros: support setting a custom crate name for `#[tokio::main]` and |
| 18 | + `#[tokio::test]` ([#4613]) |
| 19 | +- net: add `UdpSocket::peer_addr` ([#4611]) |
| 20 | +- net: add `try_read_buf` method for named pipes ([#4626]) |
| 21 | +- signal: add `SignalKind` `Hash`/`Eq` impls and `c_int` conversion ([#4540]) |
| 22 | +- signal: add support for signals up to `SIGRTMAX` ([#4555]) |
| 23 | +- sync: add `watch::Sender::send_modify` method ([#4310]) |
| 24 | +- sync: add `broadcast::Receiver::len` method ([#4542]) |
| 25 | +- sync: add `watch::Receiver::same_channel` method ([#4581]) |
| 26 | +- sync: implement `Clone` for `RecvError` types ([#4560]) |
| 27 | + |
| 28 | +### Changed |
| 29 | + |
| 30 | +- update `mio` to 0.8.1 ([#4582]) |
| 31 | +- macros: rename `tokio::select!`'s internal `util` module ([#4543]) |
| 32 | +- runtime: use `Vec::with_capacity` when building runtime ([#4553]) |
| 33 | + |
| 34 | +### Documented |
| 35 | + |
| 36 | +- improve docs for `tokio_unstable` ([#4524]) |
| 37 | +- runtime: include more documentation for thread_pool/worker ([#4511]) |
| 38 | +- runtime: update `Handle::current`'s docs to mention `EnterGuard` ([#4567]) |
| 39 | +- time: clarify platform specific timer resolution ([#4474]) |
| 40 | +- signal: document that `Signal::recv` is cancel-safe ([#4634]) |
| 41 | +- sync: `UnboundedReceiver` close docs ([#4548]) |
| 42 | + |
| 43 | +### Unstable |
| 44 | + |
| 45 | +The following changes only apply when building with `--cfg tokio_unstable`: |
| 46 | + |
| 47 | +- task: add `task::Id` type ([#4630]) |
| 48 | +- task: add `AbortHandle` type for cancelling tasks in a `JoinSet` ([#4530], |
| 49 | + [#4640]) |
| 50 | +- task: fix missing `doc(cfg(...))` attributes for `JoinSet` ([#4531]) |
| 51 | +- task: fix broken link in `AbortHandle` RustDoc ([#4545]) |
| 52 | +- metrics: add initial IO driver metrics ([#4507]) |
| 53 | + |
| 54 | + |
| 55 | +[#4616]: https://github.com/tokio-rs/tokio/pull/4616 |
| 56 | +[#4519]: https://github.com/tokio-rs/tokio/pull/4519 |
| 57 | +[#4582]: https://github.com/tokio-rs/tokio/pull/4582 |
| 58 | +[#4485]: https://github.com/tokio-rs/tokio/pull/4485 |
| 59 | +[#4613]: https://github.com/tokio-rs/tokio/pull/4613 |
| 60 | +[#4611]: https://github.com/tokio-rs/tokio/pull/4611 |
| 61 | +[#4626]: https://github.com/tokio-rs/tokio/pull/4626 |
| 62 | +[#4540]: https://github.com/tokio-rs/tokio/pull/4540 |
| 63 | +[#4555]: https://github.com/tokio-rs/tokio/pull/4555 |
| 64 | +[#4310]: https://github.com/tokio-rs/tokio/pull/4310 |
| 65 | +[#4542]: https://github.com/tokio-rs/tokio/pull/4542 |
| 66 | +[#4581]: https://github.com/tokio-rs/tokio/pull/4581 |
| 67 | +[#4560]: https://github.com/tokio-rs/tokio/pull/4560 |
| 68 | +[#4631]: https://github.com/tokio-rs/tokio/pull/4631 |
| 69 | +[#4582]: https://github.com/tokio-rs/tokio/pull/4582 |
| 70 | +[#4543]: https://github.com/tokio-rs/tokio/pull/4543 |
| 71 | +[#4553]: https://github.com/tokio-rs/tokio/pull/4553 |
| 72 | +[#4524]: https://github.com/tokio-rs/tokio/pull/4524 |
| 73 | +[#4511]: https://github.com/tokio-rs/tokio/pull/4511 |
| 74 | +[#4567]: https://github.com/tokio-rs/tokio/pull/4567 |
| 75 | +[#4474]: https://github.com/tokio-rs/tokio/pull/4474 |
| 76 | +[#4634]: https://github.com/tokio-rs/tokio/pull/4634 |
| 77 | +[#4548]: https://github.com/tokio-rs/tokio/pull/4548 |
| 78 | +[#4630]: https://github.com/tokio-rs/tokio/pull/4630 |
| 79 | +[#4530]: https://github.com/tokio-rs/tokio/pull/4530 |
| 80 | +[#4640]: https://github.com/tokio-rs/tokio/pull/4640 |
| 81 | +[#4531]: https://github.com/tokio-rs/tokio/pull/4531 |
| 82 | +[#4545]: https://github.com/tokio-rs/tokio/pull/4545 |
| 83 | +[#4507]: https://github.com/tokio-rs/tokio/pull/4507 |
| 84 | + |
1 | 85 | # 1.17.0 (February 16, 2022)
|
2 | 86 |
|
3 | 87 | This release updates the minimum supported Rust version (MSRV) to 1.49, the
|
|
0 commit comments