Debian Codegraph @

debian/rust-vendor/arrayvec/CHANGELOG.md

raw
1 Recent Changes (arrayvec)
2 =========================
3
4 ## 0.7.8
5
6 - Fix tests on 32-bit architectures by skipping them by [@decathorpe](https://github.com/decathorpe) [#312](https://github.com/bluss/arrayvec/pull/312).
7
8 ## 0.7.7
9
10 - Fix lifetime warning by [@niklasf](https://github.com/niklasf)
11 [#305](https://github.com/bluss/arrayvec/pull/305)
12 - Fix double free for ZSTs by [@Shnatsel](https://github.com/Shnatsel)
13 [#308](https://github.com/bluss/arrayvec/pull/308)
14 - Use 16-bit length on 16-bit targets (internal representation change) by
15 [@kornelski](https://github.com/kornelski)
16 [#234](https://github.com/bluss/arrayvec/pull/234)
17
18 ## 0.7.6
19
20 - Fix no-std build [#274](https://github.com/bluss/arrayvec/pull/274)
21
22 ## 0.7.5
23
24 - Add `as_ptr` and `as_mut_ptr` to `ArrayString` [@YuhanLiin](https://github.com/YuhanLiin) [#260](https://github.com/bluss/arrayvec/pull/260)
25 - Add borsh serialization support by @honzasp and @Fuuzetsu [#259](https://github.com/bluss/arrayvec/pull/259)
26 - Move length field before before data in ArrayVec and ArrayString by @JakkuSakura [#255](https://github.com/bluss/arrayvec/pull/255)
27 - Fix miri error for ZST case in extend by @bluss
28 - implement AsRef<Path> for ArrayString by [@Zoybean](https://github.com/Zoybean) [#218](https://github.com/bluss/arrayvec/pull/218)
29 - Fix typos in changelog by [@striezel](https://github.com/striezel) [#241](https://github.com/bluss/arrayvec/pull/241)
30 - Add `as_slice`, `as_mut_slice` methods to `IntoIter` by [@clarfonthey](https://github.com/clarfonthey) [#224](https://github.com/bluss/arrayvec/pull/224)
31
32
33 ## 0.7.4
34
35 - Add feature zeroize to support the `Zeroize` trait by @elichai
36
37 ## 0.7.3
38
39 - Use track_caller on multiple methods like push and similar, for capacity
40 overflows by @kornelski
41 - impl BorrowMut for ArrayString by @msrd0
42 - Fix stacked borrows violations by @clubby789
43 - Update Miri CI by @RalfJung
44
45 ## 0.7.2
46
47 - Add `.as_mut_str()` to `ArrayString` by @clarfonthey
48 - Add `remaining_capacity` to `ArrayString` by @bhgomes
49 - Add `zero_filled` constructor by @c410-f3r
50 - Optimize `retain` by @TennyZhuang and @niklasf
51 - Make the following methods `const` by @bhgomes:
52 - len
53 - is_empty
54 - capacity
55 - is_full
56 - remaining_capacity
57 - CapacityError::new
58
59 ## 0.7.1
60
61 - Add new ArrayVec methods `.take()` and `.into_inner_unchecked()` by @conradludgate
62 - `clone_from` now uses `truncate` when needed by @a1phyr
63
64 ## 0.7.0
65
66 - `fn new_const` is now the way to const-construct arrayvec and arraystring,
67 and `fn new` has been reverted to a regular "non-const" function.
68 This works around performance issue #182, where the const fn version did not
69 optimize well. Change by @bluss with thanks to @rodrimati1992 and @niklasf
70 for analyzing the problem.
71
72 - The deprecated feature flag `unstable-const-fn` was removed, since it's not needed
73
74 - Optimize `.retain()` by using the same algorithm as in std, change by @niklasf,
75 issue #174. Original optimization in Rust std by @oxalica in rust-lang/rust/pull/81126
76
77 ## 0.6.1
78
79 - The ``ArrayVec::new`` and ``ArrayString::new`` constructors are properly
80 const fns on stable and the feature flag ``unstable-const-fn`` is now deprecated.
81 by @rodrimati1992
82
83 - Small fix to the capacity check macro by @Xaeroxe
84 - Typo fix in documentation by @cuviper
85 - Small code cleanup by @bluss
86
87 ## 0.6.0
88
89 - The **const generics** release 🎉. Arrayvec finally implements what it
90 wanted to implement, since its first version: a vector backed by an array,
91 with generic parameters for the arbitrary element type *and* backing array
92 capacity.
93
94 The New type syntax is `ArrayVec<T, CAP>` where `CAP` is the arrayvec capacity.
95 For arraystring the syntax is `ArrayString<CAP>`.
96
97 Length is stored internally as u32; this limits the maximum capacity. The size
98 of the `ArrayVec` or `ArrayString` structs for the same capacity may grow
99 slightly compared with the previous version (depending on padding requirements
100 for the element type). Change by @bluss.
101
102 - Arrayvec's `.extend()` and `FromIterator`/`.collect()` to arrayvec now
103 **panic** if the capacity of the arrayvec is exceeded. Change by @bluss.
104
105 - Arraystring now implements `TryFrom<&str>` and `TryFrom<fmt::Arguments>` by
106 @c410-f3r
107
108 - Minimum supported rust version is Rust 1.51
109
110 ## 0.5.2
111
112 - Add `is_empty` methods for ArrayVec and ArrayString by @nicbn
113 - Implement `TryFrom<Slice>` for ArrayVec by @paulkernfeld
114 - Add `unstable-const-fn` to make `new` methods const by @m-ou-se
115 - Run miri in CI and a few related fixes by @RalfJung
116 - Fix outdated comment by @Phlosioneer
117 - Move changelog to a separate file by @Luro02
118 - Remove deprecated `Error::description` by @AnderEnder
119 - Use pointer method `add` by @hbina
120
121 ## 0.5.1
122
123 - Add `as_ptr`, `as_mut_ptr` accessors directly on the `ArrayVec` by @tbu-
124 (matches the same addition to `Vec` which happened in Rust 1.37).
125 - Add method `ArrayString::len` (now available directly, not just through deref to str).
126 - Use raw pointers instead of `&mut [u8]` for encoding chars into `ArrayString`
127 (uninit best practice fix).
128 - Use raw pointers instead of `get_unchecked_mut` where the target may be
129 uninitialized everywhere relevant in the ArrayVec implementation
130 (uninit best practice fix).
131 - Changed inline hints on many methods, mainly removing inline hints
132 - `ArrayVec::dispose` is now deprecated (it has no purpose anymore)
133
134 ## 0.4.12
135
136 - Use raw pointers instead of `get_unchecked_mut` where the target may be
137 uninitialized everywhere relevant in the ArrayVec implementation.
138
139 ## 0.5.0
140
141 - Use `MaybeUninit` (now unconditionally) in the implementation of
142 `ArrayVec`
143 - Use `MaybeUninit` (now unconditionally) in the implementation of
144 `ArrayString`
145 - The crate feature for serde serialization is now named `serde`.
146 - Updated the `Array` trait interface, and it is now easier to use for
147 users outside the crate.
148 - Add `FromStr` impl for `ArrayString` by @despawnerer
149 - Add method `try_extend_from_slice` to `ArrayVec`, which is always
150 efficient by @Thomasdezeeuw.
151 - Add method `remaining_capacity` by @Thomasdezeeuw
152 - Improve performance of the `extend` method.
153 - The index type of zero capacity vectors is now itself zero size, by
154 @clarfon
155 - Use `drop_in_place` for truncate and clear methods. This affects drop order
156 and resume from panic during drop.
157 - Use Rust 2018 edition for the implementation
158 - Require Rust 1.36 or later, for the unconditional `MaybeUninit`
159 improvements.
160
161 ## Older releases
162
163 - 0.4.11
164
165 - In Rust 1.36 or later, use newly stable `MaybeUninit`. This extends the
166 soundness work introduced in 0.4.9, we are finally able to use this in
167 stable. We use feature detection (build script) to enable this at build
168 time.
169
170 - 0.4.10
171
172 - Use `repr(C)` in the `union` version that was introduced in 0.4.9, to
173 allay some soundness concerns.
174
175 - 0.4.9
176
177 - Use `union` in the implementation on when this is detected to be supported
178 (nightly only for now). This is a better solution for treating uninitialized
179 regions correctly, and we'll use it in stable Rust as soon as we are able.
180 When this is enabled, the `ArrayVec` has no space overhead in its memory
181 layout, although the size of the vec should not be relied upon. (See [#114](https://github.com/bluss/arrayvec/pull/114))
182 - `ArrayString` updated to not use uninitialized memory, it instead zeros its
183 backing array. This will be refined in the next version, since we
184 need to make changes to the user visible API.
185 - The `use_union` feature now does nothing (like its documentation foretold).
186
187
188 - 0.4.8
189
190 - Implement Clone and Debug for `IntoIter` by @clarcharr
191 - Add more array sizes under crate features. These cover all in the range
192 up to 128 and 129 to 255 respectively (we have a few of those by default):
193
194 - `array-size-33-128`
195 - `array-size-129-255`
196
197 - 0.4.7
198
199 - Fix future compat warning about raw pointer casts
200 - Use `drop_in_place` when dropping the arrayvec by-value iterator
201 - Decrease minimum Rust version (see docs) by @jeehoonkang
202
203 - 0.3.25
204
205 - Fix future compat warning about raw pointer casts
206
207 - 0.4.6
208
209 - Fix compilation on 16-bit targets. This means, the 65536 array size is not
210 included on these targets.
211
212 - 0.3.24
213
214 - Fix compilation on 16-bit targets. This means, the 65536 array size is not
215 included on these targets.
216 - Fix license files so that they are both included (was fixed in 0.4 before)
217
218 - 0.4.5
219
220 - Add methods to `ArrayString` by @DenialAdams:
221
222 - `.pop() -> Option<char>`
223 - `.truncate(new_len)`
224 - `.remove(index) -> char`
225
226 - Remove dependency on crate odds
227 - Document debug assertions in unsafe methods better
228
229 - 0.4.4
230
231 - Add method `ArrayVec::truncate()` by @niklasf
232
233 - 0.4.3
234
235 - Improve performance for `ArrayVec::extend` with a lower level
236 implementation (#74)
237 - Small cleanup in dependencies (use no std for crates where we don't need more)
238
239 - 0.4.2
240
241 - Add constructor method `new` to `CapacityError`.
242
243 - 0.4.1
244
245 - Add `Default` impl to `ArrayString` by @tbu-
246
247 - 0.4.0
248
249 - Reformed signatures and error handling by @bluss and @tbu-:
250
251 - `ArrayVec`'s `push, insert, remove, swap_remove` now match `Vec`'s
252 corresponding signature and panic on capacity errors where applicable.
253 - Add fallible methods `try_push, insert` and checked methods
254 `pop_at, swap_pop`.
255 - Similar changes to `ArrayString`'s push methods.
256
257 - Use a local version of the `RangeArgument` trait
258 - Add array sizes 50, 150, 200 by @daboross
259 - Support serde 1.0 by @daboross
260 - New method `.push_unchecked()` by @niklasf
261 - `ArrayString` implements `PartialOrd, Ord` by @tbu-
262 - Require Rust 1.14
263 - crate feature `use_generic_array` was dropped.
264
265 - 0.3.23
266
267 - Implement `PartialOrd, Ord` as well as `PartialOrd<str>` for
268 `ArrayString`.
269
270 - 0.3.22
271
272 - Implement `Array` for the 65536 size
273
274 - 0.3.21
275
276 - Use `encode_utf8` from crate odds
277 - Add constructor `ArrayString::from_byte_string`
278
279 - 0.3.20
280
281 - Simplify and speed up `ArrayString`’s `.push(char)`-
282
283 - 0.3.19
284
285 - Add new crate feature `use_generic_array` which allows using their
286 `GenericArray` just like a regular fixed size array for the storage
287 of an `ArrayVec`.
288
289 - 0.3.18
290
291 - Fix bounds check in `ArrayVec::insert`!
292 It would be buggy if `self.len() < index < self.capacity()`. Take note of
293 the push out behavior specified in the docs.
294
295 - 0.3.17
296
297 - Added crate feature `use_union` which forwards to the nodrop crate feature
298 - Added methods `.is_full()` to `ArrayVec` and `ArrayString`.
299
300 - 0.3.16
301
302 - Added method `.retain()` to `ArrayVec`.
303 - Added methods `.as_slice(), .as_mut_slice()` to `ArrayVec` and `.as_str()`
304 to `ArrayString`.
305
306 - 0.3.15
307
308 - Add feature std, which you can opt out of to use `no_std` (requires Rust 1.6
309 to opt out).
310 - Implement `Clone::clone_from` for ArrayVec and ArrayString
311
312 - 0.3.14
313
314 - Add `ArrayString::from(&str)`
315
316 - 0.3.13
317
318 - Added `DerefMut` impl for `ArrayString`.
319 - Added method `.simplify()` to drop the element for `CapacityError`.
320 - Added method `.dispose()` to `ArrayVec`
321
322 - 0.3.12
323
324 - Added ArrayString, a fixed capacity analogy of String
325
326 - 0.3.11
327
328 - Added trait impls Default, PartialOrd, Ord, Write for ArrayVec
329
330 - 0.3.10
331
332 - Go back to using external NoDrop, fixing a panic safety bug (issue #3)
333
334 - 0.3.8
335
336 - Inline the non-dropping logic to remove one drop flag in the
337 ArrayVec representation.
338
339 - 0.3.7
340
341 - Added method .into_inner()
342 - Added unsafe method .set_len()