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