home ~ projects ~ socials

Use macos_fsevent Instead Of macos_kqueue With notify In Rust On A Mac

NOTE: I don't see this in version 8.0.0 of notify so it may not be an issue any more.

Based on the WatcherKind page it seems like fs_events is now the default.

TODO

    Write up errors with os error 24 too many file open when using macos_kqueue

    Note that the demo page when using tokio shows macos_kqueue but that didn't work for me

#notify = { version = "6.1.1", default-features = false, features = ["macos_kqueue"] }
notify = { version = "6.1.1", default-features = false, features = ["macos_fsevent"] }
-- end of line --