Skip to content
  • dependabot[bot]'s avatar
    Bump indexmap from 1.9.3 to 2.0.0 (#2911) · c4380d6e
    dependabot[bot] authored
    
    
    Bumps [indexmap](https://github.com/bluss/indexmap) from 1.9.3 to 2.0.0.
    <details>
    <summary>Changelog</summary>
    <p><em>Sourced from <a
    href="https://github.com/bluss/indexmap/blob/master/RELEASES.md">indexmap's
    changelog</a>.</em></p>
    <blockquote>
    <ul>
    <li>
    <p>2.0.0</p>
    <ul>
    <li>
    <p><strong>MSRV</strong>: Rust 1.64.0 or later is now required.</p>
    </li>
    <li>
    <p>The <code>&quot;std&quot;</code> feature is no longer auto-detected.
    It is included in the
    default feature set, or else can be enabled like any other Cargo
    feature.</p>
    </li>
    <li>
    <p>The <code>&quot;serde-1&quot;</code> feature has been removed,
    leaving just the optional
    <code>&quot;serde&quot;</code> dependency to be enabled like a feature
    itself.</p>
    </li>
    <li>
    <p><code>IndexMap::get_index_mut</code> now returns
    <code>Option&lt;(&amp;K, &amp;mut V)&gt;</code>, changing
    the key part from <code>&amp;mut K</code> to <code>&amp;K</code>. There
    is also a new alternative
    <code>MutableKeys::get_index_mut2</code> to access the former
    behavior.</p>
    </li>
    <li>
    <p>The new <code>map::Slice&lt;K, V&gt;</code> and
    <code>set::Slice&lt;T&gt;</code> offer a linear view of maps
    and sets, behaving a lot like normal <code>[(K, V)]</code> and
    <code>[T]</code> slices. Notably,
    comparison traits like <code>Eq</code> only consider items in order,
    rather than hash
    lookups, and slices even implement <code>Hash</code>.</p>
    </li>
    <li>
    <p><code>IndexMap</code> and <code>IndexSet</code> now have
    <code>sort_by_cached_key</code> and
    <code>par_sort_by_cached_key</code> methods which perform stable sorts
    in place
    using a key extraction function.</p>
    </li>
    <li>
    <p><code>IndexMap</code> and <code>IndexSet</code> now have
    <code>reserve_exact</code>, <code>try_reserve</code>, and
    <code>try_reserve_exact</code> methods that correspond to the same
    methods on <code>Vec</code>.
    However, exactness only applies to the direct capacity for items, while
    the
    raw hash table still follows its own rules for capacity and load
    factor.</p>
    </li>
    <li>
    <p>The <code>Equivalent</code> trait is now re-exported from the
    <code>equivalent</code> crate,
    intended as a common base to allow types to work with multiple map
    types.</p>
    </li>
    <li>
    <p>The <code>hashbrown</code> dependency has been updated to version
    0.14.</p>
    </li>
    <li>
    <p>The <code>serde_seq</code> module has been moved from the crate root
    to below the
    <code>map</code> module.</p>
    </li>
    </ul>
    </li>
    </ul>
    </blockquote>
    </details>
    <details>
    <summary>Commits</summary>
    <ul>
    <li><a
    href="https://github.com/bluss/indexmap/commit/8e47be81a10bcb4b203955d6f6eb05bf85630c20"><code>8e47be8</code></a>
    Merge pull request <a
    href="https://redirect.github.com/bluss/indexmap/issues/267">#267</a>
    from cuviper/release-2.0.0</li>
    <li><a
    href="https://github.com/bluss/indexmap/commit/ad694fbb8c73f92e4316e436422dc80763a7ed03"><code>ad694fb</code></a>
    Release 2.0.0</li>
    <li><a
    href="https://github.com/bluss/indexmap/commit/b5b2814999255f82559f172d00d1382ae66d23c1"><code>b5b2814</code></a>
    Merge pull request <a
    href="https://redirect.github.com/bluss/indexmap/issues/266">#266</a>
    from cuviper/doc-capacity</li>
    <li><a
    href="https://github.com/bluss/indexmap/commit/d3ea28992194484dea671a19b808b62ed8efd5d1"><code>d3ea289</code></a>
    Document the lower-bound semantics of capacity</li>
    <li><a
    href="https://github.com/bluss/indexmap/commit/74e14dac622eac69fa292b100a51c5a385a81d61"><code>74e14da</code></a>
    Merge pull request <a
    href="https://redirect.github.com/bluss/indexmap/issues/264">#264</a>
    from cuviper/equivalent</li>
    <li><a
    href="https://github.com/bluss/indexmap/commit/677c60522815f53e83ab173c199772567e9c9007"><code>677c605</code></a>
    Add a relnote for Equivalent</li>
    <li><a
    href="https://github.com/bluss/indexmap/commit/6d83bc1902b95758d98ea973778d8fc4b4a599a2"><code>6d83bc1</code></a>
    pub use equivalent::Equivalent;</li>
    <li><a
    href="https://github.com/bluss/indexmap/commit/bb48357fee6494a335963072ea8c51ed30903a19"><code>bb48357</code></a>
    Merge pull request <a
    href="https://redirect.github.com/bluss/indexmap/issues/263">#263</a>
    from cuviper/insert_in_slot</li>
    <li><a
    href="https://github.com/bluss/indexmap/commit/c37dae6bcb2fc2c1f45b1e6fd924f92685acd8b3"><code>c37dae6</code></a>
    Use hashbrown's new single-lookup insertion</li>
    <li><a
    href="https://github.com/bluss/indexmap/commit/ee71507aaacf25b43f99350af44c137e6af65a7c"><code>ee71507</code></a>
    Merge pull request <a
    href="https://redirect.github.com/bluss/indexmap/issues/262">#262</a>
    from daxpedda/hashbrown-v0.14</li>
    <li>Additional commits viewable in <a
    href="https://github.com/bluss/indexmap/compare/1.9.3...2.0.0">compare
    view</a></li>
    </ul>
    </details>
    <br />
    
    
    [![Dependabot compatibility
    score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=indexmap&package-manager=cargo&previous-version=1.9.3&new-version=2.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
    
    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-automerge-start)
    [//]: # (dependabot-automerge-end)
    
    ---
    
    <details>
    <summary>Dependabot commands and options</summary>
    <br />
    
    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 show <dependency name> ignore conditions` will show all
    of the ignore conditions of the specified dependency
    - `@dependabot ignore <dependency name> major version` will close this
    group update PR and stop Dependabot creating any more for the specific
    dependency's major version (unless you unignore this specific
    dependency's major version or upgrade to it yourself)
    - `@dependabot ignore <dependency name> minor version` will close this
    group update PR and stop Dependabot creating any more for the specific
    dependency's minor version (unless you unignore this specific
    dependency's minor version or upgrade to it yourself)
    - `@dependabot ignore <dependency name>` will close this group update PR
    and stop Dependabot creating any more for the specific dependency
    (unless you unignore this specific dependency or upgrade to it yourself)
    - `@dependabot unignore <dependency name>` will remove all of the ignore
    conditions of the specified dependency
    - `@dependabot unignore <dependency name> <ignore condition>` will
    remove the ignore condition of the specified dependency and ignore
    conditions
    
    
    </details>
    
    Signed-off-by: default avatardependabot[bot] <[email protected]>
    Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    c4380d6e