diff options
Diffstat (limited to '')
-rw-r--r-- | third_party/rust/hashlink/.cargo-checksum.json | 2 | ||||
-rw-r--r-- | third_party/rust/hashlink/CHANGELOG.md | 3 | ||||
-rw-r--r-- | third_party/rust/hashlink/Cargo.toml | 8 | ||||
-rw-r--r-- | third_party/rust/hashlink/tests/serde.rs | 10 |
4 files changed, 14 insertions, 9 deletions
diff --git a/third_party/rust/hashlink/.cargo-checksum.json b/third_party/rust/hashlink/.cargo-checksum.json index 2eca6e96e0..fdc962b32f 100644 --- a/third_party/rust/hashlink/.cargo-checksum.json +++ b/third_party/rust/hashlink/.cargo-checksum.json @@ -1 +1 @@ -{"files":{"CHANGELOG.md":"198cbb28cb803006c074811eece27e07e2cce6b463750fffcc47c6255d10e82c","Cargo.toml":"ff6fc403d9a7b64a597026915c1bc52c70d990d9929dd414667e78798dfaf1f7","LICENSE-APACHE":"c144680885b29e4719e2a51f0aab5439a1e02d980692b5aaf086cae12727f28b","LICENSE-MIT":"e915669a595b11a200873df8286561881b0e04932f6412a585db6297ba0bc97c","README.md":"acc16f95f79df4789a0f116c8748242aac2c17e38ab91d6d5e59c89271ca51e9","src/lib.rs":"12f7bf2e1bdc312fd9740b639983916a2e7a8582c588902af8c4ac71b9032fde","src/linked_hash_map.rs":"cd88b14beac407986d23ea3ab944dd666f62a7a75c99151296b2b1eef54d3569","src/linked_hash_set.rs":"36892b3a9a3388fe2a5454051a691dd38d512771f08a1638ba8322afc65dfe61","src/lru_cache.rs":"d2322af90780a3ef192f25d213f5af38e1dc6492a323fb361757d53692058774","src/serde.rs":"451a34dec0e29d205f997710bf9e733836832f6402e36640f3b6de272a1fd9d4","tests/linked_hash_map.rs":"c2d259c9d0325f4b73268dc686b8cca8fc3c778c757012825a82474026f28634","tests/linked_hash_set.rs":"bfaa3018a99c5c36cf0059bf7836142c2cc69be7f03a8c20bd52131f877e2eec","tests/lru_cache.rs":"c0328001d53e2a0d1ef6fb36550e8cbb989ef1914cef3657f1832b280f4d4572","tests/serde.rs":"d359b4125009705dcba9219ee5f027bbe8bb18008c111e3541c41e141f9b02f2"},"package":"69fe1fcf8b4278d860ad0548329f892a3631fb63f82574df68275f34cdbe0ffa"}
\ No newline at end of file +{"files":{"CHANGELOG.md":"3479e430ed4bfcd38ac0d9bff95873d8e018e462e0c2dd370a58c282a47caa59","Cargo.toml":"ab72ee61c8eebd28e3904c50b819f13f5be04441b8bfc1fba06607877f94a344","LICENSE-APACHE":"c144680885b29e4719e2a51f0aab5439a1e02d980692b5aaf086cae12727f28b","LICENSE-MIT":"e915669a595b11a200873df8286561881b0e04932f6412a585db6297ba0bc97c","README.md":"acc16f95f79df4789a0f116c8748242aac2c17e38ab91d6d5e59c89271ca51e9","src/lib.rs":"12f7bf2e1bdc312fd9740b639983916a2e7a8582c588902af8c4ac71b9032fde","src/linked_hash_map.rs":"cd88b14beac407986d23ea3ab944dd666f62a7a75c99151296b2b1eef54d3569","src/linked_hash_set.rs":"36892b3a9a3388fe2a5454051a691dd38d512771f08a1638ba8322afc65dfe61","src/lru_cache.rs":"d2322af90780a3ef192f25d213f5af38e1dc6492a323fb361757d53692058774","src/serde.rs":"451a34dec0e29d205f997710bf9e733836832f6402e36640f3b6de272a1fd9d4","tests/linked_hash_map.rs":"c2d259c9d0325f4b73268dc686b8cca8fc3c778c757012825a82474026f28634","tests/linked_hash_set.rs":"bfaa3018a99c5c36cf0059bf7836142c2cc69be7f03a8c20bd52131f877e2eec","tests/lru_cache.rs":"c0328001d53e2a0d1ef6fb36550e8cbb989ef1914cef3657f1832b280f4d4572","tests/serde.rs":"4e0b1c19c3c542f0b9adac72f6ff32907da6bb58b4f1810dcdf9cd4e2eef34b1"},"package":"0761a1b9491c4f2e3d66aa0f62d0fba0af9a0e2852e4d48ea506632a4b56e6aa"}
\ No newline at end of file diff --git a/third_party/rust/hashlink/CHANGELOG.md b/third_party/rust/hashlink/CHANGELOG.md index 0cec7be6c0..9d4bd44470 100644 --- a/third_party/rust/hashlink/CHANGELOG.md +++ b/third_party/rust/hashlink/CHANGELOG.md @@ -1,3 +1,6 @@ +## [0.8.2] +- bump hashbrown to 0.13 + ## [0.8.1] - Add `retain_with_order` methods, equivalent to `retain` but which iterate through the map in the proper linked list order diff --git a/third_party/rust/hashlink/Cargo.toml b/third_party/rust/hashlink/Cargo.toml index 308f9f77c3..474901d947 100644 --- a/third_party/rust/hashlink/Cargo.toml +++ b/third_party/rust/hashlink/Cargo.toml @@ -12,7 +12,7 @@ [package] edition = "2018" name = "hashlink" -version = "0.8.1" +version = "0.8.2" authors = ["kyren <kerriganw@gmail.com>"] description = "HashMap-like containers that hold their key-value pairs in a user controllable order" documentation = "https://docs.rs/hashlink" @@ -22,14 +22,14 @@ license = "MIT OR Apache-2.0" repository = "https://github.com/kyren/hashlink" [dependencies.hashbrown] -version = "0.12.0" +version = "0.13" [dependencies.serde] version = "1.0" optional = true -[dev-dependencies.fxhash] -version = "0.2.1" +[dev-dependencies.rustc-hash] +version = "1.1" [dev-dependencies.serde_test] version = "1.0" diff --git a/third_party/rust/hashlink/tests/serde.rs b/third_party/rust/hashlink/tests/serde.rs index d397a245fa..2cf4a3e3fb 100644 --- a/third_party/rust/hashlink/tests/serde.rs +++ b/third_party/rust/hashlink/tests/serde.rs @@ -1,7 +1,9 @@ #![cfg(feature = "serde_impl")] -use fxhash::FxBuildHasher; +use std::hash::BuildHasherDefault; + use hashlink::{LinkedHashMap, LinkedHashSet}; +use rustc_hash::FxHasher; use serde_test::{assert_tokens, Token}; #[test] @@ -35,14 +37,14 @@ fn map_serde_tokens() { #[test] fn map_serde_tokens_empty_generic() { - let map = LinkedHashMap::<char, u32, FxBuildHasher>::with_hasher(FxBuildHasher::default()); + let map = LinkedHashMap::<char, u32, BuildHasherDefault<FxHasher>>::default(); assert_tokens(&map, &[Token::Map { len: Some(0) }, Token::MapEnd]); } #[test] fn map_serde_tokens_generic() { - let mut map = LinkedHashMap::with_hasher(FxBuildHasher::default()); + let mut map = LinkedHashMap::<char, i32, BuildHasherDefault<FxHasher>>::default(); map.insert('a', 10); map.insert('b', 20); map.insert('c', 30); @@ -90,7 +92,7 @@ fn set_serde_tokens() { #[test] fn set_serde_tokens_generic() { - let mut set = LinkedHashSet::with_hasher(FxBuildHasher::default()); + let mut set = LinkedHashSet::<char, BuildHasherDefault<FxHasher>>::default(); set.insert('a'); set.insert('b'); set.insert('c'); |