dart-decimate 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/Cargo.lock +572 -0
  2. package/Cargo.toml +41 -0
  3. package/LICENSE +21 -0
  4. package/README.md +617 -0
  5. package/assets/dart-decimate-banner.png +0 -0
  6. package/npm/bin/dart-decimate-mcp.js +48 -0
  7. package/npm/bin/dart-decimate.js +48 -0
  8. package/npm/scripts/postinstall.js +46 -0
  9. package/npm/scripts/test-npx-local.js +54 -0
  10. package/npm/scripts/test-npx-mcp-local.js +56 -0
  11. package/package.json +45 -0
  12. package/src/baseline.rs +643 -0
  13. package/src/bin/dart-decimate-mcp.rs +11 -0
  14. package/src/boundaries/tests.rs +60 -0
  15. package/src/boundaries.rs +317 -0
  16. package/src/changed_scope.rs +117 -0
  17. package/src/ci_template.rs +399 -0
  18. package/src/cli/analyze.rs +462 -0
  19. package/src/cli/analyzer_options.rs +82 -0
  20. package/src/cli/audit_run.rs +327 -0
  21. package/src/cli/boundary_args.rs +44 -0
  22. package/src/cli/ci_template_run.rs +196 -0
  23. package/src/cli/command_name.rs +20 -0
  24. package/src/cli/common_args.rs +167 -0
  25. package/src/cli/config_run.rs +78 -0
  26. package/src/cli/coverage_run.rs +393 -0
  27. package/src/cli/decision_surface_run.rs +99 -0
  28. package/src/cli/default_command.rs +69 -0
  29. package/src/cli/dupes_args.rs +150 -0
  30. package/src/cli/entry_points.rs +121 -0
  31. package/src/cli/error.rs +149 -0
  32. package/src/cli/error_output.rs +68 -0
  33. package/src/cli/explain_run.rs +72 -0
  34. package/src/cli/fix_run.rs +162 -0
  35. package/src/cli/flags_args.rs +23 -0
  36. package/src/cli/health_args.rs +200 -0
  37. package/src/cli/hooks_run.rs +191 -0
  38. package/src/cli/impact_run.rs +95 -0
  39. package/src/cli/init_run.rs +49 -0
  40. package/src/cli/inspect_args.rs +20 -0
  41. package/src/cli/inspect_run.rs +66 -0
  42. package/src/cli/issue_filter_args.rs +240 -0
  43. package/src/cli/list_run.rs +311 -0
  44. package/src/cli/mode_args.rs +72 -0
  45. package/src/cli/output_format.rs +62 -0
  46. package/src/cli/regression_args.rs +156 -0
  47. package/src/cli/request_args.rs +175 -0
  48. package/src/cli/schema_commands.rs +72 -0
  49. package/src/cli/scope_args.rs +174 -0
  50. package/src/cli/security_args.rs +175 -0
  51. package/src/cli/security_gate_run.rs +66 -0
  52. package/src/cli/security_summary_run.rs +43 -0
  53. package/src/cli/summary_args.rs +12 -0
  54. package/src/cli/tests.rs +516 -0
  55. package/src/cli/trace_args.rs +67 -0
  56. package/src/cli/trace_run.rs +131 -0
  57. package/src/cli/trace_tests.rs +235 -0
  58. package/src/cli/unsupported_run.rs +116 -0
  59. package/src/cli/watch_run.rs +153 -0
  60. package/src/cli.rs +603 -0
  61. package/src/config/boundary_config.rs +235 -0
  62. package/src/config/cache.rs +25 -0
  63. package/src/config/dependencies.rs +114 -0
  64. package/src/config/health.rs +237 -0
  65. package/src/config/jsonc.rs +66 -0
  66. package/src/config/policy.rs +91 -0
  67. package/src/config/rule_aliases.rs +487 -0
  68. package/src/config/rules.rs +339 -0
  69. package/src/config.rs +635 -0
  70. package/src/coverage.rs +469 -0
  71. package/src/dart_parser.rs +673 -0
  72. package/src/decision_surface.rs +405 -0
  73. package/src/dependencies/analyze.rs +218 -0
  74. package/src/dependencies/codegen.rs +118 -0
  75. package/src/dependencies/discovery.rs +60 -0
  76. package/src/dependencies/overrides.rs +76 -0
  77. package/src/dependencies/private_src_imports.rs +32 -0
  78. package/src/dependencies/pubspec_document.rs +86 -0
  79. package/src/dependencies/pubspec_entry.rs +96 -0
  80. package/src/dependencies/tests.rs +544 -0
  81. package/src/dependencies/usage.rs +33 -0
  82. package/src/dependencies.rs +553 -0
  83. package/src/dependency_scripts.rs +91 -0
  84. package/src/dupes/lex.rs +236 -0
  85. package/src/dupes/tests.rs +119 -0
  86. package/src/dupes.rs +625 -0
  87. package/src/explain.rs +692 -0
  88. package/src/extract/directives.rs +252 -0
  89. package/src/extract/error_tests.rs +25 -0
  90. package/src/extract/members.rs +210 -0
  91. package/src/extract/primary_constructors.rs +421 -0
  92. package/src/extract/references.rs +151 -0
  93. package/src/extract/routes.rs +691 -0
  94. package/src/extract/signatures.rs +266 -0
  95. package/src/extract/string_tests.rs +18 -0
  96. package/src/extract/strings.rs +107 -0
  97. package/src/extract/tests.rs +697 -0
  98. package/src/extract.rs +680 -0
  99. package/src/feature_flags/tests.rs +76 -0
  100. package/src/feature_flags.rs +453 -0
  101. package/src/finding_identity.rs +60 -0
  102. package/src/fix.rs +551 -0
  103. package/src/generated.rs +53 -0
  104. package/src/graph/augment_tests.rs +212 -0
  105. package/src/graph/conditionals.rs +74 -0
  106. package/src/graph/package_config_tests.rs +100 -0
  107. package/src/graph/parts.rs +248 -0
  108. package/src/graph/pubspec_tests.rs +119 -0
  109. package/src/graph/tests.rs +837 -0
  110. package/src/graph/uri_tests.rs +102 -0
  111. package/src/graph.rs +644 -0
  112. package/src/health/coverage.rs +309 -0
  113. package/src/health/ownership.rs +175 -0
  114. package/src/health/runtime_coverage.rs +616 -0
  115. package/src/health/runtime_intelligence.rs +511 -0
  116. package/src/health/scores.rs +296 -0
  117. package/src/health/tests.rs +240 -0
  118. package/src/health/threshold_types.rs +163 -0
  119. package/src/health/thresholds.rs +229 -0
  120. package/src/health/types.rs +636 -0
  121. package/src/health.rs +597 -0
  122. package/src/hooks/agent_settings.rs +175 -0
  123. package/src/hooks/templates.rs +51 -0
  124. package/src/hooks.rs +569 -0
  125. package/src/impact.rs +287 -0
  126. package/src/init.rs +237 -0
  127. package/src/inspect.rs +142 -0
  128. package/src/intelligence/tests.rs +232 -0
  129. package/src/intelligence.rs +305 -0
  130. package/src/lib.rs +198 -0
  131. package/src/main.rs +5 -0
  132. package/src/manifest/mcp.rs +565 -0
  133. package/src/manifest.rs +552 -0
  134. package/src/mcp/cli_args/value_args.rs +175 -0
  135. package/src/mcp/cli_args.rs +658 -0
  136. package/src/mcp/cli_args_tests.rs +522 -0
  137. package/src/mcp/code_execute.rs +671 -0
  138. package/src/mcp/tools.rs +660 -0
  139. package/src/mcp.rs +325 -0
  140. package/src/output/audit_risk.rs +135 -0
  141. package/src/output/dependency_findings.rs +327 -0
  142. package/src/output/duplication_findings.rs +114 -0
  143. package/src/output/feature_flag_findings.rs +122 -0
  144. package/src/output/format.rs +31 -0
  145. package/src/output/graph_findings.rs +461 -0
  146. package/src/output/health_findings.rs +612 -0
  147. package/src/output/human.rs +27 -0
  148. package/src/output/next_steps.rs +92 -0
  149. package/src/output/route_findings.rs +76 -0
  150. package/src/output/runtime_coverage.rs +515 -0
  151. package/src/output/scope.rs +183 -0
  152. package/src/output/security_findings.rs +390 -0
  153. package/src/output/security_sarif.rs +150 -0
  154. package/src/output/suppressions.rs +323 -0
  155. package/src/output/symbol_findings.rs +257 -0
  156. package/src/output/tests.rs +114 -0
  157. package/src/output/types.rs +604 -0
  158. package/src/output/widget_findings.rs +213 -0
  159. package/src/output.rs +682 -0
  160. package/src/package_map.rs +495 -0
  161. package/src/policy/packs.rs +232 -0
  162. package/src/policy/tests.rs +134 -0
  163. package/src/policy.rs +640 -0
  164. package/src/project_list.rs +376 -0
  165. package/src/report_schema/inventory.rs +418 -0
  166. package/src/report_schema.rs +488 -0
  167. package/src/routes.rs +354 -0
  168. package/src/scan/tests.rs +250 -0
  169. package/src/scan.rs +275 -0
  170. package/src/security/detect.rs +639 -0
  171. package/src/security/tests.rs +178 -0
  172. package/src/security.rs +373 -0
  173. package/src/security_gate.rs +555 -0
  174. package/src/symbols/path_filters.rs +27 -0
  175. package/src/symbols/private_type_leaks.rs +125 -0
  176. package/src/symbols/riverpod.rs +113 -0
  177. package/src/symbols/tests.rs +692 -0
  178. package/src/symbols.rs +693 -0
  179. package/src/trace/tests.rs +225 -0
  180. package/src/trace.rs +690 -0
  181. package/src/unsupported.rs +47 -0
  182. package/src/widgets/lifecycle.rs +484 -0
  183. package/src/widgets/params.rs +236 -0
  184. package/src/widgets/tests.rs +430 -0
  185. package/src/widgets/top_level.rs +110 -0
  186. package/src/widgets/unrendered.rs +374 -0
  187. package/src/widgets.rs +590 -0
  188. package/src/workspace_scope.rs +358 -0
