forked from mirrors/gecko-dev
Bug 1806766 - Update indexmap to 1.9.2. r=emilio,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D165369
This commit is contained in:
parent
30b846d4a8
commit
e7c2a264bf
7 changed files with 103 additions and 5 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
|
@ -2647,9 +2647,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "indexmap"
|
name = "indexmap"
|
||||||
version = "1.9.1"
|
version = "1.9.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e"
|
checksum = "1885e79c1fc4b10f0e172c475f458b7f7b93061064d98c3293e98c5ba0c8b399"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"autocfg",
|
"autocfg",
|
||||||
"hashbrown",
|
"hashbrown",
|
||||||
|
|
|
||||||
|
|
@ -954,6 +954,11 @@ who = "Mike Hommey <mh+mozilla@glandium.org>"
|
||||||
criteria = "safe-to-deploy"
|
criteria = "safe-to-deploy"
|
||||||
delta = "1.8.2 -> 1.9.1"
|
delta = "1.8.2 -> 1.9.1"
|
||||||
|
|
||||||
|
[[audits.indexmap]]
|
||||||
|
who = "Mike Hommey <mh+mozilla@glandium.org>"
|
||||||
|
criteria = "safe-to-deploy"
|
||||||
|
delta = "1.9.1 -> 1.9.2"
|
||||||
|
|
||||||
[[audits.inherent]]
|
[[audits.inherent]]
|
||||||
who = "Mike Hommey <mh+mozilla@glandium.org>"
|
who = "Mike Hommey <mh+mozilla@glandium.org>"
|
||||||
criteria = "safe-to-deploy"
|
criteria = "safe-to-deploy"
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{"files":{"Cargo.toml":"34557b9fbcea40613e629026ff88328f777d3b7df2f4e00da6deb669f53fc186","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"ecc269ef87fd38a1d98e30bfac9ba964a9dbd9315c3770fed98d4d7cb5882055","README.md":"f8b02aa7c20fc0f5bc13de9e9e78899ec8cdbc16c2db880a1d0bc14c25b07542","RELEASES.md":"51fa9228b357679b7a6b0562df521f15d9ef012bd481899552ac73cc7d923e26","benches/bench.rs":"3b2900abbc9e8a60af78b0395222ee75e86bc68519a0f38477387d1572eed397","benches/faststring.rs":"5fdd6cdb19d0557ed58f241e809a240cf8939d9e5b87a72d5f127f81ab98380b","build.rs":"558b4d0b9e9b3a44f7e1a2b69f7a7567ea721cd45cb54f4e458e850bf702f35c","src/equivalent.rs":"2e6ae24ef09a09b917f4e2b0f6288f901878e42f5080f61b1bd1afdcc90aba87","src/lib.rs":"8c942cda75f77b231f8a505b93f5c07b839273033b03e2bb4fcc9ec744831696","src/macros.rs":"80c22f630e7f81e6fa663ca4c9e50cf5f332c8905d72d1338bd16f24eb353c2a","src/map.rs":"2e9cbfa240865cfd6b6b972bdbdb39283e6302dd2d0d72b3c2bfce4414bf5729","src/map/core.rs":"8422cd774c5db7d83cdeb0c5836c10f29caa1bee8d95b0d674b01b32e7ce80d8","src/map/core/raw.rs":"4e5fac4fecccc352268351d8b1f82b345067b5c029bba7e6ab88e8f8bc799c6a","src/mutable_keys.rs":"a919065b59000286eb11c7d46f6896bf0a1d484c9dac5e61d80bb8990c9fbedb","src/rayon/map.rs":"1a508c7c95c5d56113b851f7ce140d62ad541f1c6129352a7ec62d5bea7af4a1","src/rayon/mod.rs":"019e9379ccab57a299ab5b5a2c0efc7561b77a715a5afe8f797c7e8330c6206c","src/rayon/set.rs":"ba00e88e90fb7ab803589f99f24b595d60309e541aae3d01fdde21bff3840194","src/rustc.rs":"fe7a348c5a10a66880cb6c737593fe79d3b6de40f44ba0d7b89204aa95e14a3a","src/serde.rs":"d45ec8fb9c02594ca6f2e9b20764778b2b4193a24a52f1e233160a33efc6e683","src/serde_seq.rs":"c54a52fa607b6ccddda1e76e829778ca304c49b5f434edc5e582a5386c35d662","src/set.rs":"0a57affb623fa6b28df18cc14841e4f076cbd1da5c809635d202f865640af1ee","src/util.rs":"ab712bce71b54cf2763e6010e64bb5944d1d59ce15e2f2beffa7ceed204d6a68","tests/equivalent_trait.rs":"efe9393069e3cfc893d2c9c0343679979578e437fdb98a10baefeced027ba310","tests/macros_full_path.rs":"c33c86d7341581fdd08e2e6375a4afca507fa603540c54a3b9e51c4cd011cd71","tests/quick.rs":"1addbc6cbcb1aae5b8bde0fb0e18197d947e8f13244e4ae7ebf97bdda00eafea","tests/tests.rs":"f6dbeeb0e2950402b0e66ac52bf74c9e4197d3c5d9c0dde64a7998a2ef74d327"},"package":"10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e"}
|
{"files":{"Cargo.toml":"c77d3a8863367bbd5e9a6da5d8f100515da5e5a1441c293cbc09ffd947b7302b","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"ecc269ef87fd38a1d98e30bfac9ba964a9dbd9315c3770fed98d4d7cb5882055","README.md":"f8b02aa7c20fc0f5bc13de9e9e78899ec8cdbc16c2db880a1d0bc14c25b07542","RELEASES.md":"38d29c78198505ec88702c1ba723d087a775fcda6559da1842b6f17a9cdf6a71","benches/bench.rs":"3b2900abbc9e8a60af78b0395222ee75e86bc68519a0f38477387d1572eed397","benches/faststring.rs":"5fdd6cdb19d0557ed58f241e809a240cf8939d9e5b87a72d5f127f81ab98380b","build.rs":"558b4d0b9e9b3a44f7e1a2b69f7a7567ea721cd45cb54f4e458e850bf702f35c","src/arbitrary.rs":"bb8bda10f686abe57eef1446d3fc3fc6fb251f95629b28c20e620a4838c43db8","src/equivalent.rs":"2e6ae24ef09a09b917f4e2b0f6288f901878e42f5080f61b1bd1afdcc90aba87","src/lib.rs":"ea2cbe4f6cc2c4a75f42c9fc936503e6bee0f136c60f6811a2a9907ed8886443","src/macros.rs":"80c22f630e7f81e6fa663ca4c9e50cf5f332c8905d72d1338bd16f24eb353c2a","src/map.rs":"2e9cbfa240865cfd6b6b972bdbdb39283e6302dd2d0d72b3c2bfce4414bf5729","src/map/core.rs":"8422cd774c5db7d83cdeb0c5836c10f29caa1bee8d95b0d674b01b32e7ce80d8","src/map/core/raw.rs":"4e5fac4fecccc352268351d8b1f82b345067b5c029bba7e6ab88e8f8bc799c6a","src/mutable_keys.rs":"a919065b59000286eb11c7d46f6896bf0a1d484c9dac5e61d80bb8990c9fbedb","src/rayon/map.rs":"1a508c7c95c5d56113b851f7ce140d62ad541f1c6129352a7ec62d5bea7af4a1","src/rayon/mod.rs":"019e9379ccab57a299ab5b5a2c0efc7561b77a715a5afe8f797c7e8330c6206c","src/rayon/set.rs":"ba00e88e90fb7ab803589f99f24b595d60309e541aae3d01fdde21bff3840194","src/rustc.rs":"fe7a348c5a10a66880cb6c737593fe79d3b6de40f44ba0d7b89204aa95e14a3a","src/serde.rs":"d45ec8fb9c02594ca6f2e9b20764778b2b4193a24a52f1e233160a33efc6e683","src/serde_seq.rs":"c54a52fa607b6ccddda1e76e829778ca304c49b5f434edc5e582a5386c35d662","src/set.rs":"0a57affb623fa6b28df18cc14841e4f076cbd1da5c809635d202f865640af1ee","src/util.rs":"ab712bce71b54cf2763e6010e64bb5944d1d59ce15e2f2beffa7ceed204d6a68","tests/equivalent_trait.rs":"efe9393069e3cfc893d2c9c0343679979578e437fdb98a10baefeced027ba310","tests/macros_full_path.rs":"c33c86d7341581fdd08e2e6375a4afca507fa603540c54a3b9e51c4cd011cd71","tests/quick.rs":"1addbc6cbcb1aae5b8bde0fb0e18197d947e8f13244e4ae7ebf97bdda00eafea","tests/tests.rs":"f6dbeeb0e2950402b0e66ac52bf74c9e4197d3c5d9c0dde64a7998a2ef74d327"},"package":"1885e79c1fc4b10f0e172c475f458b7f7b93061064d98c3293e98c5ba0c8b399"}
|
||||||
16
third_party/rust/indexmap/Cargo.toml
vendored
16
third_party/rust/indexmap/Cargo.toml
vendored
|
|
@ -13,9 +13,10 @@
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
rust-version = "1.56"
|
rust-version = "1.56"
|
||||||
name = "indexmap"
|
name = "indexmap"
|
||||||
version = "1.9.1"
|
version = "1.9.2"
|
||||||
description = "A hash table with consistent order and fast iteration."
|
description = "A hash table with consistent order and fast iteration."
|
||||||
documentation = "https://docs.rs/indexmap/"
|
documentation = "https://docs.rs/indexmap/"
|
||||||
|
readme = "README.md"
|
||||||
keywords = [
|
keywords = [
|
||||||
"hashmap",
|
"hashmap",
|
||||||
"no_std",
|
"no_std",
|
||||||
|
|
@ -26,7 +27,6 @@ categories = [
|
||||||
]
|
]
|
||||||
license = "Apache-2.0 OR MIT"
|
license = "Apache-2.0 OR MIT"
|
||||||
repository = "https://github.com/bluss/indexmap"
|
repository = "https://github.com/bluss/indexmap"
|
||||||
resolver = "2"
|
|
||||||
|
|
||||||
[package.metadata.release]
|
[package.metadata.release]
|
||||||
no-dev-version = true
|
no-dev-version = true
|
||||||
|
|
@ -34,6 +34,8 @@ tag-name = "{{version}}"
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
features = [
|
features = [
|
||||||
|
"arbitrary",
|
||||||
|
"quickcheck",
|
||||||
"serde-1",
|
"serde-1",
|
||||||
"rayon",
|
"rayon",
|
||||||
]
|
]
|
||||||
|
|
@ -44,11 +46,21 @@ debug = true
|
||||||
[lib]
|
[lib]
|
||||||
bench = false
|
bench = false
|
||||||
|
|
||||||
|
[dependencies.arbitrary]
|
||||||
|
version = "1.0"
|
||||||
|
optional = true
|
||||||
|
default-features = false
|
||||||
|
|
||||||
[dependencies.hashbrown]
|
[dependencies.hashbrown]
|
||||||
version = "0.12"
|
version = "0.12"
|
||||||
features = ["raw"]
|
features = ["raw"]
|
||||||
default-features = false
|
default-features = false
|
||||||
|
|
||||||
|
[dependencies.quickcheck]
|
||||||
|
version = "1.0"
|
||||||
|
optional = true
|
||||||
|
default-features = false
|
||||||
|
|
||||||
[dependencies.rayon]
|
[dependencies.rayon]
|
||||||
version = "1.4.1"
|
version = "1.4.1"
|
||||||
optional = true
|
optional = true
|
||||||
|
|
|
||||||
5
third_party/rust/indexmap/RELEASES.md
vendored
5
third_party/rust/indexmap/RELEASES.md
vendored
|
|
@ -1,3 +1,8 @@
|
||||||
|
- 1.9.2
|
||||||
|
|
||||||
|
- `IndexMap` and `IndexSet` both implement `arbitrary::Arbitrary<'_>` and
|
||||||
|
`quickcheck::Arbitrary` if those optional dependency features are enabled.
|
||||||
|
|
||||||
- 1.9.1
|
- 1.9.1
|
||||||
|
|
||||||
- The MSRV now allows Rust 1.56.0 as well. However, currently `hashbrown`
|
- The MSRV now allows Rust 1.56.0 as well. However, currently `hashbrown`
|
||||||
|
|
|
||||||
75
third_party/rust/indexmap/src/arbitrary.rs
vendored
Normal file
75
third_party/rust/indexmap/src/arbitrary.rs
vendored
Normal file
|
|
@ -0,0 +1,75 @@
|
||||||
|
#[cfg(feature = "arbitrary")]
|
||||||
|
mod impl_arbitrary {
|
||||||
|
use crate::{IndexMap, IndexSet};
|
||||||
|
use arbitrary::{Arbitrary, Result, Unstructured};
|
||||||
|
use core::hash::{BuildHasher, Hash};
|
||||||
|
|
||||||
|
impl<'a, K, V, S> Arbitrary<'a> for IndexMap<K, V, S>
|
||||||
|
where
|
||||||
|
K: Arbitrary<'a> + Hash + Eq,
|
||||||
|
V: Arbitrary<'a>,
|
||||||
|
S: BuildHasher + Default,
|
||||||
|
{
|
||||||
|
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> {
|
||||||
|
u.arbitrary_iter()?.collect()
|
||||||
|
}
|
||||||
|
|
||||||
|
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self> {
|
||||||
|
u.arbitrary_take_rest_iter()?.collect()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl<'a, T, S> Arbitrary<'a> for IndexSet<T, S>
|
||||||
|
where
|
||||||
|
T: Arbitrary<'a> + Hash + Eq,
|
||||||
|
S: BuildHasher + Default,
|
||||||
|
{
|
||||||
|
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> {
|
||||||
|
u.arbitrary_iter()?.collect()
|
||||||
|
}
|
||||||
|
|
||||||
|
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self> {
|
||||||
|
u.arbitrary_take_rest_iter()?.collect()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "quickcheck")]
|
||||||
|
mod impl_quickcheck {
|
||||||
|
use crate::{IndexMap, IndexSet};
|
||||||
|
use alloc::boxed::Box;
|
||||||
|
use alloc::vec::Vec;
|
||||||
|
use core::hash::{BuildHasher, Hash};
|
||||||
|
use quickcheck::{Arbitrary, Gen};
|
||||||
|
|
||||||
|
impl<K, V, S> Arbitrary for IndexMap<K, V, S>
|
||||||
|
where
|
||||||
|
K: Arbitrary + Hash + Eq,
|
||||||
|
V: Arbitrary,
|
||||||
|
S: BuildHasher + Default + Clone + 'static,
|
||||||
|
{
|
||||||
|
fn arbitrary(g: &mut Gen) -> Self {
|
||||||
|
Self::from_iter(Vec::arbitrary(g))
|
||||||
|
}
|
||||||
|
|
||||||
|
fn shrink(&self) -> Box<dyn Iterator<Item = Self>> {
|
||||||
|
let vec = Vec::from_iter(self.clone());
|
||||||
|
Box::new(vec.shrink().map(Self::from_iter))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl<T, S> Arbitrary for IndexSet<T, S>
|
||||||
|
where
|
||||||
|
T: Arbitrary + Hash + Eq,
|
||||||
|
S: BuildHasher + Default + Clone + 'static,
|
||||||
|
{
|
||||||
|
fn arbitrary(g: &mut Gen) -> Self {
|
||||||
|
Self::from_iter(Vec::arbitrary(g))
|
||||||
|
}
|
||||||
|
|
||||||
|
fn shrink(&self) -> Box<dyn Iterator<Item = Self>> {
|
||||||
|
let vec = Vec::from_iter(self.clone());
|
||||||
|
Box::new(vec.shrink().map(Self::from_iter))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1
third_party/rust/indexmap/src/lib.rs
vendored
1
third_party/rust/indexmap/src/lib.rs
vendored
|
|
@ -85,6 +85,7 @@ extern crate std;
|
||||||
|
|
||||||
use alloc::vec::{self, Vec};
|
use alloc::vec::{self, Vec};
|
||||||
|
|
||||||
|
mod arbitrary;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
mod macros;
|
mod macros;
|
||||||
mod equivalent;
|
mod equivalent;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue