Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update moka requirement from 0.9 to 0.10 #1331

Merged
merged 1 commit into from
Feb 13, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 13, 2023

Updates the requirements on moka to permit the latest version.

Changelog

Sourced from moka's changelog.

Version 0.10.0

Breaking Changes

  • The following caches have been moved to a separate crate called [Mini-Moka][mini-moka-crate]:
    • moka::unsync::Cachemini_moka::unsync::Cache
    • moka::dash::Cachemini_moka::sync::Cache
  • The following methods have been removed from sync and future caches (#199[gh-pull-0199]). They were deprecated in v0.8.0:
    • get_or_insert_with (Use get_with instead)
    • get_or_try_insert_with (Use try_get_with instead)
  • The following methods of sync and future caches have been marked as deprecated (#193[gh-pull-0193]):
    • get_with_if (Use entry API's or_insert_with_if instead)

Added

  • Add entry and entry_by_ref APIs to sync and future caches (#193[gh-pull-0193]):
    • They allow users to perform more complex operations on a cache entry. At this point, the following operations (methods) are provided:
      • or_default
      • or_insert
      • or_insert_with
      • or_insert_with_if
      • or_optionally_insert_with
      • or_try_insert_with
    • The above methods return Entry type, which provides is_fresh method to check if the value was freshly computed or already existed in the cache.

Version 0.9.7

Fixed

  • Fix an issue that get_with method of future cache inflates future size by ~7x, sometimes causing stack overflow (#212[gh-issue-0212]):
    • This was caused by a known rustc optimization issue on async functions rust-lang/rust#62958
    • Added a workaround to our cache and now it will only inflate the size by ~2.5x.
  • Fix a bug that setting the number of segments of sync cache will disable notifications. (#207[gh-issue-0207])

Added

  • Add examples for build_with_hasher method of cache builders. (#216[gh-pull-0216])

... (truncated)

Commits
  • 07a0f6a Update the README
  • 81124b5 Merge pull request #226 from moka-rs/fix-ci-2023-02-09
  • 67013de Fix the CI for MSRV 1.51
  • 1b6733f Merge pull request #225 from moka-rs/prepare-0.10.0
  • e3d6735 Update the README and CHANGELOG for v0.10.0
  • 142783e Merge pull request #224 from moka-rs/refactor-sync-value-initializer
  • 0fe3b5f Refactor an internal module sync::value_initializer to match the
  • 058f839 Merge pull request #223 from moka-rs/merge-09
  • 4fd5ae8 Bump the version to v0.10.0
  • 0e07eba Merge branch 'maint-09'
  • Additional commits viewable in compare view

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)

Updates the requirements on [moka](https://github.com/moka-rs/moka) to permit the latest version.
- [Release notes](https://github.com/moka-rs/moka/releases)
- [Changelog](https://github.com/moka-rs/moka/blob/master/CHANGELOG.md)
- [Commits](moka-rs/moka@v0.9.0...v0.10.0)

---
updated-dependencies:
- dependency-name: moka
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust labels Feb 13, 2023
@Xuanwo Xuanwo merged commit 1f8ccd3 into main Feb 13, 2023
@Xuanwo Xuanwo deleted the dependabot/cargo/moka-0.10 branch February 13, 2023 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant