diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2023-02-02 13:13:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-02 13:13:23 +0300 |
commit | 799d8f75bb4bcbf06f794dd23971633486f90906 (patch) | |
tree | 1fbd510cf6dd10afad83753d4834922d979b0521 /Cargo.lock | |
parent | 3354203e571e427b7152999d13af8a1cbd14e0d8 (diff) | |
download | alacritty-799d8f75bb4bcbf06f794dd23971633486f90906.tar.gz alacritty-799d8f75bb4bcbf06f794dd23971633486f90906.zip |
Fix notify doing active polling
The `notify-debouncer-mini` spawn a thread which checks the events
every timeout, which is not desired since we want to avoid active
polling.
This commit re-implements debouncer based on the `RecommendedWatcher`
without adding an extra thread on top and not doing any busy-waiting.
Fixes #6652.
Diffstat (limited to 'Cargo.lock')
-rw-r--r-- | Cargo.lock | 32 |
1 files changed, 19 insertions, 13 deletions
@@ -28,7 +28,7 @@ dependencies = [ "glutin", "libc", "log", - "notify-debouncer-mini", + "notify", "objc", "once_cell", "parking_lot 0.12.1", @@ -1149,9 +1149,9 @@ dependencies = [ [[package]] name = "notify" -version = "5.0.0" +version = "5.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed2c66da08abae1c024c01d635253e402341b4060a12e99b31c7594063bf490a" +checksum = "58ea850aa68a06e48fdb069c0ec44d0d64c8dbffa49bf3b6f7f0a901fdea1ba9" dependencies = [ "bitflags", "crossbeam-channel", @@ -1162,16 +1162,7 @@ dependencies = [ "libc", "mio 0.8.4", "walkdir", - "winapi 0.3.9", -] - -[[package]] -name = "notify-debouncer-mini" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e23e9fa24f094b143c1eb61f90ac6457de87be6987bc70746e0179f7dbc9007b" -dependencies = [ - "notify", + "windows-sys 0.42.0", ] [[package]] @@ -2058,6 +2049,21 @@ dependencies = [ [[package]] name = "windows-sys" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc 0.42.1", + "windows_i686_gnu 0.42.1", + "windows_i686_msvc 0.42.1", + "windows_x86_64_gnu 0.42.1", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc 0.42.1", +] + +[[package]] +name = "windows-sys" version = "0.45.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" |