omjadas / hudsucker

Intercepting HTTP/S proxy
https://crates.io/crates/hudsucker
Apache License 2.0
206 stars 35 forks source link

chore(deps): update moka requirement from 0.9.0 to 0.10.0 #47

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

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)