Skip to content

Commit 77b7876

Browse files
authored
Merge pull request #2291 from klensy/watch-me
pathdiff only used with watch feature, so make it optional
2 parents 0a96d0e + 745f7c7 commit 77b7876

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ log = "0.4.17"
2828
memchr = "2.5.0"
2929
opener = "0.6.1"
3030
pulldown-cmark = { version = "0.9.3", default-features = false }
31-
pathdiff = "0.2.1"
3231
regex = "1.8.1"
3332
serde = { version = "1.0.163", features = ["derive"] }
3433
serde_json = "1.0.96"
@@ -41,6 +40,7 @@ topological-sort = "0.2.2"
4140
notify = { version = "6.1.1", optional = true }
4241
notify-debouncer-mini = { version = "0.4.1", optional = true }
4342
ignore = { version = "0.4.20", optional = true }
43+
pathdiff = { version = "0.2.1", optional = true }
4444

4545
# Serve feature
4646
futures-util = { version = "0.3.28", optional = true }
@@ -61,7 +61,7 @@ walkdir = "2.3.3"
6161

6262
[features]
6363
default = ["watch", "serve", "search"]
64-
watch = ["dep:notify", "dep:notify-debouncer-mini", "dep:ignore"]
64+
watch = ["dep:notify", "dep:notify-debouncer-mini", "dep:ignore", "dep:pathdiff"]
6565
serve = ["dep:futures-util", "dep:tokio", "dep:warp"]
6666
search = ["dep:elasticlunr-rs", "dep:ammonia"]
6767

0 commit comments

Comments
 (0)