-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
121 lines (102 loc) · 3.98 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
[workspace]
members = [
"./xtask",
"./rsexpr",
"./lua-pattern",
"./tree-sitter-wasm-build-tool",
"./syntastica-core",
"./syntastica-query-preprocessor",
"./syntastica-queries",
"./syntastica-parsers",
"./syntastica-parsers-git",
"./syntastica-parsers-gitdep",
"./syntastica-parsers-dynamic",
"./syntastica-macros",
"./syntastica-themes",
"./syntastica-highlight",
"./syntastica-js",
]
package.version = "0.4.1"
package.authors = ["RubixDev <[email protected]>"]
package.documentation = "https://rubixdev.github.io/syntastica/"
package.edition = "2021"
package.license = "GPL-3.0-only"
package.repository = "https://github.com/RubixDev/syntastica"
[workspace.metadata.release]
enable-all-features = true
sign-commit = true
sign-tag = true
shared-version = true
[workspace.dependencies]
syntastica = { version = "0.4.1", path = "./" }
syntastica-core = { version = "0.4.1", path = "./syntastica-core", default-features = false }
syntastica-highlight = { version = "0.4.1", path = "./syntastica-highlight", default-features = false }
syntastica-macros = { version = "0.4.1", path = "./syntastica-macros" }
syntastica-parsers = { version = "0.4.1", path = "./syntastica-parsers" }
syntastica-parsers-dynamic = { version = "0.4.1", path = "./syntastica-parsers-dynamic" }
syntastica-parsers-git = { version = "0.4.1", path = "./syntastica-parsers-git" }
syntastica-parsers-gitdep = { version = "0.4.1", path = "./syntastica-parsers-gitdep" }
syntastica-query-preprocessor = { version = "0.4.1", path = "./syntastica-query-preprocessor" }
syntastica-queries = { version = "0.4.1", path = "./syntastica-queries" }
syntastica-themes = { version = "0.4.1", path = "./syntastica-themes" }
tree-sitter = "0.20.10"
tree-sitter-c2rust = "0.20.10"
cc = "1.0.83"
document-features = "0.2.7"
once_cell = "1.18.0"
rustc_version = "0.4.0"
serde = "1.0.188"
strum = "0.25.0"
tft = { version = "0.1.1", default-features = false }
thiserror = "1.0.48"
toml = "0.8.0"
# optimize wasm for small code size
[profile.release-wasm]
inherits = "release"
opt-level = "s"
strip = true
[package]
name = "syntastica"
version.workspace = true
authors.workspace = true
documentation = "https://rubixdev.github.io/syntastica/syntastica/"
edition.workspace = true
keywords = ["tree-sitter", "syntect", "highlight", "parsing", "syntax"]
license.workspace = true
repository.workspace = true
description = "Modern and easy syntax highlighting using tree-sitter"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
#! ## Features
default = ["runtime-c"]
## Use the standard tree-sitter C runtime. See [WebAssembly support](#webassembly-support) for more information.
runtime-c = ["syntastica-core/runtime-c", "syntastica-highlight/runtime-c"]
## Use the pure Rust tree-sitter runtime. See [WebAssembly support](#webassembly-support) for more information.
runtime-c2rust = ["syntastica-core/runtime-c2rust", "syntastica-highlight/runtime-c2rust"]
## Provide implementations of serde's `Serialize` and `Deserialize` traits for [`Theme`](theme::Theme)
## and [`Style`](style::Style)
serde = ["syntastica-core/serde"]
## Enable this when building the docs
docs = ["dep:document-features", "dep:rustc_version"]
[dependencies]
syntastica-core.workspace = true
syntastica-highlight.workspace = true
aho-corasick = "1.1.0"
document-features = { workspace = true, optional = true }
thiserror.workspace = true
[dev-dependencies]
syntastica-macros.workspace = true
syntastica-parsers = { workspace = true, features = ["all"] }
syntastica-parsers-git = { workspace = true, features = ["all"] }
syntastica-queries.workspace = true
syntastica-query-preprocessor.workspace = true
syntastica-themes.workspace = true
tree-sitter.workspace = true
once_cell.workspace = true
tft = { workspace = true, features = ["detect"] }
toml.workspace = true
tree-sitter-csv = "1.1.1"
[build-dependencies]
rustc_version = { workspace = true, optional = true }
[package.metadata.docs.rs]
all-features = true