Crate hotwatch

source ·
Expand description

hotwatch is a Rust library for comfortably watching and handling file changes. It’s a thin convenience wrapper over notify, allowing you to easily set callbacks for each path you want to watch.

Watching is done on a separate thread so you don’t have to worry about blocking. All handlers are run on that thread as well, so keep that in mind when attempting to access outside data from within a handler.

(There’s also a blocking mode, in case you’re a big fan of blocking.)

Only the latest stable version of Rust is supported.




  • A non-blocking hotwatch instance.


Type Definitions

  • A debounced event. At the moment this is the same as a normal event.