1# 2.5.0 (Jan 8th, 2025) 2 3- macros: suppress `clippy::needless_return` in `#[tokio::main]` ([#6874]) 4 5[#6874]: https://github.com/tokio-rs/tokio/pull/6874 6 7# 2.4.0 (July 22nd, 2024) 8 9- msrv: increase MSRV to 1.70 ([#6645]) 10- macros: allow `unhandled_panic` behavior for `#[tokio::main]` and `#[tokio::test]` ([#6593]) 11 12[#6593]: https://github.com/tokio-rs/tokio/pull/6593 13[#6645]: https://github.com/tokio-rs/tokio/pull/6645 14 15# 2.3.0 (May 30th, 2024) 16 17- macros: make `#[tokio::test]` append `#[test]` at the end of the attribute list ([#6497]) 18 19[#6497]: https://github.com/tokio-rs/tokio/pull/6497 20 21# 2.2.0 (November 19th, 2023) 22 23### Changed 24 25- use `::core` qualified imports instead of `::std` inside `tokio::test` macro ([#5973]) 26 27[#5973]: https://github.com/tokio-rs/tokio/pull/5973 28 29# 2.1.0 (April 25th, 2023) 30 31- macros: fix typo in `#[tokio::test]` docs ([#5636]) 32- macros: make entrypoints more efficient ([#5621]) 33 34[#5621]: https://github.com/tokio-rs/tokio/pull/5621 35[#5636]: https://github.com/tokio-rs/tokio/pull/5636 36 37# 2.0.0 (March 24th, 2023) 38 39This major release updates the dependency on the syn crate to 2.0.0, and 40increases the MSRV to 1.56. 41 42As part of this release, we are adopting a policy of depending on a specific minor 43release of tokio-macros. This prevents Tokio from being able to pull in many different 44versions of tokio-macros. 45 46- macros: update `syn` ([#5572]) 47- macros: accept path as crate rename ([#5557]) 48 49[#5572]: https://github.com/tokio-rs/tokio/pull/5572 50[#5557]: https://github.com/tokio-rs/tokio/pull/5557 51 52# 1.8.2 (November 30th, 2022) 53 54- fix a regression introduced in 1.8.1 ([#5244]) 55 56[#5244]: https://github.com/tokio-rs/tokio/pull/5244 57 58# 1.8.1 (November 29th, 2022) 59 60(yanked) 61 62- macros: Pin Futures in `#[tokio::test]` to stack ([#5205]) 63- macros: Reduce usage of last statement spans in proc-macros ([#5092]) 64- macros: Improve the documentation for `#[tokio::test]` ([#4761]) 65 66[#5205]: https://github.com/tokio-rs/tokio/pull/5205 67[#5092]: https://github.com/tokio-rs/tokio/pull/5092 68[#4761]: https://github.com/tokio-rs/tokio/pull/4761 69 70# 1.8.0 (June 4th, 2022) 71 72- macros: always emit return statement ([#4636]) 73- macros: support setting a custom crate name for `#[tokio::main]` and `#[tokio::test]` ([#4613]) 74 75[#4613]: https://github.com/tokio-rs/tokio/pull/4613 76[#4636]: https://github.com/tokio-rs/tokio/pull/4636 77 78# 1.7.0 (December 15th, 2021) 79 80- macros: address remaining `clippy::semicolon_if_nothing_returned` warning ([#4252]) 81 82[#4252]: https://github.com/tokio-rs/tokio/pull/4252 83 84# 1.6.0 (November 16th, 2021) 85 86- macros: fix mut patterns in `select!` macro ([#4211]) 87 88[#4211]: https://github.com/tokio-rs/tokio/pull/4211 89 90# 1.5.1 (October 29th, 2021) 91 92- macros: fix type resolution error in `#[tokio::main]` ([#4176]) 93 94[#4176]: https://github.com/tokio-rs/tokio/pull/4176 95 96# 1.5.0 (October 13th, 2021) 97 98- macros: make tokio-macros attributes more IDE friendly ([#4162]) 99 100[#4162]: https://github.com/tokio-rs/tokio/pull/4162 101 102# 1.4.1 (September 30th, 2021) 103 104Reverted: run `current_thread` inside `LocalSet` ([#4027]) 105 106# 1.4.0 (September 29th, 2021) 107 108(yanked) 109 110### Changed 111 112- macros: run `current_thread` inside `LocalSet` ([#4027]) 113- macros: explicitly relaxed clippy lint for `.expect()` in runtime entry macro ([#4030]) 114 115### Fixed 116 117- macros: fix invalid error messages in functions wrapped with `#[main]` or `#[test]` ([#4067]) 118 119[#4027]: https://github.com/tokio-rs/tokio/pull/4027 120[#4030]: https://github.com/tokio-rs/tokio/pull/4030 121[#4067]: https://github.com/tokio-rs/tokio/pull/4067 122 123# 1.3.0 (July 7, 2021) 124 125- macros: don't trigger `clippy::unwrap_used` ([#3926]) 126 127[#3926]: https://github.com/tokio-rs/tokio/pull/3926 128 129# 1.2.0 (May 14, 2021) 130 131- macros: forward input arguments in `#[tokio::test]` ([#3691]) 132- macros: improve diagnostics on type mismatch ([#3766]) 133- macros: various error message improvements ([#3677]) 134 135[#3677]: https://github.com/tokio-rs/tokio/pull/3677 136[#3691]: https://github.com/tokio-rs/tokio/pull/3691 137[#3766]: https://github.com/tokio-rs/tokio/pull/3766 138 139# 1.1.0 (February 5, 2021) 140 141- add `start_paused` option to macros ([#3492]) 142 143# 1.0.0 (December 23, 2020) 144 145- track `tokio` 1.0 release. 146 147# 0.3.1 (October 25, 2020) 148 149### Fixed 150 151- fix incorrect docs regarding `max_threads` option ([#3038]) 152 153# 0.3.0 (October 15, 2020) 154 155- Track `tokio` 0.3 release. 156 157### Changed 158- options are renamed to track `tokio` runtime builder fn names. 159- `#[tokio::main]` macro requires `rt-multi-thread` when no `flavor` is specified. 160 161# 0.2.5 (February 27, 2019) 162 163### Fixed 164- doc improvements ([#2225]). 165 166# 0.2.4 (January 27, 2019) 167 168### Fixed 169- generics on `#[tokio::main]` function ([#2177]). 170 171### Added 172- support for `tokio::select!` ([#2152]). 173 174# 0.2.3 (January 7, 2019) 175 176### Fixed 177- Revert breaking change. 178 179# 0.2.2 (January 7, 2019) 180 181### Added 182- General refactoring and inclusion of additional runtime options ([#2022] and [#2038]) 183 184# 0.2.1 (December 18, 2019) 185 186### Fixes 187- inherit visibility when wrapping async fn ([#1954]). 188 189# 0.2.0 (November 26, 2019) 190 191- Initial release 192 193[#1954]: https://github.com/tokio-rs/tokio/pull/1954 194[#2022]: https://github.com/tokio-rs/tokio/pull/2022 195[#2038]: https://github.com/tokio-rs/tokio/pull/2038 196[#2152]: https://github.com/tokio-rs/tokio/pull/2152 197[#2177]: https://github.com/tokio-rs/tokio/pull/2177 198[#2225]: https://github.com/tokio-rs/tokio/pull/2225 199[#3038]: https://github.com/tokio-rs/tokio/pull/3038 200[#3492]: https://github.com/tokio-rs/tokio/pull/3492 201