Negahban

🧐 A simple file watcher, based on notify, designed to be fast, easy-to-use and async friendly

MIT License Crates.io docs.rs

Overview 📊

negahban is a Rust library based on notify that allows you to watch a directory for changes.

This library is designed to be:

Features ✨

Usage 🔨

Add this to your Cargo.toml:

toml [dependencies] negahban = "0.2.1"

A minimal example that monitors the current directory and logs events to the console:

rust use negahban::Negahban; fn main() { Negahban { hook: Box::new(|event, _| println!("{:?}", event)), ..Negahban::default() }.run(); }

Examples 👨‍💻

See the examples/ directory for more examples.

License ⚖

This project is licensed under the MIT License - see the LICENSE file for details.