package/Cargo.lock ADDED
@@ -0,0 +1,572 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "aho-corasick"
7
+ version = "1.1.4"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
10
+ dependencies = [
11
+ "memchr",
12
+ ]
13
+
14
+ [[package]]
15
+ name = "anstyle"
16
+ version = "1.0.14"
17
+ source = "registry+https://github.com/rust-lang/crates.io-index"
18
+ checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
19
+
20
+ [[package]]
21
+ name = "bitflags"
22
+ version = "2.13.0"
23
+ source = "registry+https://github.com/rust-lang/crates.io-index"
24
+ checksum = "b4388bee8683e3d04af747c73422af53102d2bd24d9eadb6cbc100baef4b43f8"
25
+
26
+ [[package]]
27
+ name = "cc"
28
+ version = "1.2.65"
29
+ source = "registry+https://github.com/rust-lang/crates.io-index"
30
+ checksum = "e228eec9be7c17ccb640b59b36a5cd805ea2a564a4c5e162c2f659fea30d3b96"
31
+ dependencies = [
32
+ "find-msvc-tools",
33
+ "shlex",
34
+ ]
35
+
36
+ [[package]]
37
+ name = "cfg-if"
38
+ version = "1.0.4"
39
+ source = "registry+https://github.com/rust-lang/crates.io-index"
40
+ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
41
+
42
+ [[package]]
43
+ name = "clap"
44
+ version = "4.6.1"
45
+ source = "registry+https://github.com/rust-lang/crates.io-index"
46
+ checksum = "1ddb117e43bbf7dacf0a4190fef4d345b9bad68dfc649cb349e7d17d28428e51"
47
+ dependencies = [
48
+ "clap_builder",
49
+ ]
50
+
51
+ [[package]]
52
+ name = "clap_builder"
53
+ version = "4.6.0"
54
+ source = "registry+https://github.com/rust-lang/crates.io-index"
55
+ checksum = "714a53001bf66416adb0e2ef5ac857140e7dc3a0c48fb28b2f10762fc4b5069f"
56
+ dependencies = [
57
+ "anstyle",
58
+ "clap_lex",
59
+ "strsim",
60
+ ]
61
+
62
+ [[package]]
63
+ name = "clap_lex"
64
+ version = "1.1.0"
65
+ source = "registry+https://github.com/rust-lang/crates.io-index"
66
+ checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9"
67
+
68
+ [[package]]
69
+ name = "crossbeam-deque"
70
+ version = "0.8.6"
71
+ source = "registry+https://github.com/rust-lang/crates.io-index"
72
+ checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51"
73
+ dependencies = [
74
+ "crossbeam-epoch",
75
+ "crossbeam-utils",
76
+ ]
77
+
78
+ [[package]]
79
+ name = "crossbeam-epoch"
80
+ version = "0.9.18"
81
+ source = "registry+https://github.com/rust-lang/crates.io-index"
82
+ checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"
83
+ dependencies = [
84
+ "crossbeam-utils",
85
+ ]
86
+
87
+ [[package]]
88
+ name = "crossbeam-utils"
89
+ version = "0.8.21"
90
+ source = "registry+https://github.com/rust-lang/crates.io-index"
91
+ checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
92
+
93
+ [[package]]
94
+ name = "dart-decimate"
95
+ version = "0.0.1"
96
+ dependencies = [
97
+ "clap",
98
+ "glob",
99
+ "petgraph",
100
+ "rayon",
101
+ "serde",
102
+ "serde_json",
103
+ "serde_yaml_ng",
104
+ "tempfile",
105
+ "thiserror",
106
+ "toml",
107
+ "tree-sitter",
108
+ "tree-sitter-dart",
109
+ ]
110
+
111
+ [[package]]
112
+ name = "either"
113
+ version = "1.16.0"
114
+ source = "registry+https://github.com/rust-lang/crates.io-index"
115
+ checksum = "91622ff5e7162018101f2fea40d6ebf4a78bbe5a49736a2020649edf9693679e"
116
+
117
+ [[package]]
118
+ name = "equivalent"
119
+ version = "1.0.2"
120
+ source = "registry+https://github.com/rust-lang/crates.io-index"
121
+ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
122
+
123
+ [[package]]
124
+ name = "errno"
125
+ version = "0.3.14"
126
+ source = "registry+https://github.com/rust-lang/crates.io-index"
127
+ checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
128
+ dependencies = [
129
+ "libc",
130
+ "windows-sys",
131
+ ]
132
+
133
+ [[package]]
134
+ name = "fastrand"
135
+ version = "2.4.1"
136
+ source = "registry+https://github.com/rust-lang/crates.io-index"
137
+ checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6"
138
+
139
+ [[package]]
140
+ name = "find-msvc-tools"
141
+ version = "0.1.9"
142
+ source = "registry+https://github.com/rust-lang/crates.io-index"
143
+ checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
144
+
145
+ [[package]]
146
+ name = "fixedbitset"
147
+ version = "0.5.7"
148
+ source = "registry+https://github.com/rust-lang/crates.io-index"
149
+ checksum = "1d674e81391d1e1ab681a28d99df07927c6d4aa5b027d7da16ba32d1d21ecd99"
150
+
151
+ [[package]]
152
+ name = "foldhash"
153
+ version = "0.1.5"
154
+ source = "registry+https://github.com/rust-lang/crates.io-index"
155
+ checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
156
+
157
+ [[package]]
158
+ name = "getrandom"
159
+ version = "0.4.3"
160
+ source = "registry+https://github.com/rust-lang/crates.io-index"
161
+ checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
162
+ dependencies = [
163
+ "cfg-if",
164
+ "libc",
165
+ "r-efi",
166
+ ]
167
+
168
+ [[package]]
169
+ name = "glob"
170
+ version = "0.3.3"
171
+ source = "registry+https://github.com/rust-lang/crates.io-index"
172
+ checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
173
+
174
+ [[package]]
175
+ name = "hashbrown"
176
+ version = "0.15.5"
177
+ source = "registry+https://github.com/rust-lang/crates.io-index"
178
+ checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
179
+ dependencies = [
180
+ "foldhash",
181
+ ]
182
+
183
+ [[package]]
184
+ name = "hashbrown"
185
+ version = "0.17.1"
186
+ source = "registry+https://github.com/rust-lang/crates.io-index"
187
+ checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
188
+
189
+ [[package]]
190
+ name = "indexmap"
191
+ version = "2.14.0"
192
+ source = "registry+https://github.com/rust-lang/crates.io-index"
193
+ checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"
194
+ dependencies = [
195
+ "equivalent",
196
+ "hashbrown 0.17.1",
197
+ ]
198
+
199
+ [[package]]
200
+ name = "itoa"
201
+ version = "1.0.18"
202
+ source = "registry+https://github.com/rust-lang/crates.io-index"
203
+ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
204
+
205
+ [[package]]
206
+ name = "libc"
207
+ version = "0.2.186"
208
+ source = "registry+https://github.com/rust-lang/crates.io-index"
209
+ checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
210
+
211
+ [[package]]
212
+ name = "linux-raw-sys"
213
+ version = "0.12.1"
214
+ source = "registry+https://github.com/rust-lang/crates.io-index"
215
+ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
216
+
217
+ [[package]]
218
+ name = "memchr"
219
+ version = "2.8.2"
220
+ source = "registry+https://github.com/rust-lang/crates.io-index"
221
+ checksum = "88904434abc2901f197fe8cc55f0445e7ded921dba5911dad2e2b39b48e663c4"
222
+
223
+ [[package]]
224
+ name = "once_cell"
225
+ version = "1.21.4"
226
+ source = "registry+https://github.com/rust-lang/crates.io-index"
227
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
228
+
229
+ [[package]]
230
+ name = "petgraph"
231
+ version = "0.8.3"
232
+ source = "registry+https://github.com/rust-lang/crates.io-index"
233
+ checksum = "8701b58ea97060d5e5b155d383a69952a60943f0e6dfe30b04c287beb0b27455"
234
+ dependencies = [
235
+ "fixedbitset",
236
+ "hashbrown 0.15.5",
237
+ "indexmap",
238
+ "serde",
239
+ ]
240
+
241
+ [[package]]
242
+ name = "proc-macro2"
243
+ version = "1.0.106"
244
+ source = "registry+https://github.com/rust-lang/crates.io-index"
245
+ checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
246
+ dependencies = [
247
+ "unicode-ident",
248
+ ]
249
+
250
+ [[package]]
251
+ name = "quote"
252
+ version = "1.0.46"
253
+ source = "registry+https://github.com/rust-lang/crates.io-index"
254
+ checksum = "dfbc457d0c7a0759a614551b11a6409e5951f6c7537be1f1b7682b9ae9230368"
255
+ dependencies = [
256
+ "proc-macro2",
257
+ ]
258
+
259
+ [[package]]
260
+ name = "r-efi"
261
+ version = "6.0.0"
262
+ source = "registry+https://github.com/rust-lang/crates.io-index"
263
+ checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
264
+
265
+ [[package]]
266
+ name = "rayon"
267
+ version = "1.12.0"
268
+ source = "registry+https://github.com/rust-lang/crates.io-index"
269
+ checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d"
270
+ dependencies = [
271
+ "either",
272
+ "rayon-core",
273
+ ]
274
+
275
+ [[package]]
276
+ name = "rayon-core"
277
+ version = "1.13.0"
278
+ source = "registry+https://github.com/rust-lang/crates.io-index"
279
+ checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
280
+ dependencies = [
281
+ "crossbeam-deque",
282
+ "crossbeam-utils",
283
+ ]
284
+
285
+ [[package]]
286
+ name = "regex"
287
+ version = "1.12.4"
288
+ source = "registry+https://github.com/rust-lang/crates.io-index"
289
+ checksum = "f1292b7759ae1cb9ec195452d1390a074f0cd8541ab7a5a8c31cd6db45d4a6ba"
290
+ dependencies = [
291
+ "aho-corasick",
292
+ "memchr",
293
+ "regex-automata",
294
+ "regex-syntax",
295
+ ]
296
+
297
+ [[package]]
298
+ name = "regex-automata"
299
+ version = "0.4.14"
300
+ source = "registry+https://github.com/rust-lang/crates.io-index"
301
+ checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f"
302
+ dependencies = [
303
+ "aho-corasick",
304
+ "memchr",
305
+ "regex-syntax",
306
+ ]
307
+
308
+ [[package]]
309
+ name = "regex-syntax"
310
+ version = "0.8.11"
311
+ source = "registry+https://github.com/rust-lang/crates.io-index"
312
+ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
313
+
314
+ [[package]]
315
+ name = "rustix"
316
+ version = "1.1.4"
317
+ source = "registry+https://github.com/rust-lang/crates.io-index"
318
+ checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
319
+ dependencies = [
320
+ "bitflags",
321
+ "errno",
322
+ "libc",
323
+ "linux-raw-sys",
324
+ "windows-sys",
325
+ ]
326
+
327
+ [[package]]
328
+ name = "ryu"
329
+ version = "1.0.23"
330
+ source = "registry+https://github.com/rust-lang/crates.io-index"
331
+ checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
332
+
333
+ [[package]]
334
+ name = "serde"
335
+ version = "1.0.228"
336
+ source = "registry+https://github.com/rust-lang/crates.io-index"
337
+ checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
338
+ dependencies = [
339
+ "serde_core",
340
+ "serde_derive",
341
+ ]
342
+
343
+ [[package]]
344
+ name = "serde_core"
345
+ version = "1.0.228"
346
+ source = "registry+https://github.com/rust-lang/crates.io-index"
347
+ checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
348
+ dependencies = [
349
+ "serde_derive",
350
+ ]
351
+
352
+ [[package]]
353
+ name = "serde_derive"
354
+ version = "1.0.228"
355
+ source = "registry+https://github.com/rust-lang/crates.io-index"
356
+ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
357
+ dependencies = [
358
+ "proc-macro2",
359
+ "quote",
360
+ "syn",
361
+ ]
362
+
363
+ [[package]]
364
+ name = "serde_json"
365
+ version = "1.0.150"
366
+ source = "registry+https://github.com/rust-lang/crates.io-index"
367
+ checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9"
368
+ dependencies = [
369
+ "indexmap",
370
+ "itoa",
371
+ "memchr",
372
+ "serde",
373
+ "serde_core",
374
+ "zmij",
375
+ ]
376
+
377
+ [[package]]
378
+ name = "serde_spanned"
379
+ version = "0.6.9"
380
+ source = "registry+https://github.com/rust-lang/crates.io-index"
381
+ checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3"
382
+ dependencies = [
383
+ "serde",
384
+ ]
385
+
386
+ [[package]]
387
+ name = "serde_yaml_ng"
388
+ version = "0.10.0"
389
+ source = "registry+https://github.com/rust-lang/crates.io-index"
390
+ checksum = "7b4db627b98b36d4203a7b458cf3573730f2bb591b28871d916dfa9efabfd41f"
391
+ dependencies = [
392
+ "indexmap",
393
+ "itoa",
394
+ "ryu",
395
+ "serde",
396
+ "unsafe-libyaml",
397
+ ]
398
+
399
+ [[package]]
400
+ name = "shlex"
401
+ version = "2.0.1"
402
+ source = "registry+https://github.com/rust-lang/crates.io-index"
403
+ checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
404
+
405
+ [[package]]
406
+ name = "streaming-iterator"
407
+ version = "0.1.9"
408
+ source = "registry+https://github.com/rust-lang/crates.io-index"
409
+ checksum = "2b2231b7c3057d5e4ad0156fb3dc807d900806020c5ffa3ee6ff2c8c76fb8520"
410
+
411
+ [[package]]
412
+ name = "strsim"
413
+ version = "0.11.1"
414
+ source = "registry+https://github.com/rust-lang/crates.io-index"
415
+ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
416
+
417
+ [[package]]
418
+ name = "syn"
419
+ version = "2.0.118"
420
+ source = "registry+https://github.com/rust-lang/crates.io-index"
421
+ checksum = "1b9ae57f904213ebb649ce6895b8a66c66f0203b9319718f69a5612a065b1422"
422
+ dependencies = [
423
+ "proc-macro2",
424
+ "quote",
425
+ "unicode-ident",
426
+ ]
427
+
428
+ [[package]]
429
+ name = "tempfile"
430
+ version = "3.27.0"
431
+ source = "registry+https://github.com/rust-lang/crates.io-index"
432
+ checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
433
+ dependencies = [
434
+ "fastrand",
435
+ "getrandom",
436
+ "once_cell",
437
+ "rustix",
438
+ "windows-sys",
439
+ ]
440
+
441
+ [[package]]
442
+ name = "thiserror"
443
+ version = "2.0.18"
444
+ source = "registry+https://github.com/rust-lang/crates.io-index"
445
+ checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
446
+ dependencies = [
447
+ "thiserror-impl",
448
+ ]
449
+
450
+ [[package]]
451
+ name = "thiserror-impl"
452
+ version = "2.0.18"
453
+ source = "registry+https://github.com/rust-lang/crates.io-index"
454
+ checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
455
+ dependencies = [
456
+ "proc-macro2",
457
+ "quote",
458
+ "syn",
459
+ ]
460
+
461
+ [[package]]
462
+ name = "toml"
463
+ version = "0.8.23"
464
+ source = "registry+https://github.com/rust-lang/crates.io-index"
465
+ checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362"
466
+ dependencies = [
467
+ "serde",
468
+ "serde_spanned",
469
+ "toml_datetime",
470
+ "toml_edit",
471
+ ]
472
+
473
+ [[package]]
474
+ name = "toml_datetime"
475
+ version = "0.6.11"
476
+ source = "registry+https://github.com/rust-lang/crates.io-index"
477
+ checksum = "22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c"
478
+ dependencies = [
479
+ "serde",
480
+ ]
481
+
482
+ [[package]]
483
+ name = "toml_edit"
484
+ version = "0.22.27"
485
+ source = "registry+https://github.com/rust-lang/crates.io-index"
486
+ checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a"
487
+ dependencies = [
488
+ "indexmap",
489
+ "serde",
490
+ "serde_spanned",
491
+ "toml_datetime",
492
+ "toml_write",
493
+ "winnow",
494
+ ]
495
+
496
+ [[package]]
497
+ name = "toml_write"
498
+ version = "0.1.2"
499
+ source = "registry+https://github.com/rust-lang/crates.io-index"
500
+ checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801"
501
+
502
+ [[package]]
503
+ name = "tree-sitter"
504
+ version = "0.26.10"
505
+ source = "registry+https://github.com/rust-lang/crates.io-index"
506
+ checksum = "3c343ed63e3f5c64d1acdecb5d2c13d4e169cb5fde0052106ebaa6c6f27f9e55"
507
+ dependencies = [
508
+ "cc",
509
+ "regex",
510
+ "regex-syntax",
511
+ "serde_json",
512
+ "streaming-iterator",
513
+ "tree-sitter-language",
514
+ ]
515
+
516
+ [[package]]
517
+ name = "tree-sitter-dart"
518
+ version = "0.2.0"
519
+ source = "registry+https://github.com/rust-lang/crates.io-index"
520
+ checksum = "325dd1e24ee9ee21111e9c43680ae7d6010aaa9f282b048a99b9c7163c1cf553"
521
+ dependencies = [
522
+ "cc",
523
+ "tree-sitter-language",
524
+ ]
525
+
526
+ [[package]]
527
+ name = "tree-sitter-language"
528
+ version = "0.1.7"
529
+ source = "registry+https://github.com/rust-lang/crates.io-index"
530
+ checksum = "009994f150cc0cd50ff54917d5bc8bffe8cad10ca10d81c34da2ec421ae61782"
531
+
532
+ [[package]]
533
+ name = "unicode-ident"
534
+ version = "1.0.24"
535
+ source = "registry+https://github.com/rust-lang/crates.io-index"
536
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
537
+
538
+ [[package]]
539
+ name = "unsafe-libyaml"
540
+ version = "0.2.11"
541
+ source = "registry+https://github.com/rust-lang/crates.io-index"
542
+ checksum = "673aac59facbab8a9007c7f6108d11f63b603f7cabff99fabf650fea5c32b861"
543
+
544
+ [[package]]
545
+ name = "windows-link"
546
+ version = "0.2.1"
547
+ source = "registry+https://github.com/rust-lang/crates.io-index"
548
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
549
+
550
+ [[package]]
551
+ name = "windows-sys"
552
+ version = "0.61.2"
553
+ source = "registry+https://github.com/rust-lang/crates.io-index"
554
+ checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
555
+ dependencies = [
556
+ "windows-link",
557
+ ]
558
+
559
+ [[package]]
560
+ name = "winnow"
561
+ version = "0.7.15"
562
+ source = "registry+https://github.com/rust-lang/crates.io-index"
563
+ checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945"
564
+ dependencies = [
565
+ "memchr",
566
+ ]
567
+
568
+ [[package]]
569
+ name = "zmij"
570
+ version = "1.0.21"
571
+ source = "registry+https://github.com/rust-lang/crates.io-index"
572
+ checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
package/Cargo.toml ADDED
@@ -0,0 +1,41 @@
1
+ [package]
2
+ name = "dart-decimate"
3
+ version = "0.0.1"
4
+ edition = "2024"
5
+ rust-version = "1.85"
6
+ description = "Rust-native codebase intelligence for Dart and Flutter module graphs."
7
+ license = "MIT"
8
+ repository = "https://github.com/sgaabdu4/dart-decimate"
9
+ homepage = "https://github.com/sgaabdu4/dart-decimate#readme"
10
+ readme = "README.md"
11
+ keywords = ["dart", "flutter", "static-analysis", "code-intelligence"]
12
+ categories = ["command-line-utilities", "development-tools"]
13
+ publish = false
14
+ include = ["/Cargo.toml", "/Cargo.lock", "/README.md", "/LICENSE", "/src/**"]
15
+
16
+ [dependencies]
17
+ clap = { version = "4", default-features = false, features = ["std", "help", "usage", "error-context", "suggestions"] }
18
+ glob = "0.3"
19
+ petgraph = "0.8"
20
+ rayon = "1"
21
+ serde = { version = "1", features = ["derive"] }
22
+ serde_json = "1"
23
+ serde_yaml_ng = "0.10"
24
+ thiserror = "2"
25
+ toml = "0.8"
26
+ tree-sitter = "0.26"
27
+ tree-sitter-dart = "0.2"
28
+
29
+ [dev-dependencies]
30
+ tempfile = "3"
31
+
32
+ [lints.rust]
33
+ unsafe_code = "forbid"
34
+
35
+ [lints.clippy]
36
+ all = { level = "warn", priority = -1 }
37
+ pedantic = { level = "warn", priority = -1 }
38
+ dbg_macro = "warn"
39
+ expect_used = "warn"
40
+ todo = "warn"
41
+ unwrap_used = "warn"
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Dart Decimate contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.