628 Commits

Author SHA1 Message Date
openharmony_ci 8a93faf111 !3 告警与遗留问题文件补充
Merge pull request !3 from peizhe/master
OpenHarmony-v4.0-Beta1 OpenHarmony-v4.0-Beta2
2023-05-09 11:13:35 +00:00
peizhe ead7c73722 告警与遗留问题文件补充
Signed-off-by: peizhe <zhaipeizhe@huawei.com>
2023-05-08 15:16:58 +08:00
openharmony_ci 4c8fae1dd5 !2 CI OAT 告警清零与README.OpenSource 中License信息整改
Merge pull request !2 from peizhe/master
2023-05-04 06:59:00 +00:00
peizhe 84773a6875 CI OAT 告警清零与README.OpenSource 中License信息整改
Signed-off-by: peizhe <zhaipeizhe@huawei.com>
2023-05-04 09:31:42 +08:00
openharmony_ci 28ff715086 !1 [indexmap]Add GN Build Files and Custom Modifications to Rust Third-party Libraries
Merge pull request !1 from peizhe/master
2023-04-19 01:28:02 +00:00
peizhe 16b5b630dc Add GN Build Files and Custom Modifications
Signed-off-by: peizhe <472708703@qq.com>
2023-04-18 18:30:39 +08:00
Josh Stone 0eafa08de2 Merge pull request #247 from cuviper/arbitrary-1.x
Backport Arbitrary (#246) and release 1.9.2
github.com/bluss/indexmap/refs/tags/1.9.2
2022-11-17 13:23:28 -08:00
Josh Stone abb6394b87 Release 1.9.2 2022-11-17 13:01:39 -08:00
Josh Stone 10b38e1949 Add an Arbitrary release note
(cherry picked from commit cc4c47d22fdc06b16a370d035a6c3354504b483f)
2022-11-17 13:01:11 -08:00
Josh Stone d882e0b1cf impl Arbitrary for IndexMap and IndexSet
This implements both `arbitrary::Arbitrary` and `quickcheck::Arbitrary`
behind optional dependencies on their respective crates.

(cherry picked from commit 3e78c62b964b0cb1e19506156511df7384b708f1)
2022-11-17 13:00:27 -08:00
Josh Stone 0244415460 Revert "Run CI on 1.56.1 until next hashbrown release"
This reverts commit 8ffea8ef2d.

CI should be fine on 1.56.0 as of hashbrown 0.12.2.
2022-07-15 10:04:48 -07:00
Josh Stone 56580e8f96 Merge pull request #233 from cuviper/release-1.9.1
Release 1.9.1 for MSRV 1.56.0
2022-06-21 11:03:10 -07:00
Josh Stone d088c60db9 Release 1.9.1 2022-06-21 10:37:14 -07:00
David Tolnay 8ffea8ef2d Run CI on 1.56.1 until next hashbrown release
The PR changing hashbrown's `rust-version` from 1.56.1 to 1.56.0 has
been merged to master but not made it into a hashbrown release yet.

(cherry picked from commit b6aa495bede3ae3ed3e1303d35646e9ab719378c)
2022-06-21 10:25:01 -07:00
David Tolnay dc39da7e58 Revert "Bump MSRV to 1.56.1, matching hashbrown as of 0.12.1"
This reverts commit 8a571c6d68cb38c283d563ff6972613e0eea4111.

(cherry picked from commit f6487e7e042b39472f4f5075e7045aa2dbabb5b5)
2022-06-21 10:25:01 -07:00
Josh Stone 34b9086bfb Fix the RELEASES.md link
(cherry picked from commit 97c4efe9d0bf19b3254d09071b085086053fdcb7)
2022-06-16 18:10:08 -07:00
Josh Stone dfafa7e7fb Merge pull request #231 from cuviper/release-1.9.0
Release 1.9.0 with backports from master
2022-06-16 17:30:33 -07:00
Josh Stone a34a1ab8e5 Add a release note for move_index
(cherry picked from commit 3848768aedcf3e91d2cbf73e0099e6880cac8e7c)
2022-06-16 16:40:05 -07:00
Josh Stone 299bdf4a9d Use u8 test indices so quickcheck is less likely to go out of bounds.
(cherry picked from commit d1100674244fe629837481d4ef7844b74a896b13)
2022-06-16 16:40:05 -07:00
Josh Stone d1f3ef6c02 Add move_index to change the position of an entry
This moves the position of a key-value pair from one index to another by
shifting all other pairs in-between, making this an O(n) operation.

This could be used as a building-block for other operations, like #173
which wants to insert at a particular index. You can `insert_full` to
insert it _somewhere_, then choose whether to `move_index` depending on
whether you want to also change pre-existing entries.

(cherry picked from commit 54a48d2dd1647befc760ab05d807639f79375d97)
2022-06-16 16:40:05 -07:00
Josh Stone d92445b322 Add an MSRV note for retain_mut
(cherry picked from commit 6b425e4e216634a0475ada0e17a56fa7c050d63f)
2022-06-16 16:40:05 -07:00
Josh Stone e424ab6028 cargo fmt
(cherry picked from commit cda1a0b5c947330ece313fe3ab2cc1fe906f1ed4)
2022-06-16 16:40:05 -07:00
Josh Stone bf4b511f10 Bump MSRV to 1.56.1, matching hashbrown as of 0.12.1
(cherry picked from commit 8a571c6d68cb38c283d563ff6972613e0eea4111)
2022-06-16 16:40:05 -07:00
Josh Stone f49c5dd5b5 Hide unnecessary iterator visibility
(cherry picked from commit 9f2b14d678eff8e8d317a758ede7df7705770749)
2022-06-16 16:40:05 -07:00
Stiopa Koltsov f2110f0cf1 Documentation assertion in erase_index function
(cherry picked from commit 4750dc7dfc28300a37cc8b2a2c6d536fb8b85ecd)
2022-06-16 16:32:12 -07:00
Josh Stone 5e88e5207b Fix clippy::needless_borrow
(cherry picked from commit c71567597858e1b186479ad67247fe2d810eaabe)
2022-06-16 16:31:46 -07:00
Josh Stone 5a652c4d17 Add shrink_to
(cherry picked from commit 94d11970208e8937e9bd9187b4863706a81e19df)
2022-06-16 16:30:13 -07:00
Josh Stone 736b600161 impl Debug for IterMut and ValuesMut
(cherry picked from commit 4ddce3a976c1bc88a6373391da542729c4bb1815)
2022-06-16 16:29:28 -07:00
Josh Stone ce67ebfae2 Add preliminary release notes for 1.9.0
(cherry picked from commit b41fc6b5ddd3a265d5b3daac947209cbbc0d025b)
2022-06-16 16:27:04 -07:00
Josh Stone 8c9febd68f Convert the RELEASES doc to markdown
(cherry picked from commit dec33378bbf8490ca30eefd40dc255d12763479f)
2022-06-16 16:25:41 -07:00
Josh Stone 8458982718 Convert the README to markdown
(cherry picked from commit bdba2a65005bc22d414720c19ab9999ddfec236e)
2022-06-16 16:23:41 -07:00
Josh Stone 929ecb067d Remove crate::util::enumerate
(cherry picked from commit bdd93a379955a250c4629e86cc46ec2ae2848ebf)
2022-06-16 16:23:14 -07:00
Josh Stone f5cb9b8a55 Upgrade to hashbrown 0.12
(cherry picked from commit 8eeea2ce0cbbfb52bc1c1ac9acfab26336e500e0)
2022-06-16 16:22:59 -07:00
Josh Stone 03015bb041 Use prelude FromIterator
(cherry picked from commit ffd875b1c03e54299948f2c015965c679ca8737e)
2022-06-16 16:22:28 -07:00
Josh Stone 79d9d82360 Assume support for const-generics 2022-06-16 16:21:36 -07:00
Josh Stone 598fc2b092 Prepare for indexmap 1.9.0, with MSRV 1.56
(cherry picked from commit 61bb73ed5d5b6c092a7ffe43f193db38497c1df2)
2022-06-16 16:19:06 -07:00
Josh Stone 9965c94ed9 Merge pull request #229 from cuviper/1-rustc-rayon-0.4
[1.x] Update rustc-rayon to 0.4, and release 1.8.2
2022-05-27 16:59:45 -07:00
Josh Stone d2acbb966d Enable CI on indexmap-1.x 2022-05-27 16:55:13 -07:00
Josh Stone 2bb3faa49d Release 1.8.2 2022-05-27 16:50:54 -07:00
Josh Stone 05af415f85 Update rustc-rayon to 0.4 2022-05-27 16:47:59 -07:00
Josh Stone 3d661e8441 Merge pull request #222 from zakcutner/replace-full
Add a `replace_full` method on `IndexSet`
2022-03-29 15:51:16 -07:00
Josh Stone beff0dd4d0 Release 1.8.1 2022-03-29 15:45:07 -07:00
Zak Cutner 86d713e17d Add a replace_full method on IndexSet
* Add a new `replace_full` method, which behaves like `replace` but also
  returns the index of the item.

* Clarify that `replace` and `replace_all` do not modify the replaced
  item's insertion order in the documentation.

* Add test coverage for `replace` and `replace_full` by copying the
  existing tests for `insert` and `insert_full`.
2022-03-27 23:05:23 +01:00
Josh Stone 882988580a Merge pull request #218 from erickt/miri
Add miri builder
2022-02-09 10:43:52 -08:00
Erick Tryzelaar cdaa14af47 Add miri builder
This adds a builder to run `cargo miri` in order to check for certain
classes of undefined behavior.

One thing to note is that we've had to parameterize a number of tests to
use a smaller cycle count under miri. This is because miri's stacked
borrows checker is superlinear:

https://github.com/rust-lang/miri/issues/1367

This can cause the miri builder to run out of memory. To avoid this, we
reduce the cycle counts for a few tests that are particularly expensive
when we're running inside miri.
2022-02-08 14:45:12 -08:00
Josh Stone 9b765baa0f Merge pull request #216 from cuviper/dev-dependencies
Update dev-dependencies
2022-01-19 14:40:57 -08:00
Josh Stone 5ad5ceb4eb Update dev-dependencies 2022-01-17 11:56:36 -08:00
Josh Stone 350e7b88a6 Merge pull request #213 from cuviper/release-1.7.1
Release 1.8.0
2022-01-07 11:59:27 -08:00
Josh Stone 163b00a228 Release 1.8.0 instead 2022-01-06 16:03:43 -08:00
Josh Stone df01701ae5 Release 1.7.1 2022-01-06 16:03:43 -08:00