From 9aa7dc977719216ccd6f21dbb98bee533df5e27c Mon Sep 17 00:00:00 2001 From: Louis Deconinck Date: Sat, 12 Sep 2026 17:15:50 +0200 Subject: [PATCH] chore(core): remove unused dashmap dependency diskern-core declared dashmap but never references it: no DashMap import or use exists anywhere in crates/ or app/. The dependency is left over from an earlier plan for the parallel walk, which ended up with jwalk collecting into a Vec and rayon doing the hashing. Drop the line from crates/diskern-core/Cargo.toml and the entry from the root workspace table. Cargo.lock sheds dashmap 6.2.1 plus the hashbrown 0.14.5 copy that only dashmap used, trimming build time and audit surface for a crate the engine never links. cargo clippy -p diskern-core -p diskern-cli --all-targets -- -D warnings and cargo test -p diskern-core -p diskern-cli stay green. Closes #86 --- Cargo.lock | 21 --------------------- Cargo.toml | 1 - crates/diskern-core/Cargo.toml | 1 - 3 files changed, 23 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f8bfe2f..9c6ab60 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -705,20 +705,6 @@ dependencies = [ "syn 2.0.119", ] -[[package]] -name = "dashmap" -version = "6.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6361d5c062261c78a176addb82d4c821ae42bed6089de0e12603cd25de2059c" -dependencies = [ - "cfg-if", - "crossbeam-utils", - "hashbrown 0.14.5", - "lock_api", - "once_cell", - "parking_lot_core", -] - [[package]] name = "dbus" version = "0.9.12" @@ -864,7 +850,6 @@ name = "diskern-core" version = "0.3.0" dependencies = [ "blake3", - "dashmap", "globset", "jwalk", "petgraph", @@ -1535,12 +1520,6 @@ version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" -[[package]] -name = "hashbrown" -version = "0.14.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" - [[package]] name = "hashbrown" version = "0.15.5" diff --git a/Cargo.toml b/Cargo.toml index f053995..bd6f669 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,6 @@ rayon = "1" # Core data structures petgraph = "0.8" -dashmap = "6" # Path matching for the rules database globset = "0.4" diff --git a/crates/diskern-core/Cargo.toml b/crates/diskern-core/Cargo.toml index 4076c91..470cdd1 100644 --- a/crates/diskern-core/Cargo.toml +++ b/crates/diskern-core/Cargo.toml @@ -21,7 +21,6 @@ blake3.workspace = true jwalk.workspace = true rayon.workspace = true petgraph.workspace = true -dashmap.workspace = true globset.workspace = true [dev-dependencies]