hotwatch
hotwatch
is a Rust library for comfortably watching and handling file changes. It's a thin convenience wrapper over notify
, allowing you to easily spawn handlers.
Only the latest stable version of Rust is supported. hotwatch
may still work with older versions, but I make no guarantees.
use ;
let mut hotwatch = new.expect;
hotwatch.watch.expect;
Why should I use this instead of warmy
?
warmy
is a more general solution for responding to resource changes. hotwatch
is very simplistic and intends to be trivial to integrate.
I've never actually used warmy
, though. It's probably awesome. I just know that hotwatch
is really easy to use, and has a sexier name.