Skip to content

Commit b922492

Browse files
committed
Add storage and visualization features as required features
1 parent eb24d76 commit b922492

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ edition = "2018"
1313
[[bin]]
1414
name = "tree-sitter-stack-graphs-ruby"
1515
path = "rust/bin.rs"
16-
required-features = ["cli"]
16+
required-features = ["cli", "storage", "visualization"]
1717

1818
[lib]
1919
path = "rust/lib.rs"
@@ -26,10 +26,15 @@ harness = false
2626

2727
[features]
2828
cli = ["anyhow", "clap", "tree-sitter-stack-graphs/cli"]
29+
storage = ["rusqlite", "serde"]
30+
visualization = ["serde", "serde_json"]
2931

3032
[dependencies]
3133
anyhow = { version = "1.0", optional = true }
3234
clap = { version = "4", optional = true }
35+
rusqlite = { version = "0.28", optional=true, features = ["bundled", "functions"] }
36+
serde = { version="1.0", optional=true, features = ["derive"] }
37+
serde_json = { version="1.0", optional=true }
3338
tree-sitter-stack-graphs = { version = "0.6.0", path = "../../tree-sitter-stack-graphs" }
3439
tree-sitter-ruby = "0.20.0"
3540

0 commit comments

Comments
 (0)