-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCargo.toml
More file actions
223 lines (180 loc) · 4.89 KB
/
Cargo.toml
File metadata and controls
223 lines (180 loc) · 4.89 KB
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
[package]
name = "debtmap"
version = "0.16.3"
edition = "2021"
rust-version = "1.89"
authors = ["Glen Baker <iepathos@gmail.com>"]
description = "Code complexity and technical debt analyzer"
license = "MIT"
repository = "https://github.com/iepathos/debtmap"
readme = "README.md"
keywords = ["code-analysis", "technical-debt", "complexity", "static-analysis"]
categories = ["development-tools", "command-line-utilities"]
[package.metadata.docs.rs]
# Build with all features for comprehensive documentation
all-features = true
# Use nightly for better doc features
rustdoc-args = ["--cfg", "docsrs"]
# Show multiple platform targets
targets = ["x86_64-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-pc-windows-msvc"]
[package.metadata.llvm-cov]
# Exclude test files and directories from coverage
ignore-filename-regex = [
"tests/.*",
".*_test\\.rs",
".*_tests\\.rs",
".*/tests/.*",
".*/test/.*",
"benches/.*",
".*/bench/.*",
".*/benchmark/.*"
]
[lib]
name = "debtmap"
path = "src/lib.rs"
[[bin]]
name = "debtmap"
path = "src/main.rs"
[dependencies]
# AST Parsing
syn = { version = "2.0", features = ["full", "visit", "extra-traits"] }
proc-macro2 = { version = "1.0", features = ["span-locations"] }
# Tree-sitter for JS/TS/Python parsing
tree-sitter = "0.23"
tree-sitter-javascript = "0.23"
tree-sitter-typescript = "0.23"
tree-sitter-python = "0.23"
# CLI
clap = { version = "4.6", features = ["derive", "env"] }
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
toml = "0.9"
# Functional data structures
im = { version = "15.1", features = ["serde"] }
# Coverage parsing
lcov = "0.8"
rustc-demangle = "0.1"
# Parallel processing
rayon = "1.10"
dashmap = "6.1"
crossbeam = "0.8"
parking_lot = "0.12"
# Hashing for duplication detection
sha2 = "0.10"
xxhash-rust = { version = "0.8", features = ["xxh64"] }
# Binary serialization for caching
postcard = { version = "1.1", default-features = false, features = ["alloc"] }
# Additional dependencies
quote = "1.0"
glob = "0.3"
regex = "1.10"
which = "8.0"
# Error handling
anyhow = "1.0.102" # minimum for From<&str> impl
thiserror = "2.0"
# Effect composition and validation
stillwater = { version = "1.0", features = ["async", "serde"] }
premortem = "0.6.1"
tokio = { version = "1.51", features = ["rt", "rt-multi-thread"] }
# File system
walkdir = "2.5"
ignore = "0.4.25"
# Output formatting
colored = "3.0"
comfy-table = "7.1"
# Progress feedback
indicatif = { version = "0.18", features = ["rayon"] }
# TUI framework
ratatui = "0.30"
crossterm = "0.29"
# instability is a transitive dep of ratatui; minimum 0.3.7 for trait item support
instability = "0.3.7"
# time is a transitive dep of ratatui-widgets; minimum 0.3.37 for Month::length
time = "0.3.37"
# libc is a transitive dep; minimum 0.2 for modern Rust compatibility
libc = "0.2"
unicode-width = "0.2"
num_cpus = "1.16"
arboard = "3.5" # Clipboard access (cross-platform); 3.5+ uses objc2 without libc 0.1
fuzzy-matcher = "0.3" # Fuzzy search for results explorer
# Date/time
chrono = { version = "0.4.44", features = ["serde"] } # minimum for stable error types
# Path handling
pathdiff = "0.2"
once_cell = "1.21.4"
dirs = "6.0"
# Logging and tracing
log = "0.4"
env_logger = "0.11"
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
# Git operations
git2 = { version = "0.20", features = ["vendored-openssl"] }
# openssl-sys/openssl-src are transitive deps; minimum 0.9.93 uses OpenSSL 3.x with Apple Silicon support
openssl-sys = "0.9.113"
openssl-src = "300"
# Graph algorithms for taint analysis
petgraph = "0.8.1" # minimum for stable node_indices API
lazy_static = "1.5.0"
html-escape = "0.2.13"
tui-scrollview = "0.6.3"
[dev-dependencies]
# Testing
proptest = "1.11"
pretty_assertions = "1.4"
tempfile = "3.27"
criterion = "0.8"
trybuild = "1.0"
assert_cmd = "2.2"
# Test data
indoc = "2.0"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true
[profile.dev]
opt-level = 0
debug = true
split-debuginfo = "unpacked" # Faster linking on macOS
incremental = true # Enable incremental compilation
[profile.dev.package."*"]
opt-level = 3 # Optimize dependencies in dev mode
[[bench]]
name = "call_graph_bench"
harness = false
[[bench]]
name = "lcov_parallel_bench"
harness = false
[[bench]]
name = "parallel_performance"
harness = false
[[bench]]
name = "unified_output_format_bench"
harness = false
[[bench]]
name = "constructor_detection_bench"
harness = false
[[bench]]
name = "validate_parallel_bench"
harness = false
[[bench]]
name = "ast_parsing_optimization_bench"
harness = false
[[bench]]
name = "coverage_performance"
harness = false
[[bench]]
name = "coverage_scoring"
harness = false
[[bench]]
name = "score_based_sorting_bench"
harness = false
[[bench]]
name = "batch_analysis"
harness = false
[[bench]]
name = "tier_classification_bench"
harness = false