From bf117bcfe3c635bdfc1c1a4caec474c3ecccb757 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20F=C3=B6rster?= Date: Fri, 21 Jan 2022 21:00:52 +0100 Subject: [PATCH] Update notify crate version --- Cargo.lock | 25 +++++++++++++++++++++++-- Cargo.toml | 2 +- src/workspace/watch.rs | 2 +- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2c5a201e..487021a5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -846,6 +846,26 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" +[[package]] +name = "kqueue" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "058a107a784f8be94c7d35c1300f4facced2e93d2fbe5b1452b44e905ddca4a9" +dependencies = [ + "kqueue-sys", + "libc", +] + +[[package]] +name = "kqueue-sys" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8367585489f01bc55dd27404dcf56b95e6da061a256a666ab23be9ba96a2e587" +dependencies = [ + "bitflags", + "libc", +] + [[package]] name = "lasso" version = "0.5.1" @@ -1090,15 +1110,16 @@ dependencies = [ [[package]] name = "notify" -version = "5.0.0-pre.10" +version = "5.0.0-pre.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51f18203a26893ca1d3526cf58084025d5639f91c44f8b70ab3b724f60e819a0" +checksum = "245d358380e2352c2d020e8ee62baac09b3420f1f6c012a31326cfced4ad487d" dependencies = [ "bitflags", "crossbeam-channel", "filetime", "fsevent-sys", "inotify", + "kqueue", "libc", "mio", "walkdir", diff --git a/Cargo.toml b/Cargo.toml index 647c7dd5..be49860d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,7 +55,7 @@ logos = "0.12.0" lsp-server = "0.5" lsp-types = "0.90.0" multimap = "0.8.3" -notify = "5.0.0-pre.10" +notify = "5.0.0-pre.13" once_cell = "1.9.0" petgraph = "0.6.0" rayon = "1.5.1" diff --git a/src/workspace/watch.rs b/src/workspace/watch.rs index 655872f6..2d506eb2 100644 --- a/src/workspace/watch.rs +++ b/src/workspace/watch.rs @@ -32,7 +32,7 @@ where } fn create_watcher(workspace: Arc) -> Result { - let watcher = Watcher::new_immediate(move |event: notify::Result| { + let watcher = notify::recommended_watcher(move |event: notify::Result| { if let Ok(event) = event { if event.kind.is_modify() { for path in event.paths {