Cargo.toml

 1[package]
 2name = "grammars"
 3version = "0.1.0"
 4edition = "2024"
 5publish = false
 6
 7[lints]
 8workspace = true
 9
10[lib]
11path = "src/grammars.rs"
12
13[dependencies]
14language_core.workspace = true
15rust-embed.workspace = true
16anyhow.workspace = true
17toml.workspace = true
18util.workspace = true
19
20tree-sitter = { workspace = true, optional = true }
21tree-sitter-bash = { workspace = true, optional = true }
22tree-sitter-c = { workspace = true, optional = true }
23tree-sitter-cpp = { workspace = true, optional = true }
24tree-sitter-css = { workspace = true, optional = true }
25tree-sitter-diff = { workspace = true, optional = true }
26tree-sitter-gitcommit = { workspace = true, optional = true }
27tree-sitter-go = { workspace = true, optional = true }
28tree-sitter-go-mod = { workspace = true, optional = true }
29tree-sitter-gowork = { workspace = true, optional = true }
30tree-sitter-jsdoc = { workspace = true, optional = true }
31tree-sitter-json = { workspace = true, optional = true }
32tree-sitter-md = { workspace = true, optional = true }
33tree-sitter-python = { workspace = true, optional = true }
34tree-sitter-regex = { workspace = true, optional = true }
35tree-sitter-rust = { workspace = true, optional = true }
36tree-sitter-typescript = { workspace = true, optional = true }
37tree-sitter-yaml = { workspace = true, optional = true }
38
39[features]
40load-grammars = [
41    "tree-sitter",
42    "tree-sitter-bash",
43    "tree-sitter-c",
44    "tree-sitter-cpp",
45    "tree-sitter-css",
46    "tree-sitter-diff",
47    "tree-sitter-gitcommit",
48    "tree-sitter-go",
49    "tree-sitter-go-mod",
50    "tree-sitter-gowork",
51    "tree-sitter-jsdoc",
52    "tree-sitter-json",
53    "tree-sitter-md",
54    "tree-sitter-python",
55    "tree-sitter-regex",
56    "tree-sitter-rust",
57    "tree-sitter-typescript",
58    "tree-sitter-yaml",
59]
60test-support = ["load-grammars"]