jsonvet 2.0.0__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.
- jsonvet-2.0.0/Cargo.lock +524 -0
- jsonvet-2.0.0/Cargo.toml +40 -0
- jsonvet-2.0.0/PKG-INFO +204 -0
- jsonvet-2.0.0/README.md +188 -0
- jsonvet-2.0.0/crates/jsonvet/Cargo.toml +24 -0
- jsonvet-2.0.0/crates/jsonvet/README.md +188 -0
- jsonvet-2.0.0/crates/jsonvet/src/dialect.rs +118 -0
- jsonvet-2.0.0/crates/jsonvet/src/lib.rs +34 -0
- jsonvet-2.0.0/crates/jsonvet/src/parse.rs +976 -0
- jsonvet-2.0.0/crates/jsonvet/src/path.rs +138 -0
- jsonvet-2.0.0/crates/jsonvet/src/problem.rs +224 -0
- jsonvet-2.0.0/crates/jsonvet/src/report.rs +129 -0
- jsonvet-2.0.0/crates/jsonvet/src/rule.rs +176 -0
- jsonvet-2.0.0/crates/jsonvet/tests/cases.rs +212 -0
- jsonvet-2.0.0/crates/jsonvet/tests/conformance.rs +85 -0
- jsonvet-2.0.0/crates/jsonvet/tests/properties.proptest-regressions +7 -0
- jsonvet-2.0.0/crates/jsonvet/tests/properties.rs +90 -0
- jsonvet-2.0.0/crates/jsonvet/tests/snapshots/cases__duplicate_keys.snap +26 -0
- jsonvet-2.0.0/crates/jsonvet/tests/snapshots/cases__i_json_and_json_lines.snap +36 -0
- jsonvet-2.0.0/crates/jsonvet/tests/snapshots/cases__positions_follow_json5_line_terminators.snap +12 -0
- jsonvet-2.0.0/crates/jsonvet/tests/snapshots/cases__syntax_in_every_dialect.snap +126 -0
- jsonvet-2.0.0/crates/jsonvet-cli/Cargo.toml +28 -0
- jsonvet-2.0.0/crates/jsonvet-cli/README.md +188 -0
- jsonvet-2.0.0/crates/jsonvet-cli/src/args.rs +209 -0
- jsonvet-2.0.0/crates/jsonvet-cli/src/bin/check-json5.rs +5 -0
- jsonvet-2.0.0/crates/jsonvet-cli/src/glob.rs +147 -0
- jsonvet-2.0.0/crates/jsonvet-cli/src/lib.rs +126 -0
- jsonvet-2.0.0/crates/jsonvet-cli/src/main.rs +5 -0
- jsonvet-2.0.0/crates/jsonvet-cli/src/output.rs +111 -0
- jsonvet-2.0.0/crates/jsonvet-cli/src/settings.rs +192 -0
- jsonvet-2.0.0/crates/jsonvet-cli/tests/cli.rs +231 -0
- jsonvet-2.0.0/crates/jsonvet-cli/tests/corpus.rs +59 -0
- jsonvet-2.0.0/crates/jsonvet-cli/tests/snapshots/corpus__corpus.snap +158 -0
- jsonvet-2.0.0/pyproject.toml +26 -0
jsonvet-2.0.0/Cargo.lock
ADDED
|
@@ -0,0 +1,524 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "autocfg"
|
|
7
|
+
version = "1.5.1"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "bit-set"
|
|
13
|
+
version = "0.11.1"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "56d87354e4229f54a44f7bf2435906a4656dba36026ab6eaca629a2c436a691c"
|
|
16
|
+
dependencies = [
|
|
17
|
+
"bit-vec",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
[[package]]
|
|
21
|
+
name = "bit-vec"
|
|
22
|
+
version = "0.10.1"
|
|
23
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
24
|
+
checksum = "5727b15fa97d4f4fee0a3b7c3d550ed0269f54329207b86388de918604e31269"
|
|
25
|
+
dependencies = [
|
|
26
|
+
"borsh",
|
|
27
|
+
"serde",
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
[[package]]
|
|
31
|
+
name = "bitflags"
|
|
32
|
+
version = "2.13.2"
|
|
33
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
34
|
+
checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
|
|
35
|
+
|
|
36
|
+
[[package]]
|
|
37
|
+
name = "borsh"
|
|
38
|
+
version = "1.8.1"
|
|
39
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
40
|
+
checksum = "553c5d846a6ba5150c65e3b1b8ec073bcf1abc20f9b7220de384a4443ea4e20a"
|
|
41
|
+
dependencies = [
|
|
42
|
+
"borsh-derive",
|
|
43
|
+
"bytes",
|
|
44
|
+
"cfg_aliases",
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
[[package]]
|
|
48
|
+
name = "borsh-derive"
|
|
49
|
+
version = "1.8.1"
|
|
50
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
51
|
+
checksum = "12cdfe656708a01f89b451a7d36466e6fe6c414de0aa18fc54f864f6f9ca9f56"
|
|
52
|
+
dependencies = [
|
|
53
|
+
"once_cell",
|
|
54
|
+
"proc-macro-crate",
|
|
55
|
+
"proc-macro2",
|
|
56
|
+
"quote",
|
|
57
|
+
"syn",
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
[[package]]
|
|
61
|
+
name = "bytes"
|
|
62
|
+
version = "1.12.1"
|
|
63
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
64
|
+
checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
|
|
65
|
+
|
|
66
|
+
[[package]]
|
|
67
|
+
name = "cfg-if"
|
|
68
|
+
version = "1.0.5"
|
|
69
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
70
|
+
checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
|
|
71
|
+
|
|
72
|
+
[[package]]
|
|
73
|
+
name = "cfg_aliases"
|
|
74
|
+
version = "0.2.2"
|
|
75
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
76
|
+
checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527"
|
|
77
|
+
|
|
78
|
+
[[package]]
|
|
79
|
+
name = "chacha20"
|
|
80
|
+
version = "0.10.2"
|
|
81
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
82
|
+
checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06"
|
|
83
|
+
dependencies = [
|
|
84
|
+
"cfg-if",
|
|
85
|
+
"cpufeatures",
|
|
86
|
+
"rand_core",
|
|
87
|
+
]
|
|
88
|
+
|
|
89
|
+
[[package]]
|
|
90
|
+
name = "console"
|
|
91
|
+
version = "0.16.6"
|
|
92
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
93
|
+
checksum = "e96a4956774c13c126a8b5af4daa79384f4d826534c95a02d76afb39e2ab64e3"
|
|
94
|
+
dependencies = [
|
|
95
|
+
"encode_unicode",
|
|
96
|
+
"libc",
|
|
97
|
+
"windows-sys",
|
|
98
|
+
]
|
|
99
|
+
|
|
100
|
+
[[package]]
|
|
101
|
+
name = "core_detect"
|
|
102
|
+
version = "1.0.0"
|
|
103
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
104
|
+
checksum = "7f8f80099a98041a3d1622845c271458a2d73e688351bf3cb999266764b81d48"
|
|
105
|
+
|
|
106
|
+
[[package]]
|
|
107
|
+
name = "cpufeatures"
|
|
108
|
+
version = "0.3.1"
|
|
109
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
110
|
+
checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566"
|
|
111
|
+
dependencies = [
|
|
112
|
+
"libc",
|
|
113
|
+
]
|
|
114
|
+
|
|
115
|
+
[[package]]
|
|
116
|
+
name = "encode_unicode"
|
|
117
|
+
version = "1.0.0"
|
|
118
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
119
|
+
checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0"
|
|
120
|
+
|
|
121
|
+
[[package]]
|
|
122
|
+
name = "equivalent"
|
|
123
|
+
version = "1.0.2"
|
|
124
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
125
|
+
checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
|
|
126
|
+
|
|
127
|
+
[[package]]
|
|
128
|
+
name = "errno"
|
|
129
|
+
version = "0.3.14"
|
|
130
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
131
|
+
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
|
|
132
|
+
dependencies = [
|
|
133
|
+
"libc",
|
|
134
|
+
"windows-sys",
|
|
135
|
+
]
|
|
136
|
+
|
|
137
|
+
[[package]]
|
|
138
|
+
name = "fastrand"
|
|
139
|
+
version = "2.5.0"
|
|
140
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
141
|
+
checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
|
|
142
|
+
|
|
143
|
+
[[package]]
|
|
144
|
+
name = "fnv"
|
|
145
|
+
version = "1.0.7"
|
|
146
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
147
|
+
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
|
148
|
+
|
|
149
|
+
[[package]]
|
|
150
|
+
name = "getrandom"
|
|
151
|
+
version = "0.4.3"
|
|
152
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
153
|
+
checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
|
|
154
|
+
dependencies = [
|
|
155
|
+
"cfg-if",
|
|
156
|
+
"libc",
|
|
157
|
+
"r-efi",
|
|
158
|
+
"rand_core",
|
|
159
|
+
]
|
|
160
|
+
|
|
161
|
+
[[package]]
|
|
162
|
+
name = "hashbrown"
|
|
163
|
+
version = "0.17.1"
|
|
164
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
165
|
+
checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
|
|
166
|
+
|
|
167
|
+
[[package]]
|
|
168
|
+
name = "indexmap"
|
|
169
|
+
version = "2.14.2"
|
|
170
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
171
|
+
checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855"
|
|
172
|
+
dependencies = [
|
|
173
|
+
"equivalent",
|
|
174
|
+
"hashbrown",
|
|
175
|
+
]
|
|
176
|
+
|
|
177
|
+
[[package]]
|
|
178
|
+
name = "insta"
|
|
179
|
+
version = "1.49.0"
|
|
180
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
181
|
+
checksum = "b67d3d2e287e4b86c10b3f3b641033d1f89b74bdb39d05f34952e2b9a6fe21cd"
|
|
182
|
+
dependencies = [
|
|
183
|
+
"console",
|
|
184
|
+
"once_cell",
|
|
185
|
+
"similar",
|
|
186
|
+
"tempfile",
|
|
187
|
+
]
|
|
188
|
+
|
|
189
|
+
[[package]]
|
|
190
|
+
name = "jsonvet"
|
|
191
|
+
version = "2.0.0"
|
|
192
|
+
dependencies = [
|
|
193
|
+
"insta",
|
|
194
|
+
"memchr",
|
|
195
|
+
"proptest",
|
|
196
|
+
"unicode-general-category",
|
|
197
|
+
]
|
|
198
|
+
|
|
199
|
+
[[package]]
|
|
200
|
+
name = "jsonvet-cli"
|
|
201
|
+
version = "2.0.0"
|
|
202
|
+
dependencies = [
|
|
203
|
+
"insta",
|
|
204
|
+
"jsonvet",
|
|
205
|
+
"lexopt",
|
|
206
|
+
"toml",
|
|
207
|
+
]
|
|
208
|
+
|
|
209
|
+
[[package]]
|
|
210
|
+
name = "lexopt"
|
|
211
|
+
version = "0.3.2"
|
|
212
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
213
|
+
checksum = "803ec87c9cfb29b9d2633f20cba1f488db3fd53f2158b1024cbefb47ba05d413"
|
|
214
|
+
|
|
215
|
+
[[package]]
|
|
216
|
+
name = "libc"
|
|
217
|
+
version = "0.2.190"
|
|
218
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
219
|
+
checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78"
|
|
220
|
+
|
|
221
|
+
[[package]]
|
|
222
|
+
name = "linux-raw-sys"
|
|
223
|
+
version = "0.12.1"
|
|
224
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
225
|
+
checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
|
|
226
|
+
|
|
227
|
+
[[package]]
|
|
228
|
+
name = "memchr"
|
|
229
|
+
version = "2.8.3"
|
|
230
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
231
|
+
checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
|
|
232
|
+
|
|
233
|
+
[[package]]
|
|
234
|
+
name = "num-traits"
|
|
235
|
+
version = "0.2.19"
|
|
236
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
237
|
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
|
238
|
+
dependencies = [
|
|
239
|
+
"autocfg",
|
|
240
|
+
]
|
|
241
|
+
|
|
242
|
+
[[package]]
|
|
243
|
+
name = "once_cell"
|
|
244
|
+
version = "1.21.4"
|
|
245
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
246
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
247
|
+
|
|
248
|
+
[[package]]
|
|
249
|
+
name = "proc-macro-crate"
|
|
250
|
+
version = "3.5.0"
|
|
251
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
252
|
+
checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f"
|
|
253
|
+
dependencies = [
|
|
254
|
+
"toml_edit",
|
|
255
|
+
]
|
|
256
|
+
|
|
257
|
+
[[package]]
|
|
258
|
+
name = "proc-macro2"
|
|
259
|
+
version = "1.0.107"
|
|
260
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
261
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
262
|
+
dependencies = [
|
|
263
|
+
"unicode-ident",
|
|
264
|
+
]
|
|
265
|
+
|
|
266
|
+
[[package]]
|
|
267
|
+
name = "proptest"
|
|
268
|
+
version = "1.12.0"
|
|
269
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
270
|
+
checksum = "b8530004ccb15eae51c7e40009fbe317f341f804db54dc033eec1c50be28cfa0"
|
|
271
|
+
dependencies = [
|
|
272
|
+
"bit-set",
|
|
273
|
+
"bit-vec",
|
|
274
|
+
"bitflags",
|
|
275
|
+
"chacha20",
|
|
276
|
+
"core_detect",
|
|
277
|
+
"num-traits",
|
|
278
|
+
"rand",
|
|
279
|
+
"rand_xorshift",
|
|
280
|
+
"regex-syntax",
|
|
281
|
+
"rusty-fork",
|
|
282
|
+
"tempfile",
|
|
283
|
+
"unarray",
|
|
284
|
+
]
|
|
285
|
+
|
|
286
|
+
[[package]]
|
|
287
|
+
name = "quick-error"
|
|
288
|
+
version = "1.2.3"
|
|
289
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
290
|
+
checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0"
|
|
291
|
+
|
|
292
|
+
[[package]]
|
|
293
|
+
name = "quote"
|
|
294
|
+
version = "1.0.47"
|
|
295
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
296
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
297
|
+
dependencies = [
|
|
298
|
+
"proc-macro2",
|
|
299
|
+
]
|
|
300
|
+
|
|
301
|
+
[[package]]
|
|
302
|
+
name = "r-efi"
|
|
303
|
+
version = "6.0.0"
|
|
304
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
305
|
+
checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
|
|
306
|
+
|
|
307
|
+
[[package]]
|
|
308
|
+
name = "rand"
|
|
309
|
+
version = "0.10.3"
|
|
310
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
311
|
+
checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af"
|
|
312
|
+
dependencies = [
|
|
313
|
+
"getrandom",
|
|
314
|
+
"rand_core",
|
|
315
|
+
]
|
|
316
|
+
|
|
317
|
+
[[package]]
|
|
318
|
+
name = "rand_core"
|
|
319
|
+
version = "0.10.1"
|
|
320
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
321
|
+
checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"
|
|
322
|
+
|
|
323
|
+
[[package]]
|
|
324
|
+
name = "rand_xorshift"
|
|
325
|
+
version = "0.5.0"
|
|
326
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
327
|
+
checksum = "60aa6af80be32871323012e02e6e65f8a7cc7890931ae421d217ad8fe0df2ccf"
|
|
328
|
+
dependencies = [
|
|
329
|
+
"rand_core",
|
|
330
|
+
]
|
|
331
|
+
|
|
332
|
+
[[package]]
|
|
333
|
+
name = "regex-syntax"
|
|
334
|
+
version = "0.8.11"
|
|
335
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
336
|
+
checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
|
|
337
|
+
|
|
338
|
+
[[package]]
|
|
339
|
+
name = "rustix"
|
|
340
|
+
version = "1.1.5"
|
|
341
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
342
|
+
checksum = "891efababe418670775f199f0d233d84843c227a0949a883ce15b37c78d6629d"
|
|
343
|
+
dependencies = [
|
|
344
|
+
"bitflags",
|
|
345
|
+
"errno",
|
|
346
|
+
"libc",
|
|
347
|
+
"linux-raw-sys",
|
|
348
|
+
"windows-sys",
|
|
349
|
+
]
|
|
350
|
+
|
|
351
|
+
[[package]]
|
|
352
|
+
name = "rusty-fork"
|
|
353
|
+
version = "0.3.1"
|
|
354
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
355
|
+
checksum = "cc6bf79ff24e648f6da1f8d1f011e9cac26491b619e6b9280f2b47f1774e6ee2"
|
|
356
|
+
dependencies = [
|
|
357
|
+
"fnv",
|
|
358
|
+
"quick-error",
|
|
359
|
+
"tempfile",
|
|
360
|
+
"wait-timeout",
|
|
361
|
+
]
|
|
362
|
+
|
|
363
|
+
[[package]]
|
|
364
|
+
name = "serde"
|
|
365
|
+
version = "1.0.229"
|
|
366
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
367
|
+
checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
|
|
368
|
+
dependencies = [
|
|
369
|
+
"serde_core",
|
|
370
|
+
"serde_derive",
|
|
371
|
+
]
|
|
372
|
+
|
|
373
|
+
[[package]]
|
|
374
|
+
name = "serde_core"
|
|
375
|
+
version = "1.0.229"
|
|
376
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
377
|
+
checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
|
|
378
|
+
dependencies = [
|
|
379
|
+
"serde_derive",
|
|
380
|
+
]
|
|
381
|
+
|
|
382
|
+
[[package]]
|
|
383
|
+
name = "serde_derive"
|
|
384
|
+
version = "1.0.229"
|
|
385
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
386
|
+
checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
|
|
387
|
+
dependencies = [
|
|
388
|
+
"proc-macro2",
|
|
389
|
+
"quote",
|
|
390
|
+
"syn",
|
|
391
|
+
]
|
|
392
|
+
|
|
393
|
+
[[package]]
|
|
394
|
+
name = "serde_spanned"
|
|
395
|
+
version = "1.1.2"
|
|
396
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
397
|
+
checksum = "4e7523beb55eece201a2356bee0bbca0d1ab466c14c07703b2e0ee6d42cb0c2c"
|
|
398
|
+
dependencies = [
|
|
399
|
+
"serde_core",
|
|
400
|
+
]
|
|
401
|
+
|
|
402
|
+
[[package]]
|
|
403
|
+
name = "similar"
|
|
404
|
+
version = "2.7.0"
|
|
405
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
406
|
+
checksum = "bbbb5d9659141646ae647b42fe094daf6c6192d1620870b449d9557f748b2daa"
|
|
407
|
+
|
|
408
|
+
[[package]]
|
|
409
|
+
name = "syn"
|
|
410
|
+
version = "3.0.9"
|
|
411
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
412
|
+
checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
|
|
413
|
+
dependencies = [
|
|
414
|
+
"proc-macro2",
|
|
415
|
+
"quote",
|
|
416
|
+
"unicode-ident",
|
|
417
|
+
]
|
|
418
|
+
|
|
419
|
+
[[package]]
|
|
420
|
+
name = "tempfile"
|
|
421
|
+
version = "3.27.0"
|
|
422
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
423
|
+
checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
|
|
424
|
+
dependencies = [
|
|
425
|
+
"fastrand",
|
|
426
|
+
"getrandom",
|
|
427
|
+
"once_cell",
|
|
428
|
+
"rustix",
|
|
429
|
+
"windows-sys",
|
|
430
|
+
]
|
|
431
|
+
|
|
432
|
+
[[package]]
|
|
433
|
+
name = "toml"
|
|
434
|
+
version = "1.1.8+spec-1.1.0"
|
|
435
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
436
|
+
checksum = "20489e00e4d8741d6be680764cc12e270655e375a20d1011e844a9c3379e678d"
|
|
437
|
+
dependencies = [
|
|
438
|
+
"serde_core",
|
|
439
|
+
"serde_spanned",
|
|
440
|
+
"toml_datetime",
|
|
441
|
+
"toml_parser",
|
|
442
|
+
"winnow",
|
|
443
|
+
]
|
|
444
|
+
|
|
445
|
+
[[package]]
|
|
446
|
+
name = "toml_datetime"
|
|
447
|
+
version = "1.1.2+spec-1.1.0"
|
|
448
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
449
|
+
checksum = "2b86d767906c6c42421dcba507eb9d203e779497710a47782a224bb871653053"
|
|
450
|
+
dependencies = [
|
|
451
|
+
"serde_core",
|
|
452
|
+
]
|
|
453
|
+
|
|
454
|
+
[[package]]
|
|
455
|
+
name = "toml_edit"
|
|
456
|
+
version = "0.25.17+spec-1.1.0"
|
|
457
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
458
|
+
checksum = "e3641d5bbb5349a79e1020a242d251efbc546ad8048d133958323ce9c40a9c9c"
|
|
459
|
+
dependencies = [
|
|
460
|
+
"indexmap",
|
|
461
|
+
"toml_datetime",
|
|
462
|
+
"toml_parser",
|
|
463
|
+
"winnow",
|
|
464
|
+
]
|
|
465
|
+
|
|
466
|
+
[[package]]
|
|
467
|
+
name = "toml_parser"
|
|
468
|
+
version = "1.1.5+spec-1.1.0"
|
|
469
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
470
|
+
checksum = "baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c"
|
|
471
|
+
dependencies = [
|
|
472
|
+
"winnow",
|
|
473
|
+
]
|
|
474
|
+
|
|
475
|
+
[[package]]
|
|
476
|
+
name = "unarray"
|
|
477
|
+
version = "0.1.4"
|
|
478
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
479
|
+
checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94"
|
|
480
|
+
|
|
481
|
+
[[package]]
|
|
482
|
+
name = "unicode-general-category"
|
|
483
|
+
version = "1.1.0"
|
|
484
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
485
|
+
checksum = "0b993bddc193ae5bd0d623b49ec06ac3e9312875fdae725a975c51db1cc1677f"
|
|
486
|
+
|
|
487
|
+
[[package]]
|
|
488
|
+
name = "unicode-ident"
|
|
489
|
+
version = "1.0.27"
|
|
490
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
491
|
+
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|
|
492
|
+
|
|
493
|
+
[[package]]
|
|
494
|
+
name = "wait-timeout"
|
|
495
|
+
version = "0.2.1"
|
|
496
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
497
|
+
checksum = "09ac3b126d3914f9849036f826e054cbabdc8519970b8998ddaf3b5bd3c65f11"
|
|
498
|
+
dependencies = [
|
|
499
|
+
"libc",
|
|
500
|
+
]
|
|
501
|
+
|
|
502
|
+
[[package]]
|
|
503
|
+
name = "windows-link"
|
|
504
|
+
version = "0.2.1"
|
|
505
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
506
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
|
507
|
+
|
|
508
|
+
[[package]]
|
|
509
|
+
name = "windows-sys"
|
|
510
|
+
version = "0.61.2"
|
|
511
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
512
|
+
checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
|
|
513
|
+
dependencies = [
|
|
514
|
+
"windows-link",
|
|
515
|
+
]
|
|
516
|
+
|
|
517
|
+
[[package]]
|
|
518
|
+
name = "winnow"
|
|
519
|
+
version = "1.0.4"
|
|
520
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
521
|
+
checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81"
|
|
522
|
+
dependencies = [
|
|
523
|
+
"memchr",
|
|
524
|
+
]
|
jsonvet-2.0.0/Cargo.toml
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
[workspace]
|
|
2
|
+
members = ["crates/jsonvet", "crates/jsonvet-cli"]
|
|
3
|
+
# cargo-fuzz needs nightly; the fuzz crate builds on its own.
|
|
4
|
+
exclude = ["fuzz"]
|
|
5
|
+
resolver = "3"
|
|
6
|
+
|
|
7
|
+
[workspace.package]
|
|
8
|
+
version = "2.0.0"
|
|
9
|
+
edition = "2024"
|
|
10
|
+
# 1.88 for let-chains in `if` conditions.
|
|
11
|
+
rust-version = "1.88"
|
|
12
|
+
license = "MIT"
|
|
13
|
+
authors = ["Simon van Lierde"]
|
|
14
|
+
repository = "https://github.com/simonvanlierde/jsonvet"
|
|
15
|
+
homepage = "https://github.com/simonvanlierde/jsonvet"
|
|
16
|
+
keywords = ["json", "json5", "jsonc", "lint", "pre-commit"]
|
|
17
|
+
categories = ["command-line-utilities", "development-tools", "parser-implementations"]
|
|
18
|
+
|
|
19
|
+
[workspace.lints.rust]
|
|
20
|
+
unsafe_code = "forbid"
|
|
21
|
+
unreachable_pub = "warn"
|
|
22
|
+
missing_docs = "warn"
|
|
23
|
+
|
|
24
|
+
[workspace.lints.clippy]
|
|
25
|
+
# Priority -1 so the single-lint levels below override the group.
|
|
26
|
+
pedantic = { level = "warn", priority = -1 }
|
|
27
|
+
allow_attributes_without_reason = "warn"
|
|
28
|
+
dbg_macro = "warn"
|
|
29
|
+
todo = "warn"
|
|
30
|
+
unimplemented = "warn"
|
|
31
|
+
unwrap_used = "warn"
|
|
32
|
+
expect_used = "warn"
|
|
33
|
+
# Pedantic's noisiest: it wants #[must_use] on nearly every function.
|
|
34
|
+
must_use_candidate = "allow"
|
|
35
|
+
|
|
36
|
+
[profile.release]
|
|
37
|
+
lto = "fat"
|
|
38
|
+
codegen-units = 1
|
|
39
|
+
panic = "abort"
|
|
40
|
+
strip = true
|