#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

#662 in Filesystem

Download history 33477/week @ 2024-01-29 23519/week @ 2024-02-05 35386/week @ 2024-02-12 31232/week @ 2024-02-19 39926/week @ 2024-02-26 38902/week @ 2024-03-04 31113/week @ 2024-03-11 39189/week @ 2024-03-18 36684/week @ 2024-03-25 42291/week @ 2024-04-01 22370/week @ 2024-04-08 37400/week @ 2024-04-15 40252/week @ 2024-04-22 39401/week @ 2024-04-29 36215/week @ 2024-05-06 40731/week @ 2024-05-13

158,196 downloads per month
Used in 88 crates (29 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.9–12MB
~78K SLoC