Skip to content

Commit 03238b8

Browse files
authored
Merge pull request #245 from silverpill/main
Make shell-words and xdg dependencies optional
2 parents 939a9d3 + 9274b1a commit 03238b8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Cargo.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ lto = true
1818

1919
[[bin]]
2020
name = "comrak"
21-
required-features = ["clap", "syntect"]
21+
required-features = ["cli", "syntect"]
2222
doc = false
2323

2424
[dependencies]
@@ -31,7 +31,7 @@ clap = { version = "2.34.0", optional = true, features = ["wrap_help"] }
3131
memchr = "2"
3232
pest = "2"
3333
pest_derive = "2"
34-
shell-words = "1.0"
34+
shell-words = { version = "1.0", optional = true }
3535

3636
[dev-dependencies]
3737
timebomb = "0.1.2"
@@ -40,10 +40,11 @@ timebomb = "0.1.2"
4040
propfuzz = "0.0.1"
4141

4242
[features]
43-
default = ["clap", "syntect"]
43+
default = ["cli", "syntect"]
44+
cli = ["clap", "shell-words", "xdg"]
4445

4546
[target.'cfg(all(not(windows), not(target_arch="wasm32")))'.dependencies]
46-
xdg = "^2.1"
47+
xdg = { version = "^2.1", optional = true }
4748

4849
[target.'cfg(target_arch="wasm32")'.dependencies]
4950
syntect = { version = "5.0", optional = true, default-features = false, features = ["default-fancy"] }

0 commit comments

Comments
 (0)