#events #notify #watch

notify-debouncer-full

notify event debouncer optimized for ease of use

4 releases (2 breaking)

0.3.1 Aug 21, 2023
0.3.0 Aug 20, 2023
0.2.0 Jun 15, 2023
0.1.0 May 17, 2023

#77 in Filesystem

Download history 17142/week @ 2023-08-11 20083/week @ 2023-08-18 21917/week @ 2023-08-25 17616/week @ 2023-09-01 21441/week @ 2023-09-08 25368/week @ 2023-09-15 14588/week @ 2023-09-22 18405/week @ 2023-09-29 22235/week @ 2023-10-06 24129/week @ 2023-10-13 22206/week @ 2023-10-20 25252/week @ 2023-10-27 25291/week @ 2023-11-03 32489/week @ 2023-11-10 32841/week @ 2023-11-17 18906/week @ 2023-11-24

114,395 downloads per month
Used in 51 crates (18 directly)

MIT/Apache

225KB
4K SLoC

Notify Debouncer Full

» Docs

A debouncer for notify that is optimized for ease of use.

  • Only emits a single Rename event if the rename From and To events can be matched
  • Merges multiple Rename events
  • Takes Rename events into account and updates paths for events that occurred before the rename event, but which haven't been emitted, yet
  • Optionally keeps track of the file system IDs all files and stiches rename events together (FSevents, Windows)
  • Emits only one Remove event when deleting a directory (inotify)
  • Doesn't emit duplicate create events
  • Doesn't emit Modify events after a Create event

Features

  • crossbeam enabled by default, for crossbeam channel support.

    This may create problems used in tokio environments. See #380.
    Use someting like the following to disable it.

    notify-debouncer-full = { version = "*", default-features = false }
    

    This also passes through to notify as crossbeam-channel feature.

Dependencies

~0.8–8.5MB
~63K SLoC