From b47c9da3a1003fa7e8b045c912799247e7b6f71e Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Thu, 13 Mar 2025 12:34:40 -0400 Subject: [PATCH] minor: Use a workspace dependency for parking_lot --- Cargo.toml | 1 + helix-core/Cargo.toml | 2 +- helix-event/Cargo.toml | 2 +- helix-lsp/Cargo.toml | 2 +- helix-view/Cargo.toml | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 58e22e532..52a52070a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,6 +46,7 @@ bitflags = "2.9" unicode-segmentation = "1.2" ropey = { version = "1.6.1", default-features = false, features = ["simd"] } foldhash = "0.1" +parking_lot = "0.12" [workspace.package] version = "25.1.1" diff --git a/helix-core/Cargo.toml b/helix-core/Cargo.toml index c5f983236..10fb5a52c 100644 --- a/helix-core/Cargo.toml +++ b/helix-core/Cargo.toml @@ -56,7 +56,7 @@ chrono = { version = "0.4", default-features = false, features = ["alloc", "std" textwrap = "0.16.2" nucleo.workspace = true -parking_lot = "0.12" +parking_lot.workspace = true globset = "0.4.16" regex-cursor = "0.1.5" diff --git a/helix-event/Cargo.toml b/helix-event/Cargo.toml index 5d3eeabc9..41f3b4836 100644 --- a/helix-event/Cargo.toml +++ b/helix-event/Cargo.toml @@ -18,7 +18,7 @@ tokio = { version = "1", features = ["rt", "rt-multi-thread", "time", "sync", "p # the event registry is essentially read only but must be an rwlock so we can # setup new events on initialization, hardware-lock-elision hugely benefits this case # as it essentially makes the lock entirely free as long as there is no writes -parking_lot = { version = "0.12", features = ["hardware-lock-elision"] } +parking_lot = { workspace = true, features = ["hardware-lock-elision"] } once_cell = "1.21" anyhow = "1" diff --git a/helix-lsp/Cargo.toml b/helix-lsp/Cargo.toml index 61bf2a2f7..09fd1b9f0 100644 --- a/helix-lsp/Cargo.toml +++ b/helix-lsp/Cargo.toml @@ -27,7 +27,7 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" tokio = { version = "1.44", features = ["rt", "rt-multi-thread", "io-util", "io-std", "time", "process", "macros", "fs", "parking_lot", "sync"] } tokio-stream = "0.1.17" -parking_lot = "0.12.3" +parking_lot.workspace = true arc-swap = "1" slotmap.workspace = true thiserror.workspace = true diff --git a/helix-view/Cargo.toml b/helix-view/Cargo.toml index ab5dcd07d..bcee1a0a7 100644 --- a/helix-view/Cargo.toml +++ b/helix-view/Cargo.toml @@ -49,7 +49,7 @@ serde_json = "1.0" toml = "0.8" log = "~0.4" -parking_lot = "0.12.3" +parking_lot.workspace = true thiserror.workspace = true [target.'cfg(windows)'.dependencies]