Registry / utility / notify-debouncer-full

notify-debouncer-full

JSON →
library0.7.0rscratesunverified

Notify event debouncer optimized for ease of use, providing debounced file system notifications.

# Cargo.toml [dependencies] notify-debouncer-full = "0.7.0"
INSTALL
IMPORT
SIG · NOTIFY-DEBOUNCER-F
N
notify-debouncer-full
utilityrustv0.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

new_debouncer
use notify_debouncer_full::new_debouncer;

Create a debouncer that watches a directory and prints debounced events.

use notify_debouncer_full::new_debouncer; use std::time::Duration; fn main() -> notify::Result<()> { let mut debouncer = new_debouncer(Duration::from_secs(2), |events| { println!("{:?}", events); })?; debouncer.watcher().watch("/path", notify::RecursiveMode::Recursive)?; std::thread::sleep(Duration::from_secs(10)); Ok(()) }
Debug
Known issues
gotchaRequires the `notify` crate as a dependency; the debouncer wraps a `notify::Watcher`.
fix
Add `notify` to your Cargo.toml alongside `notify-debouncer-full`.
affects: >=0.7.0
Upgrade
Version history
0.7.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
notify-debouncer-full — cargo add notify-debouncer-full · libregistry