Debian Codegraph @

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