#watch #events #notify

notify-debouncer-full

notify event debouncer optimized for ease of use

5 releases (breaking)

0.5.0 Jan 10, 2025
0.4.0 Oct 25, 2024
0.3.2 Oct 14, 2024
0.3.1 Aug 21, 2023
0.1.0 May 17, 2023

#93 in Filesystem

Download history 39630/week @ 2024-12-14 34344/week @ 2024-12-21 21380/week @ 2024-12-28 42782/week @ 2025-01-04 45555/week @ 2025-01-11 32427/week @ 2025-01-18 38967/week @ 2025-01-25 43995/week @ 2025-02-01 52546/week @ 2025-02-08 51133/week @ 2025-02-15 65936/week @ 2025-02-22 59659/week @ 2025-03-01 60798/week @ 2025-03-08 75106/week @ 2025-03-15 66170/week @ 2025-03-22 54950/week @ 2025-03-29

263,149 downloads per month
Used in 158 crates (55 directly)

MIT/Apache

240KB
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 stitches 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-channel passed down to notify, off by default

  • serialization-compat-6 passed down to notify, off by default

Dependencies

~0.2–7.5MB
~54K SLoC