Debian Codegraph @

third_party/rust/enum-map/CHANGELOG.md

raw
1 <!--
2 SPDX-FileCopyrightText: 2018 - 2023 Kamila Borowska <[email protected]>
3 SPDX-FileCopyrightText: 2021 Alex Sayers <[email protected]>
4
5 SPDX-License-Identifier: MIT OR Apache-2.0
6 -->
7
8 # Version 2.7.3
9
10 ## Other changes
11
12 - Fixed [a regression introduced in 2.7.2 that caused `#[derive(Enum)]` to
13 generate incorrect code when dealing with enums containing
14 fields](https://codeberg.org/xfix/enum-map/issues/112).
15
16 # Version 2.7.2
17
18 ## Other changes
19
20 - Reduced RAM usage and improved compilation times when using `derive(Enum)`
21 for large enums with `overflow-checks` enabled.
22
23 # Version 2.7.1
24
25 ## Other changes
26
27 - Updated author name.
28
29 # Version 2.7.0
30
31 ## New features
32
33 - Implemented `EnumMap::from_fn`.
34
35 # Version 2.6.3
36
37 ## Other changes
38
39 - Updated the repository URL as the project was migrated from GitHub
40 to Codeberg.
41
42 - This project is now compliant with the REUSE Specification.
43
44 # Version 2.6.2
45
46 ## Other changes
47
48 - Hide `out_of_bounds` reexport from documentation.
49
50 # Version 2.6.1
51
52 ## Other changes
53
54 - Provide better panic message when providing out-of-bounds index
55 to `Enum::from_usize``.
56
57 # Version 2.6.0
58
59 ## New features
60
61 - `EnumMap::as_array` is now usable in const contexts.
62
63 ## Other changes
64
65 - This crate now follows "N minus two" MSRV policy. This means that
66 it supports the current Rust release, as well as the two before
67 that.
68
69 - Upgraded syn to 2.0.0.
70
71 # Version 2.5.0
72
73 ## New features
74
75 - Implemented `EnumMap::as_array` and `EnumMap::as_mut_array`
76 (implemented by [@Fuuzetsu](https://github.com/Fuuzetsu)).
77
78 - Implemented `PartialOrd` and `Ord` for `EnumMap` (implemented by
79 [@nicarran](https://github.com/nicarran)).
80
81 # Version 2.4.2
82
83 ## Other changes
84
85 - Added license files to crate tarball.
86 - Added changelog to crate tarball.
87
88 # Version 2.4.1
89
90 ## Other changes
91
92 - Improved performance of code generated for `from_usize` when
93 deriving `Enum`.
94
95 # Version 2.4.0
96
97 ## New features
98
99 - Implemented `Enum` for `()` (unit type) and `core::cmp::Ordering`
100 (implemented by [@phimuemue](https://github.com/phimuemue)).
101
102 - Implemented `EnumMap::into_array`.
103
104 # Version 2.3.0
105
106 ## New features
107
108 - `EnumMap::len` is now usable in const contexts.
109
110 ## Other changes
111
112 - `Enum` derive now can deal with re-definitions of `usize` and
113 `unimplemented`.
114
115 # Version 2.2.0
116
117 ## New features
118
119 - `EnumMap::from_array` is now usable in const contexts.
120
121 # Version 2.1.0
122
123 ## New features
124
125 - Implemented `DoubleEndedIterator` for `IntoIter`.
126
127 - Implemented `EnumMap::into_values`.
128
129 ## Other changes
130
131 - Changed behavior of `IntoIter` so that it drops rest of the elements
132 when one destructor panics.
133
134 # Version 2.0.3
135
136 ## Other changes
137
138 - Optimized performance of `enum_map!` macro.
139
140 # Version 2.0.2
141
142 ## Other changes
143
144 - Fixed safety problem when using `enum_map!` macro with enums that
145 incorrectly implemented `Enum` trait.
146
147 # Version 2.0.1
148
149 ## Other changes
150
151 - Adjusted crate metadata to avoid lib.rs warnings.
152
153 # Version 2.0.0
154
155 ## New features
156
157 - Implemented `FromIterator` for `EnumMap` (implemented by @bit_network
158 on GitLab).
159
160 - Implemented `EnumMap::map`.
161
162 - Derives support product types in addition to sum types (implemented
163 by @bzim on GitLab).
164
165 - It's now possible to access enum length by accessing `LENGTH` in
166 `Enum` trait.
167
168 ## Breaking changes
169
170 - `Enum` trait was split into two traits, `Enum` and `EnumArray`.
171
172 # Version 1.1.1
173
174 ## Other changes
175
176 - Worked around a bug in Clippy that caused false positives when using
177 `use_self` lint for code that derived `Enum` trait.
178
179 # Version 1.1.0
180
181 ## New features
182
183 - Implemented `Arbitrary` for maps where the value type also implements
184 `Arbitrary`. (You have to enable the "arbitrary" feature.)
185
186 # Version 1.0.0
187
188 ## New features
189
190 - It's now possible to use `return` and `?` within `macro_rules!` macro.
191
192 - `Enum` trait is much simpler having two methods only.
193
194 ## Other changes
195
196 - Removed previously deprecated features.
197
198 - Renamed `to_usize` to `into_usize` matching the naming convention
199 used in Rust programming language.
200
201 # Version 0.6.5
202
203 ## Other changes
204
205 - Deprecated `EnumMap::is_empty` and `EnumMap::new`. `EnumMap::new` usages
206 can be replaced with `EnumMap::default`.
207
208 # Version 0.6.4
209
210 ## Other changes
211
212 - Deprecated `EnumMap::as_ptr` and `EnumMap::as_mut_ptr`.
213
214 # Version 0.6.3
215
216 ## New features
217
218 - `Iter` and `Values` now implements `Clone` (added by @amanieu).
219
220 # Version 0.6.2.
221
222 ## New features
223
224 - Added `EnumMap#clear` method (added by @Riey, thanks :)).
225
226 # Version 0.6.0
227
228 ## Incompatible changes
229
230 - Now requires Rust 1.36.
231
232 # Version 0.5.0
233
234 - Fixed the issue where an aliasing `From` trait implementation caused
235 compilation errors with `enum_map!` macro.
236
237 ## Incompatible changes
238
239 - Now requires Rust 1.31.
240
241 # Version 0.4.1
242
243 ## New features
244
245 - Default `serde` features are disabled. This allows enabling serde feature when
246 compiling without `std`.
247
248 # Version 0.4.0
249
250 Change of `#[derive(EnumMap)]` to `#[derive(Enum)]` was supposed to appear in 0.3.0,
251 but it was forgotten about. This release fixes just that.
252
253 ## Incompatible changes
254
255 - Changed `#[derive(EnumMap)]` to `#[derive(Enum)]` to match trait name.
256
257 # Version 0.3.1
258
259 - Updated README use `#[derive(EnumMap)]` instead of `#[derive(Enum)]`.
260
261 # Version 0.3.0
262
263 ## New features
264
265 - Implemented compact serde serialization for binary formats like bincode.
266
267 - Iterator traits with exception now implement `FusedIterator`.
268
269 ## Incompatible changes
270
271 - Increased required Rust version to 1.26.0.
272
273 - Renamed `Internal` trait to `Enum`.
274
275 - Added new associated constant `POSSIBLE_VALUES` to `Enum` trait,
276 representing the number of possible values the type can have. Manual
277 implementations are required to provide it.
278
279 - Removed `Enum` implementation for `Option<T>`.
280
281 - Implemented compact serialization, for formats like `bincode`. This
282 makes it impossible to deserialize non-compact representation used by
283 enum-map 0.2.0.
284
285 - `values` method returns `Values<V>` as opposed to `slice::Iter<V>`.