Support alternative file watching implementation for MacOS

pull/195/head
Chip Senkbeil 11 months ago
parent 009996b554
commit 9da7679081
No known key found for this signature in database
GPG Key ID: 35EF1F8EC72A4131

@ -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

@ -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"] }

Loading…
Cancel
Save