-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathCargo.toml
134 lines (117 loc) · 3.35 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
122
123
124
125
126
127
128
129
130
131
132
133
134
[package]
name = "diffsitter"
description = "An AST based difftool for meaningful diffs"
readme = "README.md"
version = "0.8.4"
authors = ["Afnan Enayet <[email protected]>"]
edition = "2021"
license = "MIT"
keywords = ["diff", "ast", "difftool"]
categories = ["command-line-utilities"]
build = "build.rs"
homepage = "https://github.com/afnanenayet/diffsitter"
repository = "https://github.com/afnanenayet/diffsitter"
include = [
"src/**/*",
"LICENSE",
"README.md",
"grammars/**/*.c",
"grammars/**/*.cc",
"grammars/**/*.cpp",
"grammars/**/*.h",
"grammars/**/*.hpp",
"build.rs",
"!**/*.png",
"!**/test/**/*",
"!**/*_test.*",
"!**/examples/**/*",
"!**/target/**/*",
"!assets/*",
]
default-run = "diffsitter"
[[bin]]
name = "diffsitter"
path = "src/bin/diffsitter.rs"
[[bin]]
name = "diffsitter_completions"
path = "src/bin/diffsitter_completions.rs"
[[bin]]
name = "diffsitter-utils"
path = "src/bin/diffsitter_utils.rs"
[lib]
name = "libdiffsitter"
path = "src/lib.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
tree-sitter = "0.24.6"
clap = { version = "4.5.23", features = [
"derive",
"env",
"unicode",
"wrap_help",
] }
clap_complete = "4.5.40"
anyhow = { version = "1.0.95", features = ["backtrace"] }
phf = { version = "0.11.2", features = ["macros"] }
console = "0.15.10"
strum = { version = "0.26.3", features = ["derive"] }
strum_macros = "0.26.4"
serde = { version = "1.0.217", features = ["derive"] }
serde_json = "1.0.134"
json5 = "0.4.1"
pretty_env_logger = "0.5.0"
log = { version = "0.4.22", features = ["std"] }
thiserror = "2.0.9"
logging_timer = "1.1.1"
jemallocator = { version = "0.5.4", optional = true }
libloading = "0.8.6"
unicode-segmentation = "1.12.0"
human-panic = "2.0.2"
shadow-rs = { version = "0.37.0", optional = true }
enum_dispatch = "0.3.13"
lazy_static = { version = "1.5.0", optional = true }
[dev-dependencies]
test-case = "3.3.1"
pretty_assertions = "1.4.1"
mockall = "0.13.1"
rstest = "0.24"
# We need the backtrace feature to enable snapshot name generation in
# single-threaded tests (tests using cargo cross run single-threaded due to
# limitations with QEMU).
insta = { version = "1.41.1" }
[target.'cfg(target_os = "windows")'.dependencies]
# We use directories next to get the windows config path
directories-next = "2.0.0"
[target.'cfg(not(target_os = "windows"))'.dependencies]
# We use XDG for everything else
xdg = "2.5.2"
[build-dependencies]
cc = { version = "1.2.6", features = ["parallel"] }
phf = { version = "0.11.2", features = ["macros"] }
anyhow = "1.0.95"
cargo-emit = "0.2.1"
rayon = "1.10.0"
thiserror = "2.0.9"
shadow-rs = { version = "0.37.0", optional = true }
[features]
default = ["static-grammar-libs"]
# Enable full build info as a subcommand. This takes longer to build so it's
# generally just enabled for releases.
better-build-info = ["shadow-rs"]
# Enable dynamically loading libraries instead of compiling the libraries as
# submodules.
dynamic-grammar-libs = []
# Compile the static tree-sitter grammars from the submodules in this repo.
static-grammar-libs = ["lazy_static"]
[profile.profiling]
inherits = "release"
# Debug symbols are required for profiling
strip = false
# Want to keep debug info
debug = true
[profile.production]
inherits = "release"
lto = true
codegen-units = 1
# Makes the binary a little smaller
strip = true