polyglot-piranha 0.3.34__tar.gz → 0.3.36__tar.gz
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.
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/Cargo.lock +207 -64
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/Cargo.toml +4 -2
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/PKG-INFO +12 -1
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/README.md +9 -0
- polyglot_piranha-0.3.36/polyglot_piranha.pyi +326 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/pyproject.toml +8 -2
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/df/utils.rs +2 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/lib.rs +0 -1
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/models/capture_group_patterns.rs +5 -4
- polyglot_piranha-0.3.36/src/models/concrete_syntax/concrete_syntax.pest +15 -0
- polyglot_piranha-0.3.34/src/models/concrete_syntax.rs → polyglot_piranha-0.3.36/src/models/concrete_syntax/interpreter.rs +123 -64
- polyglot_piranha-0.3.36/src/models/concrete_syntax/mod.rs +15 -0
- polyglot_piranha-0.3.36/src/models/concrete_syntax/parser.rs +112 -0
- polyglot_piranha-0.3.34/src/models/unit_tests/concrete_syntax_test.rs → polyglot_piranha-0.3.36/src/models/concrete_syntax/unit_tests/interpreter_test.rs +27 -3
- polyglot_piranha-0.3.36/src/models/concrete_syntax/unit_tests/test_parser.rs +270 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/models/mod.rs +2 -1
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/LICENSE +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/NOTICE +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/plugins/pyproject.toml +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/cleanup_rules/go/edges.toml +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/cleanup_rules/go/rules.toml +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/cleanup_rules/go/scope_config.toml +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/cleanup_rules/java/edges.toml +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/cleanup_rules/java/rules.toml +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/cleanup_rules/java/scope_config.toml +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/cleanup_rules/java_cs/edges.toml +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/cleanup_rules/java_cs/rules.toml +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/cleanup_rules/java_cs/scope_config.toml +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/cleanup_rules/kt/edges.toml +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/cleanup_rules/kt/rules.toml +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/cleanup_rules/kt/scope_config.toml +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/cleanup_rules/ruby/edges.toml +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/cleanup_rules/ruby/rules.toml +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/cleanup_rules/ruby/scope_config.toml +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/cleanup_rules/scala/scope_config.toml +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/cleanup_rules/swift/edges.toml +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/cleanup_rules/swift/rules.toml +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/cleanup_rules/swift/scope_config.toml +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/df/README.md +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/df/analysis.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/df/mod.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/df/tag_analysis.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/df/unit_tests/tag_analysis_test.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/main.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/models/default_configs.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/models/edit.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/models/filter.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/models/language.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/models/matches.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/models/outgoing_edges.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/models/piranha_arguments.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/models/piranha_output.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/models/rule.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/models/rule_graph.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/models/rule_store.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/models/scopes.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/models/source_code_unit.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/models/unit_tests/piranha_arguments_test.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/models/unit_tests/rule_graph_validation_test.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/models/unit_tests/rule_test.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/models/unit_tests/scopes_test.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/models/unit_tests/source_code_unit_test.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/models/unit_tests/testdata/custom_builtin/edges.toml +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/models/unit_tests/testdata/custom_builtin/rules.toml +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/tests/mod.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/tests/test_piranha_go.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/tests/test_piranha_java.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/tests/test_piranha_kt.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/tests/test_piranha_python.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/tests/test_piranha_scala.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/tests/test_piranha_scm.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/tests/test_piranha_strings.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/tests/test_piranha_swift.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/tests/test_piranha_thrift.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/tests/test_piranha_ts.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/tests/test_piranha_tsx.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/tests/test_piranha_yaml.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/utilities/mod.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/utilities/regex_utilities.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/utilities/tree_sitter_utilities.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/utilities/unit_tests/tree_sitter_utilities_test.rs +0 -0
- {polyglot_piranha-0.3.34 → polyglot_piranha-0.3.36}/src/utilities/unit_tests/utilities_test.rs +0 -0
@@ -13,9 +13,9 @@ dependencies = [
|
|
13
13
|
|
14
14
|
[[package]]
|
15
15
|
name = "anstream"
|
16
|
-
version = "0.6.
|
16
|
+
version = "0.6.19"
|
17
17
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
18
|
-
checksum = "
|
18
|
+
checksum = "301af1932e46185686725e0fad2f8f2aa7da69dd70bf6ecc44d6b703844a3933"
|
19
19
|
dependencies = [
|
20
20
|
"anstyle",
|
21
21
|
"anstyle-parse",
|
@@ -28,33 +28,33 @@ dependencies = [
|
|
28
28
|
|
29
29
|
[[package]]
|
30
30
|
name = "anstyle"
|
31
|
-
version = "1.0.
|
31
|
+
version = "1.0.11"
|
32
32
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
33
|
-
checksum = "
|
33
|
+
checksum = "862ed96ca487e809f1c8e5a8447f6ee2cf102f846893800b20cebdf541fc6bbd"
|
34
34
|
|
35
35
|
[[package]]
|
36
36
|
name = "anstyle-parse"
|
37
|
-
version = "0.2.
|
37
|
+
version = "0.2.7"
|
38
38
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
39
|
-
checksum = "
|
39
|
+
checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2"
|
40
40
|
dependencies = [
|
41
41
|
"utf8parse",
|
42
42
|
]
|
43
43
|
|
44
44
|
[[package]]
|
45
45
|
name = "anstyle-query"
|
46
|
-
version = "1.1.
|
46
|
+
version = "1.1.3"
|
47
47
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
48
|
-
checksum = "
|
48
|
+
checksum = "6c8bdeb6047d8983be085bab0ba1472e6dc604e7041dbf6fcd5e71523014fae9"
|
49
49
|
dependencies = [
|
50
50
|
"windows-sys",
|
51
51
|
]
|
52
52
|
|
53
53
|
[[package]]
|
54
54
|
name = "anstyle-wincon"
|
55
|
-
version = "3.0.
|
55
|
+
version = "3.0.9"
|
56
56
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
57
|
-
checksum = "
|
57
|
+
checksum = "403f75924867bb1033c59fbf0797484329750cfbe3c4325cd33127941fabc882"
|
58
58
|
dependencies = [
|
59
59
|
"anstyle",
|
60
60
|
"once_cell_polyfill",
|
@@ -85,9 +85,9 @@ dependencies = [
|
|
85
85
|
|
86
86
|
[[package]]
|
87
87
|
name = "autocfg"
|
88
|
-
version = "1.
|
88
|
+
version = "1.5.0"
|
89
89
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
90
|
-
checksum = "
|
90
|
+
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
|
91
91
|
|
92
92
|
[[package]]
|
93
93
|
name = "bitflags"
|
@@ -95,6 +95,15 @@ version = "2.9.1"
|
|
95
95
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
96
96
|
checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967"
|
97
97
|
|
98
|
+
[[package]]
|
99
|
+
name = "block-buffer"
|
100
|
+
version = "0.10.4"
|
101
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
102
|
+
checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
|
103
|
+
dependencies = [
|
104
|
+
"generic-array",
|
105
|
+
]
|
106
|
+
|
98
107
|
[[package]]
|
99
108
|
name = "bstr"
|
100
109
|
version = "1.12.0"
|
@@ -114,9 +123,9 @@ checksum = "066fce287b1d4eafef758e89e09d724a24808a9196fe9756b8ca90e86d0719a2"
|
|
114
123
|
|
115
124
|
[[package]]
|
116
125
|
name = "cfg-if"
|
117
|
-
version = "1.0.
|
126
|
+
version = "1.0.1"
|
118
127
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
119
|
-
checksum = "
|
128
|
+
checksum = "9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268"
|
120
129
|
|
121
130
|
[[package]]
|
122
131
|
name = "cfg_aliases"
|
@@ -126,9 +135,9 @@ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
|
|
126
135
|
|
127
136
|
[[package]]
|
128
137
|
name = "clap"
|
129
|
-
version = "4.5.
|
138
|
+
version = "4.5.40"
|
130
139
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
131
|
-
checksum = "
|
140
|
+
checksum = "40b6887a1d8685cebccf115538db5c0efe625ccac9696ad45c409d96566e910f"
|
132
141
|
dependencies = [
|
133
142
|
"clap_builder",
|
134
143
|
"clap_derive",
|
@@ -136,9 +145,9 @@ dependencies = [
|
|
136
145
|
|
137
146
|
[[package]]
|
138
147
|
name = "clap_builder"
|
139
|
-
version = "4.5.
|
148
|
+
version = "4.5.40"
|
140
149
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
141
|
-
checksum = "
|
150
|
+
checksum = "e0c66c08ce9f0c698cbce5c0279d0bb6ac936d8674174fe48f736533b964f59e"
|
142
151
|
dependencies = [
|
143
152
|
"anstream",
|
144
153
|
"anstyle",
|
@@ -148,27 +157,27 @@ dependencies = [
|
|
148
157
|
|
149
158
|
[[package]]
|
150
159
|
name = "clap_derive"
|
151
|
-
version = "4.5.
|
160
|
+
version = "4.5.40"
|
152
161
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
153
|
-
checksum = "
|
162
|
+
checksum = "d2c7947ae4cc3d851207c1adb5b5e260ff0cca11446b1d6d1423788e442257ce"
|
154
163
|
dependencies = [
|
155
164
|
"heck 0.5.0",
|
156
165
|
"proc-macro2",
|
157
166
|
"quote",
|
158
|
-
"syn 2.0.
|
167
|
+
"syn 2.0.104",
|
159
168
|
]
|
160
169
|
|
161
170
|
[[package]]
|
162
171
|
name = "clap_lex"
|
163
|
-
version = "0.7.
|
172
|
+
version = "0.7.5"
|
164
173
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
165
|
-
checksum = "
|
174
|
+
checksum = "b94f61472cee1439c0b966b47e3aca9ae07e45d070759512cd390ea2bebc6675"
|
166
175
|
|
167
176
|
[[package]]
|
168
177
|
name = "colorchoice"
|
169
|
-
version = "1.0.
|
178
|
+
version = "1.0.4"
|
170
179
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
171
|
-
checksum = "
|
180
|
+
checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
|
172
181
|
|
173
182
|
[[package]]
|
174
183
|
name = "colored"
|
@@ -180,6 +189,15 @@ dependencies = [
|
|
180
189
|
"windows-sys",
|
181
190
|
]
|
182
191
|
|
192
|
+
[[package]]
|
193
|
+
name = "cpufeatures"
|
194
|
+
version = "0.2.17"
|
195
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
196
|
+
checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"
|
197
|
+
dependencies = [
|
198
|
+
"libc",
|
199
|
+
]
|
200
|
+
|
183
201
|
[[package]]
|
184
202
|
name = "crossbeam"
|
185
203
|
version = "0.8.4"
|
@@ -236,6 +254,16 @@ version = "0.8.21"
|
|
236
254
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
237
255
|
checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
|
238
256
|
|
257
|
+
[[package]]
|
258
|
+
name = "crypto-common"
|
259
|
+
version = "0.1.6"
|
260
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
261
|
+
checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3"
|
262
|
+
dependencies = [
|
263
|
+
"generic-array",
|
264
|
+
"typenum",
|
265
|
+
]
|
266
|
+
|
239
267
|
[[package]]
|
240
268
|
name = "ctrlc"
|
241
269
|
version = "3.4.7"
|
@@ -318,6 +346,16 @@ version = "0.4.0"
|
|
318
346
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
319
347
|
checksum = "6184e33543162437515c2e2b48714794e37845ec9851711914eec9d308f6ebe8"
|
320
348
|
|
349
|
+
[[package]]
|
350
|
+
name = "digest"
|
351
|
+
version = "0.10.7"
|
352
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
353
|
+
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
|
354
|
+
dependencies = [
|
355
|
+
"block-buffer",
|
356
|
+
"crypto-common",
|
357
|
+
]
|
358
|
+
|
321
359
|
[[package]]
|
322
360
|
name = "doc-comment"
|
323
361
|
version = "0.3.3"
|
@@ -370,16 +408,26 @@ version = "0.1.1"
|
|
370
408
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
371
409
|
checksum = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba"
|
372
410
|
|
411
|
+
[[package]]
|
412
|
+
name = "generic-array"
|
413
|
+
version = "0.14.7"
|
414
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
415
|
+
checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
|
416
|
+
dependencies = [
|
417
|
+
"typenum",
|
418
|
+
"version_check",
|
419
|
+
]
|
420
|
+
|
373
421
|
[[package]]
|
374
422
|
name = "getset"
|
375
|
-
version = "0.1.
|
423
|
+
version = "0.1.6"
|
376
424
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
377
|
-
checksum = "
|
425
|
+
checksum = "9cf0fc11e47561d47397154977bc219f4cf809b2974facc3ccb3b89e2436f912"
|
378
426
|
dependencies = [
|
379
427
|
"proc-macro-error2",
|
380
428
|
"proc-macro2",
|
381
429
|
"quote",
|
382
|
-
"syn 2.0.
|
430
|
+
"syn 2.0.104",
|
383
431
|
]
|
384
432
|
|
385
433
|
[[package]]
|
@@ -390,9 +438,9 @@ checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
|
|
390
438
|
|
391
439
|
[[package]]
|
392
440
|
name = "hashbrown"
|
393
|
-
version = "0.15.
|
441
|
+
version = "0.15.4"
|
394
442
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
395
|
-
checksum = "
|
443
|
+
checksum = "5971ac85611da7067dbfcabef3c70ebb5606018acd9e2a3903a0da507521e0d5"
|
396
444
|
|
397
445
|
[[package]]
|
398
446
|
name = "heck"
|
@@ -408,9 +456,9 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
408
456
|
|
409
457
|
[[package]]
|
410
458
|
name = "hermit-abi"
|
411
|
-
version = "0.5.
|
459
|
+
version = "0.5.2"
|
412
460
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
413
|
-
checksum = "
|
461
|
+
checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"
|
414
462
|
|
415
463
|
[[package]]
|
416
464
|
name = "humantime"
|
@@ -426,9 +474,9 @@ checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
|
|
426
474
|
|
427
475
|
[[package]]
|
428
476
|
name = "indexmap"
|
429
|
-
version = "2.
|
477
|
+
version = "2.10.0"
|
430
478
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
431
|
-
checksum = "
|
479
|
+
checksum = "fe4cd85333e22411419a0bcae1297d25e58c9443848b11dc6a86fefe8c78a661"
|
432
480
|
dependencies = [
|
433
481
|
"equivalent",
|
434
482
|
"hashbrown",
|
@@ -496,9 +544,9 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
|
496
544
|
|
497
545
|
[[package]]
|
498
546
|
name = "libc"
|
499
|
-
version = "0.2.
|
547
|
+
version = "0.2.174"
|
500
548
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
501
|
-
checksum = "
|
549
|
+
checksum = "1171693293099992e19cddea4e8b849964e9846f4acee11b3948bcc337be8776"
|
502
550
|
|
503
551
|
[[package]]
|
504
552
|
name = "lock_api"
|
@@ -518,9 +566,9 @@ checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94"
|
|
518
566
|
|
519
567
|
[[package]]
|
520
568
|
name = "memchr"
|
521
|
-
version = "2.7.
|
569
|
+
version = "2.7.5"
|
522
570
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
523
|
-
checksum = "
|
571
|
+
checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0"
|
524
572
|
|
525
573
|
[[package]]
|
526
574
|
name = "memoffset"
|
@@ -593,9 +641,53 @@ dependencies = [
|
|
593
641
|
"windows-targets",
|
594
642
|
]
|
595
643
|
|
644
|
+
[[package]]
|
645
|
+
name = "pest"
|
646
|
+
version = "2.8.1"
|
647
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
648
|
+
checksum = "1db05f56d34358a8b1066f67cbb203ee3e7ed2ba674a6263a1d5ec6db2204323"
|
649
|
+
dependencies = [
|
650
|
+
"memchr",
|
651
|
+
"thiserror",
|
652
|
+
"ucd-trie",
|
653
|
+
]
|
654
|
+
|
655
|
+
[[package]]
|
656
|
+
name = "pest_derive"
|
657
|
+
version = "2.8.1"
|
658
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
659
|
+
checksum = "bb056d9e8ea77922845ec74a1c4e8fb17e7c218cc4fc11a15c5d25e189aa40bc"
|
660
|
+
dependencies = [
|
661
|
+
"pest",
|
662
|
+
"pest_generator",
|
663
|
+
]
|
664
|
+
|
665
|
+
[[package]]
|
666
|
+
name = "pest_generator"
|
667
|
+
version = "2.8.1"
|
668
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
669
|
+
checksum = "87e404e638f781eb3202dc82db6760c8ae8a1eeef7fb3fa8264b2ef280504966"
|
670
|
+
dependencies = [
|
671
|
+
"pest",
|
672
|
+
"pest_meta",
|
673
|
+
"proc-macro2",
|
674
|
+
"quote",
|
675
|
+
"syn 2.0.104",
|
676
|
+
]
|
677
|
+
|
678
|
+
[[package]]
|
679
|
+
name = "pest_meta"
|
680
|
+
version = "2.8.1"
|
681
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
682
|
+
checksum = "edd1101f170f5903fde0914f899bb503d9ff5271d7ba76bbb70bea63690cc0d5"
|
683
|
+
dependencies = [
|
684
|
+
"pest",
|
685
|
+
"sha2",
|
686
|
+
]
|
687
|
+
|
596
688
|
[[package]]
|
597
689
|
name = "piranha"
|
598
|
-
version = "0.3.
|
690
|
+
version = "0.3.36"
|
599
691
|
dependencies = [
|
600
692
|
"assert_cmd",
|
601
693
|
"cc",
|
@@ -611,6 +703,8 @@ dependencies = [
|
|
611
703
|
"jwalk",
|
612
704
|
"lazy_static",
|
613
705
|
"log",
|
706
|
+
"pest",
|
707
|
+
"pest_derive",
|
614
708
|
"predicates",
|
615
709
|
"pyo3",
|
616
710
|
"pyo3-log",
|
@@ -638,9 +732,9 @@ dependencies = [
|
|
638
732
|
|
639
733
|
[[package]]
|
640
734
|
name = "portable-atomic"
|
641
|
-
version = "1.11.
|
735
|
+
version = "1.11.1"
|
642
736
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
643
|
-
checksum = "
|
737
|
+
checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483"
|
644
738
|
|
645
739
|
[[package]]
|
646
740
|
name = "predicates"
|
@@ -691,7 +785,7 @@ dependencies = [
|
|
691
785
|
"proc-macro-error-attr2",
|
692
786
|
"proc-macro2",
|
693
787
|
"quote",
|
694
|
-
"syn 2.0.
|
788
|
+
"syn 2.0.104",
|
695
789
|
]
|
696
790
|
|
697
791
|
[[package]]
|
@@ -761,7 +855,7 @@ dependencies = [
|
|
761
855
|
"proc-macro2",
|
762
856
|
"pyo3-macros-backend",
|
763
857
|
"quote",
|
764
|
-
"syn 2.0.
|
858
|
+
"syn 2.0.104",
|
765
859
|
]
|
766
860
|
|
767
861
|
[[package]]
|
@@ -774,7 +868,7 @@ dependencies = [
|
|
774
868
|
"proc-macro2",
|
775
869
|
"pyo3-build-config",
|
776
870
|
"quote",
|
777
|
-
"syn 2.0.
|
871
|
+
"syn 2.0.104",
|
778
872
|
]
|
779
873
|
|
780
874
|
[[package]]
|
@@ -845,9 +939,9 @@ dependencies = [
|
|
845
939
|
|
846
940
|
[[package]]
|
847
941
|
name = "redox_syscall"
|
848
|
-
version = "0.5.
|
942
|
+
version = "0.5.13"
|
849
943
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
850
|
-
checksum = "
|
944
|
+
checksum = "0d04b7d0ee6b4a0207a0a7adb104d23ecb0b47d6beae7152d0fa34b692b29fd6"
|
851
945
|
dependencies = [
|
852
946
|
"bitflags",
|
853
947
|
]
|
@@ -919,7 +1013,7 @@ checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00"
|
|
919
1013
|
dependencies = [
|
920
1014
|
"proc-macro2",
|
921
1015
|
"quote",
|
922
|
-
"syn 2.0.
|
1016
|
+
"syn 2.0.104",
|
923
1017
|
]
|
924
1018
|
|
925
1019
|
[[package]]
|
@@ -936,18 +1030,29 @@ dependencies = [
|
|
936
1030
|
|
937
1031
|
[[package]]
|
938
1032
|
name = "serde_spanned"
|
939
|
-
version = "0.6.
|
1033
|
+
version = "0.6.9"
|
940
1034
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
941
|
-
checksum = "
|
1035
|
+
checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3"
|
942
1036
|
dependencies = [
|
943
1037
|
"serde",
|
944
1038
|
]
|
945
1039
|
|
1040
|
+
[[package]]
|
1041
|
+
name = "sha2"
|
1042
|
+
version = "0.10.9"
|
1043
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1044
|
+
checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
|
1045
|
+
dependencies = [
|
1046
|
+
"cfg-if",
|
1047
|
+
"cpufeatures",
|
1048
|
+
"digest",
|
1049
|
+
]
|
1050
|
+
|
946
1051
|
[[package]]
|
947
1052
|
name = "smallvec"
|
948
|
-
version = "1.15.
|
1053
|
+
version = "1.15.1"
|
949
1054
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
950
|
-
checksum = "
|
1055
|
+
checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
|
951
1056
|
|
952
1057
|
[[package]]
|
953
1058
|
name = "strsim"
|
@@ -974,9 +1079,9 @@ dependencies = [
|
|
974
1079
|
|
975
1080
|
[[package]]
|
976
1081
|
name = "syn"
|
977
|
-
version = "2.0.
|
1082
|
+
version = "2.0.104"
|
978
1083
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
979
|
-
checksum = "
|
1084
|
+
checksum = "17b6f705963418cdb9927482fa304bc562ece2fdd4f616084c50b7023b435a40"
|
980
1085
|
dependencies = [
|
981
1086
|
"proc-macro2",
|
982
1087
|
"quote",
|
@@ -1014,11 +1119,31 @@ version = "0.5.1"
|
|
1014
1119
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1015
1120
|
checksum = "8f50febec83f5ee1df3015341d8bd429f2d1cc62bcba7ea2076759d315084683"
|
1016
1121
|
|
1122
|
+
[[package]]
|
1123
|
+
name = "thiserror"
|
1124
|
+
version = "2.0.12"
|
1125
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1126
|
+
checksum = "567b8a2dae586314f7be2a752ec7474332959c6460e02bde30d702a66d488708"
|
1127
|
+
dependencies = [
|
1128
|
+
"thiserror-impl",
|
1129
|
+
]
|
1130
|
+
|
1131
|
+
[[package]]
|
1132
|
+
name = "thiserror-impl"
|
1133
|
+
version = "2.0.12"
|
1134
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1135
|
+
checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d"
|
1136
|
+
dependencies = [
|
1137
|
+
"proc-macro2",
|
1138
|
+
"quote",
|
1139
|
+
"syn 2.0.104",
|
1140
|
+
]
|
1141
|
+
|
1017
1142
|
[[package]]
|
1018
1143
|
name = "toml"
|
1019
|
-
version = "0.8.
|
1144
|
+
version = "0.8.23"
|
1020
1145
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1021
|
-
checksum = "
|
1146
|
+
checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362"
|
1022
1147
|
dependencies = [
|
1023
1148
|
"serde",
|
1024
1149
|
"serde_spanned",
|
@@ -1028,18 +1153,18 @@ dependencies = [
|
|
1028
1153
|
|
1029
1154
|
[[package]]
|
1030
1155
|
name = "toml_datetime"
|
1031
|
-
version = "0.6.
|
1156
|
+
version = "0.6.11"
|
1032
1157
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1033
|
-
checksum = "
|
1158
|
+
checksum = "22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c"
|
1034
1159
|
dependencies = [
|
1035
1160
|
"serde",
|
1036
1161
|
]
|
1037
1162
|
|
1038
1163
|
[[package]]
|
1039
1164
|
name = "toml_edit"
|
1040
|
-
version = "0.22.
|
1165
|
+
version = "0.22.27"
|
1041
1166
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1042
|
-
checksum = "
|
1167
|
+
checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a"
|
1043
1168
|
dependencies = [
|
1044
1169
|
"indexmap",
|
1045
1170
|
"serde",
|
@@ -1051,9 +1176,9 @@ dependencies = [
|
|
1051
1176
|
|
1052
1177
|
[[package]]
|
1053
1178
|
name = "toml_write"
|
1054
|
-
version = "0.1.
|
1179
|
+
version = "0.1.2"
|
1055
1180
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1056
|
-
checksum = "
|
1181
|
+
checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801"
|
1057
1182
|
|
1058
1183
|
[[package]]
|
1059
1184
|
name = "tree-sitter"
|
@@ -1068,7 +1193,7 @@ dependencies = [
|
|
1068
1193
|
[[package]]
|
1069
1194
|
name = "tree-sitter-go"
|
1070
1195
|
version = "0.20.0"
|
1071
|
-
source = "git+https://github.com/
|
1196
|
+
source = "git+https://github.com/danieltrt/tree-sitter-go.git?rev=ea5ceb716012db8813a2c05fab23c3a020988724#ea5ceb716012db8813a2c05fab23c3a020988724"
|
1072
1197
|
dependencies = [
|
1073
1198
|
"cc",
|
1074
1199
|
"tree-sitter",
|
@@ -1190,6 +1315,18 @@ dependencies = [
|
|
1190
1315
|
"tree-sitter",
|
1191
1316
|
]
|
1192
1317
|
|
1318
|
+
[[package]]
|
1319
|
+
name = "typenum"
|
1320
|
+
version = "1.18.0"
|
1321
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1322
|
+
checksum = "1dccffe3ce07af9386bfd29e80c0ab1a8205a2fc34e4bcd40364df902cfa8f3f"
|
1323
|
+
|
1324
|
+
[[package]]
|
1325
|
+
name = "ucd-trie"
|
1326
|
+
version = "0.1.7"
|
1327
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1328
|
+
checksum = "2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971"
|
1329
|
+
|
1193
1330
|
[[package]]
|
1194
1331
|
name = "unicode-ident"
|
1195
1332
|
version = "1.0.18"
|
@@ -1208,6 +1345,12 @@ version = "0.2.2"
|
|
1208
1345
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1209
1346
|
checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
|
1210
1347
|
|
1348
|
+
[[package]]
|
1349
|
+
name = "version_check"
|
1350
|
+
version = "0.9.5"
|
1351
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1352
|
+
checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
|
1353
|
+
|
1211
1354
|
[[package]]
|
1212
1355
|
name = "wait-timeout"
|
1213
1356
|
version = "0.2.1"
|
@@ -1323,9 +1466,9 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
|
|
1323
1466
|
|
1324
1467
|
[[package]]
|
1325
1468
|
name = "winnow"
|
1326
|
-
version = "0.7.
|
1469
|
+
version = "0.7.11"
|
1327
1470
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1328
|
-
checksum = "
|
1471
|
+
checksum = "74c7b26e3480b707944fc872477815d29a8e429d2f93a1ce000f5fa84a15cbcd"
|
1329
1472
|
dependencies = [
|
1330
1473
|
"memchr",
|
1331
1474
|
]
|
@@ -2,7 +2,7 @@
|
|
2
2
|
authors = ["Uber Technologies Inc."]
|
3
3
|
name = "piranha"
|
4
4
|
description = "Polyglot Piranha is a library for performing structural find and replace with deep cleanup."
|
5
|
-
version = "0.3.
|
5
|
+
version = "0.3.36"
|
6
6
|
edition = "2021"
|
7
7
|
include = ["pyproject.toml", "src/"]
|
8
8
|
exclude = ["legacy"]
|
@@ -57,7 +57,7 @@ tree-sitter-python = "0.20.2"
|
|
57
57
|
tree-sitter-ruby = "0.20.1"
|
58
58
|
tree-sitter-typescript = "0.20.1"
|
59
59
|
# TODO: Update after https://github.com/tree-sitter/tree-sitter-go/pull/103 lands
|
60
|
-
tree-sitter-go = { git = "https://github.com/
|
60
|
+
tree-sitter-go = { git = "https://github.com/danieltrt/tree-sitter-go.git", rev = "ea5ceb716012db8813a2c05fab23c3a020988724" }
|
61
61
|
tree-sitter-thrift = "0.5.0"
|
62
62
|
tree-sitter-strings = { git = "https://github.com/uber/tree-sitter-strings.git" }
|
63
63
|
tree-sitter-query = "0.1.0"
|
@@ -70,6 +70,8 @@ pyo3 = "0.20.0"
|
|
70
70
|
pyo3-log = "0.9.0"
|
71
71
|
glob = "0.3.1"
|
72
72
|
lazy_static = "1.4.0"
|
73
|
+
pest = "2.8.1"
|
74
|
+
pest_derive = "2.8.1"
|
73
75
|
|
74
76
|
[features]
|
75
77
|
extension-module = ["pyo3/extension-module"]
|
@@ -1,6 +1,8 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: polyglot_piranha
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.36
|
4
|
+
Requires-Dist: pytest>=8.0 ; extra == 'dev'
|
5
|
+
Provides-Extra: dev
|
4
6
|
License-File: LICENSE
|
5
7
|
License-File: NOTICE
|
6
8
|
Summary: Polyglot Piranha is a library for performing structural find and replace with deep cleanup.
|
@@ -114,6 +116,15 @@ A few additional links on Piranha:
|
|
114
116
|
|
115
117
|
If you have any questions on how to use Piranha or find any bugs, please [open a GitHub issue](https://github.com/uber/piranha/issues).
|
116
118
|
|
119
|
+
## Piranha Development
|
120
|
+
|
121
|
+
Piranha uses several grammar repositories with custom patches to support the transformations. While
|
122
|
+
these patches are being upstreamed, there may be discrepancies between the grammars in this
|
123
|
+
repository and the upstream grammars. Therefore, we have built a custom tree-sitter playground
|
124
|
+
that can be used to test the grammars and queries for easier development:
|
125
|
+
|
126
|
+
https://uber.github.io/piranha/tree-sitter-playground/
|
127
|
+
|
117
128
|
## License
|
118
129
|
Piranha is licensed under the Apache 2.0 license. See the LICENSE file for more information.
|
119
130
|
|
@@ -99,6 +99,15 @@ A few additional links on Piranha:
|
|
99
99
|
|
100
100
|
If you have any questions on how to use Piranha or find any bugs, please [open a GitHub issue](https://github.com/uber/piranha/issues).
|
101
101
|
|
102
|
+
## Piranha Development
|
103
|
+
|
104
|
+
Piranha uses several grammar repositories with custom patches to support the transformations. While
|
105
|
+
these patches are being upstreamed, there may be discrepancies between the grammars in this
|
106
|
+
repository and the upstream grammars. Therefore, we have built a custom tree-sitter playground
|
107
|
+
that can be used to test the grammars and queries for easier development:
|
108
|
+
|
109
|
+
https://uber.github.io/piranha/tree-sitter-playground/
|
110
|
+
|
102
111
|
## License
|
103
112
|
Piranha is licensed under the Apache 2.0 license. See the LICENSE file for more information.
|
104
113
|
|