#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

#8 in #watch

Download history 22083/week @ 2023-12-12 15228/week @ 2023-12-19 9138/week @ 2023-12-26 22786/week @ 2024-01-02 22279/week @ 2024-01-09 27662/week @ 2024-01-16 27008/week @ 2024-01-23 32089/week @ 2024-01-30 26051/week @ 2024-02-06 31197/week @ 2024-02-13 36044/week @ 2024-02-20 38179/week @ 2024-02-27 39262/week @ 2024-03-05 31891/week @ 2024-03-12 40150/week @ 2024-03-19 29409/week @ 2024-03-26

146,015 downloads per month
Used in 78 crates (27 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–11MB
~78K SLoC