Add OnceCell::with_value to create initialized OnceCell in const context.
Improve Clone implementation for OnceCell.
Rewrite parking_lot version on top of parking_lot_core, for even smaller cells!
1.10
upgrade parking_lot to 0.12.0 (note that this bumps MSRV with parking_lot feature enabled to 1.49.0).
1.9
Added an atomic-polyfill optional dependency to compile race on platforms without atomics
1.8.0
Add try_insert API -- a version of set that returns a reference.
1.7.2
Improve code size when using parking_lot feature.
1.7.1
Fix race::OnceBox<T> to also impl Default even if T doesn't impl Default.
1.7.0
Hide the race module behind (default) race feature.
Turns out that adding race by default was a breaking change on some platforms without atomics.
In this release, we make the module opt-out.
Technically, this is a breaking change for those who use race with no_default_features.
Given that the race module itself only several days old, the breakage is deemed acceptable.
1.6.0
Add Lazy::into_value
Stabilize once_cell::race module for "first one wins" no_std-compatible initialization flavor.
Migrate from deprecated compare_and_swap to compare_exchange.
1.5.2
OnceBox API uses Box<T>.
This a breaking change to unstable API.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps once_cell from 1.10.0 to 1.11.0.
Changelog
Sourced from once_cell's changelog.
... (truncated)
Commits
12f283f
Merge #178443d23c
readability39a47e3
release 1.11.05386606
fix deadlock0067580
use exchange_weak662fcf9
replace parking_lot with parking_lot_coreb57c774
Merge #175580fb72
Note that Acquire/Release is necessary in OnceBox7d45ce0
Explain the atomic orderings used in race090caea
Merge #170Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)