| 1 |
# Notify |
| 2 |
|
| 3 |
[][crate] |
| 4 |
[][notify-docs] |
| 5 |
[][build] |
| 6 |
[][crate] |
| 7 |
[][coc] |
| 8 |
[][cc0] |
| 9 |
|
| 10 |
_Cross-platform filesystem notification library for Rust._ |
| 11 |
|
| 12 |
|
| 13 |
- [Notify Documentation][notify-docs] |
| 14 |
- [Notify Types Documentation][notify-types-docs] |
| 15 |
- [Mini Debouncer Documentation][debouncer-mini-docs] |
| 16 |
- [Full Debouncer Documentation][debouncer-full-docs] |
| 17 |
- [File ID][file-id-docs] |
| 18 |
- [Examples][examples] |
| 19 |
- [Changelog][changelog] |
| 20 |
- [Upgrading notify from v4](UPGRADING_V4_TO_V5.md) |
| 21 |
- Minimum supported Rust version: **1.77** |
| 22 |
|
| 23 |
As used by: [alacritty], [cargo watch], [cobalt], [deno], [docket], [mdBook], |
| 24 |
[rust-analyzer], [watchexec], [watchfiles], [xi-editor], |
| 25 |
and others. |
| 26 |
|
| 27 |
(Looking for desktop notifications instead? Have a look at [notify-rust] or |
| 28 |
[alert-after]!) |
| 29 |
|
| 30 |
## Platforms |
| 31 |
|
| 32 |
- Linux / Android: inotify |
| 33 |
- macOS: FSEvents or kqueue, see features |
| 34 |
- Windows: ReadDirectoryChangesW |
| 35 |
- iOS / FreeBSD / NetBSD / OpenBSD / DragonflyBSD: kqueue |
| 36 |
- All platforms: polling |
| 37 |
|
| 38 |
## License |
| 39 |
|
| 40 |
notify is licensed under the [CC Zero 1.0][cc0]. |
| 41 |
notify-types is licensed under the [MIT] or [Apache-2.0][apache] license. |
| 42 |
notify-debouncer-mini is licensed under the [MIT] or [Apache-2.0][apache] license. |
| 43 |
notify-debouncer-full is licensed under the [MIT] or [Apache-2.0][apache] license. |
| 44 |
file-id is licensed under the [MIT] or [Apache-2.0][apache] license. |
| 45 |
|
| 46 |
## Origins |
| 47 |
|
| 48 |
Inspired by Go's [fsnotify] and Node.js's [Chokidar], born out of need for |
| 49 |
[cargo watch], and general frustration at the non-existence of C/Rust |
| 50 |
cross-platform notify libraries. |
| 51 |
|
| 52 |
Originally created by [Félix Saparelli] and awesome [contributors]. |
| 53 |
|
| 54 |
[Chokidar]: https://github.com/paulmillr/chokidar |
| 55 |
[FileSystemEventSecurity]: https://developer.apple.com/library/mac/documentation/Darwin/Conceptual/FSEvents_ProgGuide/FileSystemEventSecurity/FileSystemEventSecurity.html |
| 56 |
[debouncer-full-docs]: https://docs.rs/notify-debouncer-full/latest/notify_debouncer_full/ |
| 57 |
[debouncer-mini-docs]: https://docs.rs/notify-debouncer-mini/latest/notify_debouncer_mini/ |
| 58 |
[Félix Saparelli]: https://passcod.name |
| 59 |
[alacritty]: https://github.com/jwilm/alacritty |
| 60 |
[alert-after]: https://github.com/frewsxcv/alert-after |
| 61 |
[build]: https://github.com/notify-rs/notify/actions |
| 62 |
[cargo watch]: https://github.com/passcod/cargo-watch |
| 63 |
[cc0]: ./notify/LICENSE-CC0 |
| 64 |
[MIT]: ./file-id/LICENSE-MIT |
| 65 |
[apache]: ./file-id/LICENSE-APACHE |
| 66 |
[changelog]: ./CHANGELOG.md |
| 67 |
[cobalt]: https://github.com/cobalt-org/cobalt.rs |
| 68 |
[coc]: http://contributor-covenant.org/version/1/4/ |
| 69 |
[contributors]: https://github.com/notify-rs/notify/graphs/contributors |
| 70 |
[crate]: https://crates.io/crates/notify |
| 71 |
[deno]: https://github.com/denoland/deno |
| 72 |
[docket]: https://iwillspeak.github.io/docket/ |
| 73 |
[notify-docs]: https://docs.rs/notify/latest/notify/ |
| 74 |
[notify-types-docs]: https://docs.rs/notify-types/latest/notify-types/ |
| 75 |
[file-id-docs]: https://docs.rs/file-id/latest/file_id/ |
| 76 |
[fsnotify]: https://github.com/fsnotify/fsnotify |
| 77 |
[handlebars-iron]: https://github.com/sunng87/handlebars-iron |
| 78 |
[hotwatch]: https://github.com/francesca64/hotwatch |
| 79 |
[mdBook]: https://github.com/rust-lang-nursery/mdBook |
| 80 |
[notify-rust]: https://github.com/hoodie/notify-rust |
| 81 |
[rust-analyzer]: https://github.com/rust-analyzer/rust-analyzer |
| 82 |
[serde]: https://serde.rs/ |
| 83 |
[watchexec]: https://github.com/mattgreen/watchexec |
| 84 |
[wiki]: https://github.com/notify-rs/notify/wiki |
| 85 |
[xi-editor]: https://xi-editor.io/ |
| 86 |
[watchfiles]: https://watchfiles.helpmanual.io/ |
| 87 |
[examples]: examples/ |