74 releases (stable)

7.0.0 Oct 25, 2024
6.1.1 Aug 21, 2023
6.0.1 Jun 15, 2023
5.2.0 May 17, 2023
0.0.1 Dec 20, 2014

#6 in Filesystem

Download history 240870/week @ 2024-08-03 249321/week @ 2024-08-10 235861/week @ 2024-08-17 249886/week @ 2024-08-24 234837/week @ 2024-08-31 237033/week @ 2024-09-07 236927/week @ 2024-09-14 259343/week @ 2024-09-21 260639/week @ 2024-09-28 256372/week @ 2024-10-05 271738/week @ 2024-10-12 284577/week @ 2024-10-19 269628/week @ 2024-10-26 266426/week @ 2024-11-02 513514/week @ 2024-11-09 497768/week @ 2024-11-16

1,593,869 downloads per month
Used in 1,288 crates (673 directly)

CC0 license

175KB
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-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
~76K SLoC