#events #watch #notify

notify-fork

Cross-platform filesystem notification library

1 stable release

6.1.1 Aug 15, 2024

#1206 in Filesystem

Download history 1673/week @ 2024-08-17 1952/week @ 2024-08-24 1742/week @ 2024-08-31 1618/week @ 2024-09-07 1854/week @ 2024-09-14 1995/week @ 2024-09-21 1737/week @ 2024-09-28 1647/week @ 2024-10-05 1545/week @ 2024-10-12 1643/week @ 2024-10-19 1235/week @ 2024-10-26 884/week @ 2024-11-02 755/week @ 2024-11-09 740/week @ 2024-11-16 724/week @ 2024-11-23 733/week @ 2024-11-30

3,076 downloads per month
Used in 2 crates (via yazi-core)

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–9MB
~74K SLoC