Debian Codegraph @

third_party/rust/pin-project-lite/CHANGELOG.md

raw
1 # Changelog
2
3 All notable changes to this project will be documented in this file.
4
5 This project adheres to [Semantic Versioning](https://semver.org).
6
7 <!--
8 Note: In this file, do not use the hard wrap in the middle of a sentence for compatibility with GitHub comment style markdown rendering.
9 -->
10
11 ## [Unreleased]
12
13 ## [0.2.14] - 2024-03-29
14
15 - Document `PinnedDrop`. ([#83](https://github.com/taiki-e/pin-project-lite/pull/83), thanks @jbr)
16
17 ## [0.2.13] - 2023-08-25
18
19 - Allow attributes in impl and method of `PinnedDrop` implementation.
20
21 ## [0.2.12] - 2023-08-09
22
23 - Work around an issue where the projected types/methods appear in the documentation as if they were part of the public API if the visibility is not correctly parsed due to the rustc bug. See [#77](https://github.com/taiki-e/pin-project-lite/issues/77#issuecomment-1671540180) for details.
24
25 ## [0.2.11] - 2023-08-06
26
27 - Add support for `#[project(!Unpin)]`. This is equivalent to pin-project's [!Unpin](https://docs.rs/pin-project/latest/pin_project/attr.pin_project.html#unpin) option. ([#76](https://github.com/taiki-e/pin-project-lite/pull/76), thanks @matheus-consoli)
28
29 ## [0.2.10] - 2023-07-02
30
31 - Inline project methods. ([#74](https://github.com/taiki-e/pin-project-lite/pull/74), thanks @EFanZh)
32
33 ## [0.2.9] - 2022-04-26
34
35 - Improve compile time of `pin_project!` calls. ([#71](https://github.com/taiki-e/pin-project-lite/pull/71), thanks @nnethercote)
36
37 ## [0.2.8] - 2021-12-31
38
39 - Fix handling of trailing commas in `PinnedDrop` impl. ([#64](https://github.com/taiki-e/pin-project-lite/pull/64), thanks @Michael-J-Ward)
40
41 ## [0.2.7] - 2021-06-26
42
43 - [Support custom Drop implementation.](https://github.com/taiki-e/pin-project-lite/pull/25) See [#25](https://github.com/taiki-e/pin-project-lite/pull/25) for details.
44
45 ## [0.2.6] - 2021-03-04
46
47 - Support item attributes in any order. ([#57](https://github.com/taiki-e/pin-project-lite/pull/57), thanks @SabrinaJewson)
48
49 ## [0.2.5] - 2021-03-02
50
51 - [Prepare for removal of `safe_packed_borrows` lint.](https://github.com/taiki-e/pin-project-lite/pull/55) See [#55](https://github.com/taiki-e/pin-project-lite/pull/55) for details.
52
53 ## [0.2.4] - 2021-01-11
54
55 **Note:** This release has been yanked. See [#55](https://github.com/taiki-e/pin-project-lite/pull/55) for details.
56
57 - Add `project_replace`. ([#43](https://github.com/taiki-e/pin-project-lite/pull/43), thanks @Marwes)
58
59 ## [0.2.3] - 2021-01-09
60
61 **Note:** This release has been yanked. See [#55](https://github.com/taiki-e/pin-project-lite/pull/55) for details.
62
63 - [Suppress `clippy::unknown_clippy_lints` lint in generated code.](https://github.com/taiki-e/pin-project-lite/pull/47)
64
65 ## [0.2.2] - 2021-01-09
66
67 **Note:** This release has been yanked.** See [#55](https://github.com/taiki-e/pin-project-lite/pull/55) for details.
68
69 - [Suppress `clippy::ref_option_ref` lint in generated code.](https://github.com/taiki-e/pin-project-lite/pull/45)
70
71 ## [0.2.1] - 2021-01-05
72
73 **Note:** This release has been yanked. See [#55](https://github.com/taiki-e/pin-project-lite/pull/55) for details.
74
75 - Exclude unneeded files from crates.io.
76
77 ## [0.2.0] - 2020-11-13
78
79 **Note:** This release has been yanked. See [#55](https://github.com/taiki-e/pin-project-lite/pull/55) for details.
80
81 - [`pin_project!` macro now supports enums.](https://github.com/taiki-e/pin-project-lite/pull/28)
82
83 To use `pin_project!` on enums, you need to name the projection type returned from the method.
84
85 ```rust
86 use pin_project_lite::pin_project;
87 use std::pin::Pin;
88
89 pin_project! {
90 #[project = EnumProj]
91 enum Enum<T, U> {
92 Variant { #[pin] pinned: T, unpinned: U },
93 }
94 }
95
96 impl<T, U> Enum<T, U> {
97 fn method(self: Pin<&mut Self>) {
98 match self.project() {
99 EnumProj::Variant { pinned, unpinned } => {
100 let _: Pin<&mut T> = pinned;
101 let _: &mut U = unpinned;
102 }
103 }
104 }
105 }
106 ```
107
108 - [Support naming the projection types.](https://github.com/taiki-e/pin-project-lite/pull/28)
109
110 By passing an attribute with the same name as the method, you can name the projection type returned from the method:
111
112 ```rust
113 use pin_project_lite::pin_project;
114 use std::pin::Pin;
115
116 pin_project! {
117 #[project = StructProj]
118 struct Struct<T> {
119 #[pin]
120 field: T,
121 }
122 }
123
124 fn func<T>(x: Pin<&mut Struct<T>>) {
125 let StructProj { field } = x.project();
126 let _: Pin<&mut T> = field;
127 }
128 ```
129
130 ## [0.1.12] - 2021-03-02
131
132 - [Prepare for removal of `safe_packed_borrows` lint.](https://github.com/taiki-e/pin-project-lite/pull/55) See [#55](https://github.com/taiki-e/pin-project-lite/pull/55) for details.
133
134 ## [0.1.11] - 2020-10-20
135
136 **Note:** This release has been yanked. See [#55](https://github.com/taiki-e/pin-project-lite/pull/55) for details.
137
138 - Suppress `clippy::redundant_pub_crate` lint in generated code.
139
140 - Documentation improvements.
141
142 ## [0.1.10] - 2020-10-01
143
144 **Note:** This release has been yanked. See [#55](https://github.com/taiki-e/pin-project-lite/pull/55) for details.
145
146 - Suppress `drop_bounds` lint, which will be added to rustc in the future. See [taiki-e/pin-project#272](https://github.com/taiki-e/pin-project/issues/272) for more details.
147
148 ## [0.1.9] - 2020-09-29
149
150 **Note:** This release has been yanked. See [#55](https://github.com/taiki-e/pin-project-lite/pull/55) for details.
151
152 - [Fix trailing comma support in generics.](https://github.com/taiki-e/pin-project-lite/pull/32)
153
154 ## [0.1.8] - 2020-09-26
155
156 **Note:** This release has been yanked. See [#55](https://github.com/taiki-e/pin-project-lite/pull/55) for details.
157
158 - [Fix compatibility of generated code with `forbid(future_incompatible)`.](https://github.com/taiki-e/pin-project-lite/pull/30)
159
160 Note: This does not guarantee compatibility with `forbid(future_incompatible)` in the future.
161 If rustc adds a new lint, we may not be able to keep this.
162
163 ## [0.1.7] - 2020-06-04
164
165 **Note:** This release has been yanked. See [#55](https://github.com/taiki-e/pin-project-lite/pull/55) for details.
166
167 - [Support `?Sized` bounds in where clauses.](https://github.com/taiki-e/pin-project-lite/pull/22)
168
169 - [Fix lifetime inference error when an associated type is used in fields.](https://github.com/taiki-e/pin-project-lite/pull/20)
170
171 - Suppress `clippy::used_underscore_binding` lint in generated code.
172
173 - Documentation improvements.
174
175 ## [0.1.6] - 2020-05-31
176
177 **Note:** This release has been yanked. See [#55](https://github.com/taiki-e/pin-project-lite/pull/55) for details.
178
179 - [Support lifetime bounds in where clauses.](https://github.com/taiki-e/pin-project-lite/pull/18)
180
181 - Documentation improvements.
182
183 ## [0.1.5] - 2020-05-07
184
185 **Note:** This release has been yanked. See [#55](https://github.com/taiki-e/pin-project-lite/pull/55) for details.
186
187 - [Support overwriting the name of `core` crate.](https://github.com/taiki-e/pin-project-lite/pull/14)
188
189 ## [0.1.4] - 2020-01-20
190
191 **Note:** This release has been yanked. See [#55](https://github.com/taiki-e/pin-project-lite/pull/55) for details.
192
193 - [Support ?Sized bounds in generic parameters.](https://github.com/taiki-e/pin-project-lite/pull/9)
194
195 ## [0.1.3] - 2020-01-20
196
197 **Note:** This release has been yanked. See [#55](https://github.com/taiki-e/pin-project-lite/pull/55) for details.
198
199 - [Support lifetime bounds in generic parameters.](https://github.com/taiki-e/pin-project-lite/pull/7)
200
201 ## [0.1.2] - 2020-01-05
202
203 **Note:** This release has been yanked. See [#55](https://github.com/taiki-e/pin-project-lite/pull/55) for details.
204
205 - Support recognizing default generic parameters. ([#6](https://github.com/taiki-e/pin-project-lite/pull/6), thanks @kennytm)
206
207 ## [0.1.1] - 2019-11-15
208
209 **Note:** This release has been yanked. See [#55](https://github.com/taiki-e/pin-project-lite/pull/55) for details.
210
211 - [`pin_project!` macro now determines the visibility of the projection type/method is based on the original type.](https://github.com/taiki-e/pin-project-lite/pull/5)
212
213 ## [0.1.0] - 2019-10-22
214
215 **Note:** This release has been yanked. See [#55](https://github.com/taiki-e/pin-project-lite/pull/55) for details.
216
217 Initial release
218
219 [Unreleased]: https://github.com/taiki-e/pin-project-lite/compare/v0.2.14...HEAD
220 [0.2.14]: https://github.com/taiki-e/pin-project-lite/compare/v0.2.13...v0.2.14
221 [0.2.13]: https://github.com/taiki-e/pin-project-lite/compare/v0.2.12...v0.2.13
222 [0.2.12]: https://github.com/taiki-e/pin-project-lite/compare/v0.2.11...v0.2.12
223 [0.2.11]: https://github.com/taiki-e/pin-project-lite/compare/v0.2.10...v0.2.11
224 [0.2.10]: https://github.com/taiki-e/pin-project-lite/compare/v0.2.9...v0.2.10
225 [0.2.9]: https://github.com/taiki-e/pin-project-lite/compare/v0.2.8...v0.2.9
226 [0.2.8]: https://github.com/taiki-e/pin-project-lite/compare/v0.2.7...v0.2.8
227 [0.2.7]: https://github.com/taiki-e/pin-project-lite/compare/v0.2.6...v0.2.7
228 [0.2.6]: https://github.com/taiki-e/pin-project-lite/compare/v0.2.5...v0.2.6
229 [0.2.5]: https://github.com/taiki-e/pin-project-lite/compare/v0.2.4...v0.2.5
230 [0.2.4]: https://github.com/taiki-e/pin-project-lite/compare/v0.2.3...v0.2.4
231 [0.2.3]: https://github.com/taiki-e/pin-project-lite/compare/v0.2.2...v0.2.3
232 [0.2.2]: https://github.com/taiki-e/pin-project-lite/compare/v0.2.1...v0.2.2
233 [0.2.1]: https://github.com/taiki-e/pin-project-lite/compare/v0.2.0...v0.2.1
234 [0.2.0]: https://github.com/taiki-e/pin-project-lite/compare/v0.1.11...v0.2.0
235 [0.1.12]: https://github.com/taiki-e/pin-project-lite/compare/v0.1.11...v0.1.12
236 [0.1.11]: https://github.com/taiki-e/pin-project-lite/compare/v0.1.10...v0.1.11
237 [0.1.10]: https://github.com/taiki-e/pin-project-lite/compare/v0.1.9...v0.1.10
238 [0.1.9]: https://github.com/taiki-e/pin-project-lite/compare/v0.1.8...v0.1.9
239 [0.1.8]: https://github.com/taiki-e/pin-project-lite/compare/v0.1.7...v0.1.8
240 [0.1.7]: https://github.com/taiki-e/pin-project-lite/compare/v0.1.6...v0.1.7
241 [0.1.6]: https://github.com/taiki-e/pin-project-lite/compare/v0.1.5...v0.1.6
242 [0.1.5]: https://github.com/taiki-e/pin-project-lite/compare/v0.1.4...v0.1.5
243 [0.1.4]: https://github.com/taiki-e/pin-project-lite/compare/v0.1.3...v0.1.4
244 [0.1.3]: https://github.com/taiki-e/pin-project-lite/compare/v0.1.2...v0.1.3
245 [0.1.2]: https://github.com/taiki-e/pin-project-lite/compare/v0.1.1...v0.1.2
246 [0.1.1]: https://github.com/taiki-e/pin-project-lite/compare/v0.1.0...v0.1.1
247 [0.1.0]: https://github.com/taiki-e/pin-project-lite/releases/tag/v0.1.0