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.
At least Rust 1.24 is required, due to the requirements of parking_lot
.
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.