Function hotlib::watch[][src]

pub fn watch(path: &Path) -> Result<Watch, WatchError>
Expand description

Watch the library at the given Path.

The given Path should point to the Cargo.toml of the package used to build the library.

When a library is being “watched”, the library will be re-built any time some filesystem event occurs within the library’s source directory. The target used is the first “dylib” discovered within the package.

The notify crate is used to watch for file-system events in a cross-platform manner.