#events #watch

notify

Cross-platform filesystem notification library

73 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

#5 in Filesystem

Download history 273065/week @ 2024-03-28 256322/week @ 2024-04-04 266238/week @ 2024-04-11 287424/week @ 2024-04-18 266205/week @ 2024-04-25 254191/week @ 2024-05-02 244701/week @ 2024-05-09 272668/week @ 2024-05-16 266682/week @ 2024-05-23 281168/week @ 2024-05-30 265097/week @ 2024-06-06 258279/week @ 2024-06-13 270332/week @ 2024-06-20 263583/week @ 2024-06-27 225849/week @ 2024-07-04 203481/week @ 2024-07-11

1,003,313 downloads per month
Used in 1,101 crates (596 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–13MB
~105K SLoC