| 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.85** |
| 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 | ## Minimum Supported Rust Version (MSRV) Policy |
| 31 | |
| 32 | We follow these MSRV rules: |
| 33 | |
| 34 | - The current MSRV is **1.85**. |
| 35 | - MSRV bumps do NOT require a major release and may happen in minor releases. |
| 36 | - The MSRV may be updated when needed, but support for the current stable Rust release and the previous two stable releases (N, N-1, N-2) is always guaranteed. |
| 37 | - For example, if the current stable version is 1.85, we guarantee support for 1.85, 1.84, and 1.83, so the minimum supported Rust version will be **at most** 1.83. |
| 38 | - MSRV is bumped only when needed, e.g.: |
| 39 | - required by dependencies |
| 40 | - any serious bug is found (including security-related) |
| 41 | - adopting new stable Rust features |
| 42 | - Every MSRV bump is documented in the release notes when it happens. |
| 43 | |
| 44 | ## Platforms |
| 45 | |
| 46 | - Linux / Android: inotify |
| 47 | - macOS: FSEvents or kqueue, see features |
| 48 | - Windows: ReadDirectoryChangesW |
| 49 | - iOS / FreeBSD / NetBSD / OpenBSD / DragonflyBSD: kqueue |
| 50 | - All platforms: polling |
| 51 | |
| 52 | ## License |
| 53 | |
| 54 | notify is licensed under the [CC Zero 1.0][cc0]. |
| 55 | notify-types is licensed under the [MIT] or [Apache-2.0][apache] license. |
| 56 | notify-debouncer-mini is licensed under the [MIT] or [Apache-2.0][apache] license. |
| 57 | notify-debouncer-full is licensed under the [MIT] or [Apache-2.0][apache] license. |
| 58 | file-id is licensed under the [MIT] or [Apache-2.0][apache] license. |
| 59 | |
| 60 | ## Origins |
| 61 | |
| 62 | Inspired by Go's [fsnotify] and Node.js's [Chokidar], born out of need for |
| 63 | [cargo watch], and general frustration at the non-existence of C/Rust |
| 64 | cross-platform notify libraries. |
| 65 | |
| 66 | Originally created by [Félix Saparelli] and awesome [contributors]. |
| 67 | |
| 68 | [Chokidar]: https://github.com/paulmillr/chokidar |
| 69 | [FileSystemEventSecurity]: https://developer.apple.com/library/mac/documentation/Darwin/Conceptual/FSEvents_ProgGuide/FileSystemEventSecurity/FileSystemEventSecurity.html |
| 70 | [debouncer-full-docs]: https://docs.rs/notify-debouncer-full/latest/notify_debouncer_full/ |
| 71 | [debouncer-mini-docs]: https://docs.rs/notify-debouncer-mini/latest/notify_debouncer_mini/ |
| 72 | [Félix Saparelli]: https://passcod.name |
| 73 | [alacritty]: https://github.com/jwilm/alacritty |
| 74 | [alert-after]: https://github.com/frewsxcv/alert-after |
| 75 | [build]: https://github.com/notify-rs/notify/actions |
| 76 | [cargo watch]: https://github.com/passcod/cargo-watch |
| 77 | [cc0]: ./notify/LICENSE-CC0 |
| 78 | [MIT]: ./file-id/LICENSE-MIT |
| 79 | [apache]: ./file-id/LICENSE-APACHE |
| 80 | [changelog]: ./CHANGELOG.md |
| 81 | [cobalt]: https://github.com/cobalt-org/cobalt.rs |
| 82 | [coc]: http://contributor-covenant.org/version/1/4/ |
| 83 | [contributors]: https://github.com/notify-rs/notify/graphs/contributors |
| 84 | [crate]: https://crates.io/crates/notify |
| 85 | [deno]: https://github.com/denoland/deno |
| 86 | [docket]: https://iwillspeak.github.io/docket/ |
| 87 | [notify-docs]: https://docs.rs/notify/latest/notify/ |
| 88 | [notify-types-docs]: https://docs.rs/notify-types/ |
| 89 | [file-id-docs]: https://docs.rs/file-id/latest/file_id/ |
| 90 | [fsnotify]: https://github.com/fsnotify/fsnotify |
| 91 | [handlebars-iron]: https://github.com/sunng87/handlebars-iron |
| 92 | [hotwatch]: https://github.com/francesca64/hotwatch |
| 93 | [mdBook]: https://github.com/rust-lang-nursery/mdBook |
| 94 | [notify-rust]: https://github.com/hoodie/notify-rust |
| 95 | [rust-analyzer]: https://github.com/rust-analyzer/rust-analyzer |
| 96 | [serde]: https://serde.rs/ |
| 97 | [watchexec]: https://github.com/mattgreen/watchexec |
| 98 | [wiki]: https://github.com/notify-rs/notify/wiki |
| 99 | [xi-editor]: https://xi-editor.io/ |
| 100 | [watchfiles]: https://watchfiles.helpmanual.io/ |
| 101 | [examples]: examples/ |