Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

build(deps): bump lru from 0.16.3 to 0.18.0 (#3556)

dependabot[bot]245c9029ec13
diff --git a/Cargo.lock b/Cargo.lock
index aa4efa529..e46cc17a9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4521,6 +4521,17 @@ dependencies = [
"serde_core",
]
+[[package]]
+name = "hashbrown"
+version = "0.17.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
+dependencies = [
+ "allocator-api2",
+ "equivalent",
+ "foldhash 0.2.0",
+]
+
[[package]]
name = "heck"
version = "0.4.1"
@@ -5311,11 +5322,11 @@ dependencies = [
[[package]]
name = "lru"
-version = "0.16.3"
+version = "0.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a1dc47f592c06f33f8e3aea9591776ec7c9f9e4124778ff8a3c3b87159f7e593"
+checksum = "8a860605968fce16869fd239cf4237a82f3ac470723415db603b0e8b6c8d4fb9"
dependencies = [
- "hashbrown 0.16.1",
+ "hashbrown 0.17.1",
]
[[package]]
diff --git a/harper-core/Cargo.toml b/harper-core/Cargo.toml
index 63e98c34f..c70dcb8de 100644
--- a/harper-core/Cargo.toml
+++ b/harper-core/Cargo.toml
@@ -25,7 +25,7 @@ unicode-script = "0.5.8"
unicode-width = "0.2.2"
levenshtein_automata = { version = "0.2.1", features = ["fst_automaton"] }
cached = "0.59.0"
-lru = "0.16.3"
+lru = "0.18.0"
foldhash = "0.2.0"
strum_macros = "0.28.0"
strum = "0.28.0"
diff --git a/harper-core/src/weir/parsing/stmt.rs b/harper-core/src/weir/parsing/stmt.rs
index db300205a..cd5801d9d 100644
--- a/harper-core/src/weir/parsing/stmt.rs
+++ b/harper-core/src/weir/parsing/stmt.rs
@@ -22,9 +22,8 @@ pub fn parse_str(weir_code: &str, use_optimizer: bool) -> Result<Arc<Ast>, Error
// This is used as the key for the cache hashmap.
type ParseStrParams = (Arc<String>, bool);
- static PARSE_CACHE: LazyLock<
- RwLock<LruCache<ParseStrParams, Arc<Ast>, hashbrown::DefaultHashBuilder>>,
- > = LazyLock::new(|| RwLock::new(LruCache::new(NonZeroUsize::new(10000).unwrap())));
+ static PARSE_CACHE: LazyLock<RwLock<LruCache<ParseStrParams, Arc<Ast>>>> =
+ LazyLock::new(|| RwLock::new(LruCache::new(NonZeroUsize::new(10000).unwrap())));
let weir_code = Arc::new(weir_code.to_owned());
diff --git a/harper-pos-utils/Cargo.toml b/harper-pos-utils/Cargo.toml
index e5dd5f867..ce7799b8c 100644
--- a/harper-pos-utils/Cargo.toml
+++ b/harper-pos-utils/Cargo.toml
@@ -17,7 +17,7 @@ rand = { version = "0.10.1", optional = true }
burn = { version = "0.19.1", default-features = false, features = ["std"] }
burn-ndarray = { version = "0.19.0", default-features = false }
serde_json = "1.0.149"
-lru = "0.16.3"
+lru = "0.18.0"
rayon = { version = "1.12.0", optional = true }
[features]