mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
1313402a6b
This adds cross-platform file-watching via the [Notify](https://github.com/notify-rs/notify) crate. The previous fs-events implementation is now only used on MacOS, and on other platforms Notify is used. The watching function interface is the same. Related to #5391 #5395 #5394. Release Notes: - N/A
48 lines
990 B
TOML
48 lines
990 B
TOML
[package]
|
|
name = "fs"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
publish = false
|
|
license = "GPL-3.0-or-later"
|
|
|
|
|
|
[lib]
|
|
path = "src/fs.rs"
|
|
|
|
[dependencies]
|
|
collections = { path = "../collections" }
|
|
rope = { path = "../rope" }
|
|
text = { path = "../text" }
|
|
util = { path = "../util" }
|
|
sum_tree = { path = "../sum_tree" }
|
|
|
|
anyhow.workspace = true
|
|
async-trait.workspace = true
|
|
futures.workspace = true
|
|
tempfile = "3"
|
|
lazy_static.workspace = true
|
|
parking_lot.workspace = true
|
|
smol.workspace = true
|
|
regex.workspace = true
|
|
git2.workspace = true
|
|
serde.workspace = true
|
|
serde_derive.workspace = true
|
|
serde_json.workspace = true
|
|
log.workspace = true
|
|
libc = "0.2"
|
|
time.workspace = true
|
|
|
|
gpui = { path = "../gpui", optional = true}
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
fsevent = { path = "../fsevent" }
|
|
|
|
[target.'cfg(not(target_os = "macos"))'.dependencies]
|
|
notify = "6.1.1"
|
|
|
|
[dev-dependencies]
|
|
gpui = { path = "../gpui", features = ["test-support"] }
|
|
|
|
[features]
|
|
test-support = ["gpui/test-support"]
|