diff --git a/CHANGELOG.md b/CHANGELOG.md index 8970811..93dd356 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- `distant-local` now has two features: `macos-fsevent` and `macos-kqueue`. + These are used to indicate what kind of file watching to support (for MacOS). + The default is `macos-fsevent`. + ### Removed - `crossbeam-channel` dependency removed from notify by disabling its feature diff --git a/distant-local/Cargo.toml b/distant-local/Cargo.toml index ed25d35..1b427f1 100644 --- a/distant-local/Cargo.toml +++ b/distant-local/Cargo.toml @@ -10,13 +10,22 @@ repository = "https://github.com/chipsenkbeil/distant" readme = "README.md" license = "MIT OR Apache-2.0" +[features] +default = ["macos-fsevent"] + +# If specified, will use MacOS FSEvent for file watching +macos-fsevent = ["notify/macos_fsevent"] + +# If specified, will use MacOS kqueue for file watching +macos-kqueue = ["notify/macos_kqueue"] + [dependencies] async-trait = "0.1.68" distant-core = { version = "=0.20.0-alpha.7", path = "../distant-core" } grep = "0.2.12" ignore = "0.4.20" log = "0.4.18" -notify = { version = "6.0.0", default-features = false, features = ["macos_fsevent"] } +notify = { version = "6.0.0", default-features = false } num_cpus = "1.15.0" portable-pty = "0.8.1" rand = { version = "0.8.5", features = ["getrandom"] }