Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit e34b50b

Browse files
author
Hendrik van Antwerpen
committed
Split up cli and test features
1 parent 399ad8c commit e34b50b

File tree

1 file changed

+3
-2
lines changed
  • languages/tree-sitter-stack-graphs-typescript

1 file changed

+3
-2
lines changed

languages/tree-sitter-stack-graphs-typescript/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ test = false
2121
name = "test"
2222
path = "rust/test.rs"
2323
harness = false
24-
required-features = ["tree-sitter-stack-graphs/cli"] # this should be *forced* for tests, but cargo does not support that
24+
required-features = ["test"] # should be a forced feature, but Cargo does not support those
2525

2626
[features]
27-
default = ["cli"] # as long as the required features for test cannot be forced, we enable cli by default, to make sure tests are always run
27+
default = ["test"] # test is enabled by default because we cannot specify it as a forced featured for [[test]] above
2828
cli = ["anyhow", "clap", "tree-sitter-stack-graphs/cli"]
29+
test = ["anyhow", "tree-sitter-stack-graphs/cli"]
2930

3031
[dependencies]
3132
anyhow = { version = "1.0", optional = true }

0 commit comments

Comments
 (0)