|
| 1 | +# 1.21.0 (September 2, 2022) |
| 2 | + |
| 3 | +This release is the first release of Tokio to intentionally support WASM. The |
| 4 | +`sync,macros,io-util,rt,time` features are stabilized on WASM. Additionally the |
| 5 | +wasm32-wasi target is given unstable support for the `net` feature. |
| 6 | + |
| 7 | +### Added |
| 8 | + |
| 9 | +- net: add `device` and `bind_device` methods to TCP/UDP sockets ([#4882]) |
| 10 | +- net: add `tos` and `set_tos` methods to TCP and UDP sockets ([#4877]) |
| 11 | +- net: add security flags to named pipe `ServerOptions` ([#4845]) |
| 12 | +- signal: add more windows signal handlers ([#4924]) |
| 13 | +- sync: add `mpsc::Sender::max_capacity` method ([#4904]) |
| 14 | +- sync: implement Weak version of `mpsc::Sender` ([#4595]) |
| 15 | +- task: add `LocalSet::enter` ([#4765]) |
| 16 | +- task: stabilize `JoinSet` and `AbortHandle` ([#4920]) |
| 17 | +- tokio: add `track_caller` to public APIs ([#4805], [#4848], [#4852]) |
| 18 | +- wasm: initial support for `wasm32-wasi` target ([#4716]) |
| 19 | + |
| 20 | +### Fixed |
| 21 | + |
| 22 | +- miri: improve miri compatibility by avoiding temporary references in `linked_list::Link` impls ([#4841]) |
| 23 | +- signal: don't register write interest on signal pipe ([#4898]) |
| 24 | +- sync: add `#[must_use]` to lock guards ([#4886]) |
| 25 | +- sync: fix hang when calling `recv` on closed and reopened broadcast channel ([#4867]) |
| 26 | +- task: propagate attributes on task-locals ([#4837]) |
| 27 | + |
| 28 | +### Changed |
| 29 | + |
| 30 | +- fs: change panic to error in `File::start_seek` ([#4897]) |
| 31 | +- io: reduce syscalls in `poll_read` ([#4840]) |
| 32 | +- process: use blocking threadpool for child stdio I/O ([#4824]) |
| 33 | +- signal: make `SignalKind` methods const ([#4956]) |
| 34 | + |
| 35 | +### Internal changes |
| 36 | + |
| 37 | +- rt: extract `basic_scheduler::Config` ([#4935]) |
| 38 | +- rt: move I/O driver into `runtime` module ([#4942]) |
| 39 | +- rt: rename internal scheduler types ([#4945]) |
| 40 | + |
| 41 | +### Documented |
| 42 | + |
| 43 | +- chore: fix typos and grammar ([#4858], [#4894], [#4928]) |
| 44 | +- io: fix typo in `AsyncSeekExt::rewind` docs ([#4893]) |
| 45 | +- net: add documentation to `try_read()` for zero-length buffers ([#4937]) |
| 46 | +- runtime: remove incorrect panic section for `Builder::worker_threads` ([#4849]) |
| 47 | +- sync: doc of `watch::Sender::send` improved ([#4959]) |
| 48 | +- task: add cancel safety docs to `JoinHandle` ([#4901]) |
| 49 | +- task: expand on cancellation of `spawn_blocking` ([#4811]) |
| 50 | +- time: clarify that the first tick of `Interval::tick` happens immediately ([#4951]) |
| 51 | + |
| 52 | +### Unstable |
| 53 | + |
| 54 | +- rt: add unstable option to disable the LIFO slot ([#4936]) |
| 55 | +- task: fix incorrect signature in `Builder::spawn_on` ([#4953]) |
| 56 | +- task: make `task::Builder::spawn*` methods fallible ([#4823]) |
| 57 | + |
| 58 | +[#4595]: https://github.com/tokio-rs/tokio/pull/4595 |
| 59 | +[#4716]: https://github.com/tokio-rs/tokio/pull/4716 |
| 60 | +[#4765]: https://github.com/tokio-rs/tokio/pull/4765 |
| 61 | +[#4805]: https://github.com/tokio-rs/tokio/pull/4805 |
| 62 | +[#4811]: https://github.com/tokio-rs/tokio/pull/4811 |
| 63 | +[#4823]: https://github.com/tokio-rs/tokio/pull/4823 |
| 64 | +[#4824]: https://github.com/tokio-rs/tokio/pull/4824 |
| 65 | +[#4837]: https://github.com/tokio-rs/tokio/pull/4837 |
| 66 | +[#4840]: https://github.com/tokio-rs/tokio/pull/4840 |
| 67 | +[#4841]: https://github.com/tokio-rs/tokio/pull/4841 |
| 68 | +[#4845]: https://github.com/tokio-rs/tokio/pull/4845 |
| 69 | +[#4848]: https://github.com/tokio-rs/tokio/pull/4848 |
| 70 | +[#4849]: https://github.com/tokio-rs/tokio/pull/4849 |
| 71 | +[#4852]: https://github.com/tokio-rs/tokio/pull/4852 |
| 72 | +[#4858]: https://github.com/tokio-rs/tokio/pull/4858 |
| 73 | +[#4867]: https://github.com/tokio-rs/tokio/pull/4867 |
| 74 | +[#4877]: https://github.com/tokio-rs/tokio/pull/4877 |
| 75 | +[#4882]: https://github.com/tokio-rs/tokio/pull/4882 |
| 76 | +[#4886]: https://github.com/tokio-rs/tokio/pull/4886 |
| 77 | +[#4893]: https://github.com/tokio-rs/tokio/pull/4893 |
| 78 | +[#4894]: https://github.com/tokio-rs/tokio/pull/4894 |
| 79 | +[#4897]: https://github.com/tokio-rs/tokio/pull/4897 |
| 80 | +[#4898]: https://github.com/tokio-rs/tokio/pull/4898 |
| 81 | +[#4901]: https://github.com/tokio-rs/tokio/pull/4901 |
| 82 | +[#4904]: https://github.com/tokio-rs/tokio/pull/4904 |
| 83 | +[#4920]: https://github.com/tokio-rs/tokio/pull/4920 |
| 84 | +[#4924]: https://github.com/tokio-rs/tokio/pull/4924 |
| 85 | +[#4928]: https://github.com/tokio-rs/tokio/pull/4928 |
| 86 | +[#4935]: https://github.com/tokio-rs/tokio/pull/4935 |
| 87 | +[#4936]: https://github.com/tokio-rs/tokio/pull/4936 |
| 88 | +[#4937]: https://github.com/tokio-rs/tokio/pull/4937 |
| 89 | +[#4942]: https://github.com/tokio-rs/tokio/pull/4942 |
| 90 | +[#4945]: https://github.com/tokio-rs/tokio/pull/4945 |
| 91 | +[#4951]: https://github.com/tokio-rs/tokio/pull/4951 |
| 92 | +[#4953]: https://github.com/tokio-rs/tokio/pull/4953 |
| 93 | +[#4956]: https://github.com/tokio-rs/tokio/pull/4956 |
| 94 | +[#4959]: https://github.com/tokio-rs/tokio/pull/4959 |
| 95 | + |
1 | 96 | # 1.20.1 (July 25, 2022)
|
2 | 97 |
|
3 | 98 | ### Fixed
|
|
0 commit comments