chore(deps): update rust crate state to 0.6 (1.x) #12223
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.5
->0.6
Release Notes
SergioBenitez/state (state)
v0.6.0
Compare Source
Breaking Changes
The MSRV is now 1.61.
Storage
was renamed toInitCell
.The type was renamed to more accurately reflect its intended use and be more
consistent with naming across the ecosystem. Several method names were also
changed accordingly:
Storage::get_or_set()
was renamed toInitCell::get_or_init()
.Storage::set_or_get()
was renamed toInitCell::set_or_init()
.Along with naming changes, the following improvements were made:
InitCell<T>
can be constructed and used even withT: !Sync + !Send
.InitCell<T>
implsSend
even whenT: !Sync
.InitCell::{wait, reset, take, update}()
methods.LocalStorage
was renamed toLocalInitCell
.No other changes were made to the API.
Container
was renamed toTypeMap
.The type was renamed to more accurately reflect its intended use and be more
consistent with naming across the ecosystem. The following changes were also
made:
Container![]
is neitherSync
norSend
.forwards-compatibility with Rust releases. This resulted in several uses of
unsafe
being removed at the cost of raising the MSRV to 1.61.General Improvements
LocalInitCell::try_get()
no longer panics when thread-local storage is notavailable.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.