#events #notify #watch

notify-types

Types used by the notify crate

2 stable releases

new 1.0.1 Dec 17, 2024
1.0.0 Oct 25, 2024

#1510 in Filesystem

Download history 8729/week @ 2024-10-25 18994/week @ 2024-11-01 25874/week @ 2024-11-08 25914/week @ 2024-11-15 29039/week @ 2024-11-22 34730/week @ 2024-11-29 37316/week @ 2024-12-06 28867/week @ 2024-12-13

134,646 downloads per month
Used in 144 crates (3 directly)

MIT/Apache

36KB
462 lines

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

~180KB