Bump indexmap from 1.9.3 to 2.1.0
Bumps indexmap from 1.9.3 to 2.1.0.
Changelog
Sourced from indexmap's changelog.
2.1.0
Empty slices can now be created with
map::Slice::{new, new_mut}andset::Slice::new. In addition,Slice::new,len, andis_emptyare nowconstfunctions on both types.
IndexMap,IndexSet, and their respectiveSlices all have binary search methods for sorted data: mapbinary_search_keysand setbinary_searchfor plain comparision,binary_search_byfor custom comparators,binary_search_by_keyfor key extraction, andpartition_pointfor boolean conditions.2.0.2
- The
hashbrowndependency has been updated to version 0.14.1 to complete the support for Rust 1.63.2.0.1
- MSRV: Rust 1.63.0 is now supported as well, pending publication of
hashbrown's relaxed MSRV (or use cargo--ignore-rust-version).2.0.0
MSRV: Rust 1.64.0 or later is now required.
The
"std"feature is no longer auto-detected. It is included in the default feature set, or else can be enabled like any other Cargo feature.The
"serde-1"feature has been removed, leaving just the optional"serde"dependency to be enabled like a feature itself.
IndexMap::get_index_mutnow returnsOption<(&K, &mut V)>, changing the key part from&mut Kto&K. There is also a new alternativeMutableKeys::get_index_mut2to access the former behavior.The new
map::Slice<K, V>andset::Slice<T>offer a linear view of maps and sets, behaving a lot like normal[(K, V)]and[T]slices. Notably, comparison traits likeEqonly consider items in order, rather than hash lookups, and slices even implementHash.
IndexMapandIndexSetnow havesort_by_cached_keyandpar_sort_by_cached_keymethods which perform stable sorts in place using a key extraction function.
IndexMapandIndexSetnow havereserve_exact,try_reserve, andtry_reserve_exactmethods that correspond to the same methods onVec. 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.
... (truncated)
Commits
ff49792Merge pull request #283 from cuviper/release-2.1.0f1ea007Release 2.1.0cd641d2Merge pull request #282 from Eh2406/binary_search7326a6eRe-wrap the binary search docseec4c43Add plain binary search to maps and sets too1350db6Capitalize "see" in binary search docs3263c0ffix wording0d5ee80Merge pull request #278 from cuviper/slice-newd93534fadd tests348b42fadd binary_search and friends- Additional commits viewable in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
@dependabot rebase
@dependabot rebase
Superseded by #2026.