75 releases (stable)

new 8.0.0 Jan 10, 2025
7.0.0 Oct 25, 2024
6.1.1 Aug 21, 2023
6.0.1 Jun 15, 2023
0.0.1 Dec 20, 2014

#4 in Filesystem

Download history 259625/week @ 2024-09-24 265179/week @ 2024-10-01 244788/week @ 2024-10-08 282892/week @ 2024-10-15 284824/week @ 2024-10-22 268315/week @ 2024-10-29 262061/week @ 2024-11-05 587465/week @ 2024-11-12 584106/week @ 2024-11-19 356808/week @ 2024-11-26 402858/week @ 2024-12-03 462128/week @ 2024-12-10 372698/week @ 2024-12-17 166136/week @ 2024-12-24 270349/week @ 2024-12-31 467344/week @ 2025-01-07

1,357,156 downloads per month
Used in 1,364 crates (709 directly)

CC0 license

180KB
3K SLoC

Notify

» Crate » Docs » CI » Downloads » Conduct » Public Domain

Cross-platform filesystem notification library for Rust.

As used by: alacritty, cargo watch, cobalt, deno, docket, mdBook, rust-analyzer, watchexec, watchfiles, xi-editor, and others.

(Looking for desktop notifications instead? Have a look at notify-rust or alert-after!)

Platforms

  • Linux / Android: inotify
  • macOS: FSEvents or kqueue, see features
  • Windows: ReadDirectoryChangesW
  • iOS / FreeBSD / NetBSD / OpenBSD / DragonflyBSD: kqueue
  • All platforms: polling

License

notify is licensed under the CC Zero 1.0.
notify-types is licensed under the MIT or Apache-2.0 license.
notify-debouncer-mini is licensed under the MIT or Apache-2.0 license.
notify-debouncer-full is licensed under the MIT or Apache-2.0 license.
file-id is licensed under the MIT or Apache-2.0 license.

Origins

Inspired by Go's fsnotify and Node.js's Chokidar, born out of need for cargo watch, and general frustration at the non-existence of C/Rust cross-platform notify libraries.

Originally created by Félix Saparelli and awesome contributors.

Dependencies

~0.2–8.5MB
~69K SLoC