#events #watch #notify

notify-fork

Cross-platform filesystem notification library

1 stable release

6.1.1 Aug 15, 2024

#1481 in Filesystem

Download history 1776/week @ 2024-09-09 1846/week @ 2024-09-16 1922/week @ 2024-09-23 1690/week @ 2024-09-30 1623/week @ 2024-10-07 1586/week @ 2024-10-14 1642/week @ 2024-10-21 1014/week @ 2024-10-28 880/week @ 2024-11-04 685/week @ 2024-11-11 746/week @ 2024-11-18 748/week @ 2024-11-25 723/week @ 2024-12-02 256/week @ 2024-12-09 51/week @ 2024-12-16 10/week @ 2024-12-23

1,147 downloads per month

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–12MB
~77K SLoC