Debian Codegraph @

debian/missing-sources/once_cell/CHANGELOG.md

raw symbols SCIP
1 # Changelog
2
3 ## 1.21.3
4
5 - Outline more initialization in `race`: [#284](https://github.com/matklad/once_cell/pull/284),
6 [#285](https://github.com/matklad/once_cell/pull/285).
7
8 ## 1.21.2
9 - Relax success ordering from AcqRel to Release in `race`: [#278](https://github.com/matklad/once_cell/pull/278).
10
11 ## 1.21.1
12 - Reduce MSRV to 1.65: [#277](https://github.com/matklad/once_cell/pull/277).
13
14 ## 1.21.0
15
16 - Outline initialization in `race`: [#273](https://github.com/matklad/once_cell/pull/273).
17 - Add `OnceNonZereUsize::get_unchecked`: [#274](https://github.com/matklad/once_cell/pull/274).
18 - Add `OnceBox::clone` and `OnceBox::with_value`: [#275](https://github.com/matklad/once_cell/pull/275).
19 - Increase MSRV to 1.70
20
21 ## 1.20.2
22
23 - Remove `portable_atomic` from Cargo.lock if it is not, in fact, used: [#267](https://github.com/matklad/once_cell/pull/267)
24 This is a work-around for this cargo bug: https://github.com/rust-lang/cargo/issues/10801.
25
26 ## 1.20.1
27
28 - Allow using `race` module using just `portable_atomic`, without `critical_section` and provide
29 better error messages on targets without atomic CAS instruction,
30 [#265](https://github.com/matklad/once_cell/pull/265).
31
32 ## 1.19.0
33
34 - Use `portable-atomic` instead of `atomic-polyfill`, [#251](https://github.com/matklad/once_cell/pull/251).
35
36 ## 1.18.0
37
38 - `MSRV` is updated to 1.60.0 to take advantage of `dep:` syntax for cargo features,
39 removing "implementation details" from publicly visible surface.
40
41 ## 1.17.2
42
43 - Avoid unnecessary synchronization in `Lazy::{force,deref}_mut()`, [#231](https://github.com/matklad/once_cell/pull/231).
44
45 ## 1.17.1
46
47 - Make `OnceRef` implementation compliant with [strict provenance](https://github.com/rust-lang/rust/issues/95228).
48
49 ## 1.17.0
50
51 - Add `race::OnceRef` for storing a `&'a T`.
52
53 ## 1.16.0
54
55 - Add `no_std` implementation based on `critical-section`,
56 [#195](https://github.com/matklad/once_cell/pull/195).
57 - Deprecate `atomic-polyfill` feature (use the new `critical-section` instead)
58
59 ## 1.15.0
60
61 - Increase minimal supported Rust version to 1.56.0.
62 - Implement `UnwindSafe` even if the `std` feature is disabled.
63
64 ## 1.14.0
65
66 - Add extension to `unsync` and `sync` `Lazy` mut API:
67 - `force_mut`
68 - `get_mut`
69
70
71 ## 1.13.1
72
73 - Make implementation compliant with [strict provenance](https://github.com/rust-lang/rust/issues/95228).
74 - Upgrade `atomic-polyfill` to `1.0`
75
76 ## 1.13.0
77
78 - Add `Lazy::get`, similar to `OnceCell::get`.
79
80 ## 1.12.1
81
82 - Remove incorrect `debug_assert`.
83
84 ## 1.12.0
85
86 - Add `OnceCell::wait`, a blocking variant of `get`.
87
88 ## 1.11.0
89
90 - Add `OnceCell::with_value` to create initialized `OnceCell` in `const` context.
91 - Improve `Clone` implementation for `OnceCell`.
92 - Rewrite `parking_lot` version on top of `parking_lot_core`, for even smaller cells!
93
94 ## 1.10.0
95
96 - upgrade `parking_lot` to `0.12.0` (note that this bumps MSRV with `parking_lot` feature enabled to `1.49.0`).
97
98 ## 1.9.0
99
100 - Added an `atomic-polyfill` optional dependency to compile `race` on platforms without atomics
101
102 ## 1.8.0
103
104 - Add `try_insert` API -- a version of `set` that returns a reference.
105
106 ## 1.7.2
107
108 - Improve code size when using parking_lot feature.
109
110 ## 1.7.1
111
112 - Fix `race::OnceBox<T>` to also impl `Default` even if `T` doesn't impl `Default`.
113
114 ## 1.7.0
115
116 - Hide the `race` module behind (default) `race` feature.
117 Turns out that adding `race` by default was a breaking change on some platforms without atomics.
118 In this release, we make the module opt-out.
119 Technically, this is a breaking change for those who use `race` with `no_default_features`.
120 Given that the `race` module itself only several days old, the breakage is deemed acceptable.
121
122 ## 1.6.0
123
124 - Add `Lazy::into_value`
125 - Stabilize `once_cell::race` module for "first one wins" no_std-compatible initialization flavor.
126 - Migrate from deprecated `compare_and_swap` to `compare_exchange`.
127
128 ## 1.5.2
129
130 - `OnceBox` API uses `Box<T>`.
131 This a breaking change to unstable API.
132
133 ## 1.5.1
134
135 - MSRV is increased to `1.36.0`.
136 - document `once_cell::race` module.
137 - introduce `alloc` feature for `OnceBox`.
138 - fix `OnceBox::set`.
139
140 ## 1.5.0
141
142 - add new `once_cell::race` module for "first one wins" no_std-compatible initialization flavor.
143 The API is provisional, subject to change and is gated by the `unstable` cargo feature.
144
145 ## 1.4.1
146
147 - upgrade `parking_lot` to `0.11.0`
148 - make `sync::OnceCell<T>` pass https://doc.rust-lang.org/nomicon/dropck.html#an-escape-hatch[dropck] with `parking_lot` feature enabled.
149 This fixes a (minor) semver-incompatible changed introduced in `1.4.0`
150
151 ## 1.4.0
152
153 - upgrade `parking_lot` to `0.10` (note that this bumps MSRV with `parking_lot` feature enabled to `1.36.0`).
154 - add `OnceCell::take`.
155 - upgrade crossbeam utils (private dependency) to `0.7`.
156
157 ## 1.3.1
158
159 - remove unnecessary `F: fmt::Debug` bound from `impl fmt::Debug for Lazy<T, F>`.
160
161 ## 1.3.0
162
163 - `Lazy<T>` now implements `DerefMut`.
164 - update implementation according to the latest changes in `std`.
165
166 ## 1.2.0
167
168 - add `sync::OnceCell::get_unchecked`.
169
170 ## 1.1.0
171
172 - implement `Default` for `Lazy`: it creates an empty `Lazy<T>` which is initialized with `T::default` on first access.
173 - add `OnceCell::get_mut`.
174
175 ## 1.0.2
176
177 - actually add `#![no_std]` attribute if std feature is not enabled.
178
179 ## 1.0.1
180
181 - fix unsoundness in `Lazy<T>` if the initializing function panics. Thanks [@xfix](https://github.com/xfix)!
182 - implement `RefUnwindSafe` for `Lazy`.
183 - share more code between `std` and `parking_lot` implementations.
184 - add F.A.Q section to the docs.
185
186 ## 1.0.0
187
188 - remove `parking_lot` from the list of default features.
189 - add `std` default feature. Without `std`, only `unsync` module is supported.
190 - implement `Eq` for `OnceCell`.
191 - fix wrong `Sync` bound on `sync::Lazy`.
192 - run the whole test suite with miri.
193
194 ## 0.2.7
195
196 - New implementation of `sync::OnceCell` if `parking_lot` feature is disabled.
197 It now employs a hand-rolled variant of `std::sync::Once`.
198 - `sync::OnceCell::get_or_try_init` works without `parking_lot` as well!
199 - document the effects of `parking_lot` feature: same performance but smaller types.
200
201 ## 0.2.6
202
203 - Updated `Lazy`'s `Deref` impl to requires only `FnOnce` instead of `Fn`
204
205 ## 0.2.5
206
207 - `Lazy` requires only `FnOnce` instead of `Fn`
208
209 ## 0.2.4
210
211 - nicer `fmt::Debug` implementation
212
213 ## 0.2.3
214
215 - update `parking_lot` to `0.9.0`
216 - fix stacked borrows violation in `unsync::OnceCell::get`
217 - implement `Clone` for `sync::OnceCell<T> where T: Clone`
218
219 ## 0.2.2
220
221 - add `OnceCell::into_inner` which consumes a cell and returns an option
222
223 ## 0.2.1
224
225 - implement `sync::OnceCell::get_or_try_init` if `parking_lot` feature is enabled
226 - switch internal `unsafe` implementation of `sync::OnceCell` from `Once` to `Mutex`
227 - `sync::OnceCell::get_or_init` is twice as fast if cell is already initialized
228 - implement `std::panic::RefUnwindSafe` and `std::panic::UnwindSafe` for `OnceCell`
229 - better document behavior around panics
230
231 ## 0.2.0
232
233 - MSRV is now 1.31.1
234 - `Lazy::new` and `OnceCell::new` are now const-fns
235 - `unsync_lazy` and `sync_lazy` macros are removed
236
237 ## 0.1.8
238
239 - update crossbeam-utils to 0.6
240 - enable bors-ng
241
242 ## 0.1.7
243
244 - cells implement `PartialEq` and `From`
245 - MSRV is down to 1.24.1
246 - update `parking_lot` to `0.7.1`
247
248 ## 0.1.6
249
250 - `unsync::OnceCell<T>` is `Clone` if `T` is `Clone`.
251
252 ## 0.1.5
253
254 - No changelog until this point :(