#events #watch

notify

Cross-platform filesystem notification library

72 releases (stable)

6.1.1 Aug 21, 2023
6.0.1 Jun 15, 2023
5.2.0 May 17, 2023
5.1.0 Jan 28, 2023
0.0.1 Dec 20, 2014

#6 in Filesystem

Download history 212048/week @ 2024-01-02 228550/week @ 2024-01-09 247527/week @ 2024-01-16 249489/week @ 2024-01-23 252610/week @ 2024-01-30 254723/week @ 2024-02-06 252247/week @ 2024-02-13 258660/week @ 2024-02-20 256170/week @ 2024-02-27 269054/week @ 2024-03-05 261897/week @ 2024-03-12 277391/week @ 2024-03-19 271771/week @ 2024-03-26 271389/week @ 2024-04-02 250282/week @ 2024-04-09 231355/week @ 2024-04-16

1,073,092 downloads per month
Used in 1,030 crates (563 directly)

CC0 license

165KB
3K SLoC

Notify

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

Cross-platform filesystem notification library for Rust.

As used by: alacritty, cargo watch, cobalt, docket, mdBook, rust-analyzer, watchexec, xi-editor, watchfiles, 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
  • 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.5–11MB
~90K SLoC