@gjsify/oxfmt-native 0.4.44
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.
- package/README.md +45 -0
- package/lib/esm/_virtual/_rolldown/runtime.js +1 -0
- package/lib/esm/index.js +1 -0
- package/lib/types/index.d.ts +46 -0
- package/meson.build +87 -0
- package/package.json +74 -0
- package/prebuilds/linux-x86_64/GjsifyOxfmt-1.0.gir +65 -0
- package/prebuilds/linux-x86_64/GjsifyOxfmt-1.0.typelib +0 -0
- package/prebuilds/linux-x86_64/libgjsify_oxfmt.so +0 -0
- package/prebuilds/linux-x86_64/libgjsifyoxfmt.so +0 -0
- package/src/rust/Cargo.lock +613 -0
- package/src/rust/Cargo.toml +38 -0
- package/src/rust/src/lib.rs +274 -0
- package/src/vala/gjsify-oxfmt-glue.c +63 -0
- package/src/vala/gjsify-oxfmt-glue.h +55 -0
- package/src/vala/gjsify-oxfmt.h +46 -0
- package/src/vala/oxfmt.vala +79 -0
|
@@ -0,0 +1,613 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "allocator-api2"
|
|
7
|
+
version = "0.2.21"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "arrayvec"
|
|
13
|
+
version = "0.7.6"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"
|
|
16
|
+
|
|
17
|
+
[[package]]
|
|
18
|
+
name = "autocfg"
|
|
19
|
+
version = "1.5.1"
|
|
20
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
21
|
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
22
|
+
|
|
23
|
+
[[package]]
|
|
24
|
+
name = "bitflags"
|
|
25
|
+
version = "2.13.0"
|
|
26
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
27
|
+
checksum = "b4388bee8683e3d04af747c73422af53102d2bd24d9eadb6cbc100baef4b43f8"
|
|
28
|
+
|
|
29
|
+
[[package]]
|
|
30
|
+
name = "castaway"
|
|
31
|
+
version = "0.2.4"
|
|
32
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
33
|
+
checksum = "dec551ab6e7578819132c713a93c022a05d60159dc86e7a7050223577484c55a"
|
|
34
|
+
dependencies = [
|
|
35
|
+
"rustversion",
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
[[package]]
|
|
39
|
+
name = "cfg-if"
|
|
40
|
+
version = "1.0.4"
|
|
41
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
42
|
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
43
|
+
|
|
44
|
+
[[package]]
|
|
45
|
+
name = "compact_str"
|
|
46
|
+
version = "0.9.1"
|
|
47
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
48
|
+
checksum = "9dfdd1c2274d9aa354115b09dc9a901d6c5576818cdf70d14cae2bdb47df00ab"
|
|
49
|
+
dependencies = [
|
|
50
|
+
"castaway",
|
|
51
|
+
"cfg-if",
|
|
52
|
+
"itoa",
|
|
53
|
+
"rustversion",
|
|
54
|
+
"ryu",
|
|
55
|
+
"static_assertions",
|
|
56
|
+
]
|
|
57
|
+
|
|
58
|
+
[[package]]
|
|
59
|
+
name = "cow-utils"
|
|
60
|
+
version = "0.1.3"
|
|
61
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
62
|
+
checksum = "417bef24afe1460300965a25ff4a24b8b45ad011948302ec221e8a0a81eb2c79"
|
|
63
|
+
|
|
64
|
+
[[package]]
|
|
65
|
+
name = "dragonbox_ecma"
|
|
66
|
+
version = "0.1.12"
|
|
67
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
68
|
+
checksum = "fd8e701084c37e7ef62d3f9e453b618130cbc0ef3573847785952a3ac3f746bf"
|
|
69
|
+
|
|
70
|
+
[[package]]
|
|
71
|
+
name = "fast-glob"
|
|
72
|
+
version = "1.0.1"
|
|
73
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
74
|
+
checksum = "3b9e81515b0279bf618200fd15d132e7195d2048fb46eed6f0f3c10cbc068266"
|
|
75
|
+
dependencies = [
|
|
76
|
+
"arrayvec",
|
|
77
|
+
]
|
|
78
|
+
|
|
79
|
+
[[package]]
|
|
80
|
+
name = "fastrand"
|
|
81
|
+
version = "2.4.1"
|
|
82
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
83
|
+
checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6"
|
|
84
|
+
|
|
85
|
+
[[package]]
|
|
86
|
+
name = "gjsify_oxfmt"
|
|
87
|
+
version = "0.1.0"
|
|
88
|
+
dependencies = [
|
|
89
|
+
"oxc_allocator",
|
|
90
|
+
"oxc_formatter",
|
|
91
|
+
"oxc_parser",
|
|
92
|
+
"oxc_span",
|
|
93
|
+
]
|
|
94
|
+
|
|
95
|
+
[[package]]
|
|
96
|
+
name = "hashbrown"
|
|
97
|
+
version = "0.17.1"
|
|
98
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
99
|
+
checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
|
|
100
|
+
dependencies = [
|
|
101
|
+
"allocator-api2",
|
|
102
|
+
]
|
|
103
|
+
|
|
104
|
+
[[package]]
|
|
105
|
+
name = "itoa"
|
|
106
|
+
version = "1.0.18"
|
|
107
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
108
|
+
checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
|
|
109
|
+
|
|
110
|
+
[[package]]
|
|
111
|
+
name = "markdown"
|
|
112
|
+
version = "1.0.0"
|
|
113
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
114
|
+
checksum = "a5cab8f2cadc416a82d2e783a1946388b31654d391d1c7d92cc1f03e295b1deb"
|
|
115
|
+
dependencies = [
|
|
116
|
+
"unicode-id",
|
|
117
|
+
]
|
|
118
|
+
|
|
119
|
+
[[package]]
|
|
120
|
+
name = "memchr"
|
|
121
|
+
version = "2.8.1"
|
|
122
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
123
|
+
checksum = "6b947ae49db0d222b1dbc6b113ce7248a3fc3a6ca21b696717bfc000ba4484d8"
|
|
124
|
+
|
|
125
|
+
[[package]]
|
|
126
|
+
name = "natord"
|
|
127
|
+
version = "1.0.9"
|
|
128
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
129
|
+
checksum = "308d96db8debc727c3fd9744aac51751243420e46edf401010908da7f8d5e57c"
|
|
130
|
+
|
|
131
|
+
[[package]]
|
|
132
|
+
name = "nodejs-built-in-modules"
|
|
133
|
+
version = "1.0.0"
|
|
134
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
135
|
+
checksum = "a5eb86a92577833b75522336f210c49d9ebd7dd55a44d80a92e68c668a75f27c"
|
|
136
|
+
|
|
137
|
+
[[package]]
|
|
138
|
+
name = "nonmax"
|
|
139
|
+
version = "0.5.5"
|
|
140
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
141
|
+
checksum = "610a5acd306ec67f907abe5567859a3c693fb9886eb1f012ab8f2a47bef3db51"
|
|
142
|
+
|
|
143
|
+
[[package]]
|
|
144
|
+
name = "num-bigint"
|
|
145
|
+
version = "0.4.6"
|
|
146
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
147
|
+
checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9"
|
|
148
|
+
dependencies = [
|
|
149
|
+
"num-integer",
|
|
150
|
+
"num-traits",
|
|
151
|
+
]
|
|
152
|
+
|
|
153
|
+
[[package]]
|
|
154
|
+
name = "num-integer"
|
|
155
|
+
version = "0.1.46"
|
|
156
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
157
|
+
checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
|
|
158
|
+
dependencies = [
|
|
159
|
+
"num-traits",
|
|
160
|
+
]
|
|
161
|
+
|
|
162
|
+
[[package]]
|
|
163
|
+
name = "num-traits"
|
|
164
|
+
version = "0.2.19"
|
|
165
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
166
|
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
|
167
|
+
dependencies = [
|
|
168
|
+
"autocfg",
|
|
169
|
+
]
|
|
170
|
+
|
|
171
|
+
[[package]]
|
|
172
|
+
name = "owo-colors"
|
|
173
|
+
version = "4.3.0"
|
|
174
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
175
|
+
checksum = "d211803b9b6b570f68772237e415a029d5a50c65d382910b879fb19d3271f94d"
|
|
176
|
+
|
|
177
|
+
[[package]]
|
|
178
|
+
name = "oxc-miette"
|
|
179
|
+
version = "2.7.1"
|
|
180
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
181
|
+
checksum = "4356a61f2ed4c9b3610245215fbf48970eb277126919f87db9d0efa93a74245c"
|
|
182
|
+
dependencies = [
|
|
183
|
+
"cfg-if",
|
|
184
|
+
"owo-colors",
|
|
185
|
+
"oxc-miette-derive",
|
|
186
|
+
"textwrap",
|
|
187
|
+
"thiserror",
|
|
188
|
+
"unicode-segmentation",
|
|
189
|
+
"unicode-width",
|
|
190
|
+
]
|
|
191
|
+
|
|
192
|
+
[[package]]
|
|
193
|
+
name = "oxc-miette-derive"
|
|
194
|
+
version = "2.7.1"
|
|
195
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
196
|
+
checksum = "b237422b014f8f8fff75bb9379e697d13f8d57551a22c88bebb39f073c1bf696"
|
|
197
|
+
dependencies = [
|
|
198
|
+
"proc-macro2",
|
|
199
|
+
"quote",
|
|
200
|
+
"syn",
|
|
201
|
+
]
|
|
202
|
+
|
|
203
|
+
[[package]]
|
|
204
|
+
name = "oxc_allocator"
|
|
205
|
+
version = "0.132.0"
|
|
206
|
+
dependencies = [
|
|
207
|
+
"allocator-api2",
|
|
208
|
+
"hashbrown",
|
|
209
|
+
"oxc_data_structures",
|
|
210
|
+
"rustc-hash",
|
|
211
|
+
]
|
|
212
|
+
|
|
213
|
+
[[package]]
|
|
214
|
+
name = "oxc_ast"
|
|
215
|
+
version = "0.132.0"
|
|
216
|
+
dependencies = [
|
|
217
|
+
"bitflags",
|
|
218
|
+
"oxc_allocator",
|
|
219
|
+
"oxc_ast_macros",
|
|
220
|
+
"oxc_data_structures",
|
|
221
|
+
"oxc_diagnostics",
|
|
222
|
+
"oxc_estree",
|
|
223
|
+
"oxc_regular_expression",
|
|
224
|
+
"oxc_span",
|
|
225
|
+
"oxc_str",
|
|
226
|
+
"oxc_syntax",
|
|
227
|
+
]
|
|
228
|
+
|
|
229
|
+
[[package]]
|
|
230
|
+
name = "oxc_ast_macros"
|
|
231
|
+
version = "0.132.0"
|
|
232
|
+
dependencies = [
|
|
233
|
+
"phf",
|
|
234
|
+
"proc-macro2",
|
|
235
|
+
"quote",
|
|
236
|
+
"syn",
|
|
237
|
+
]
|
|
238
|
+
|
|
239
|
+
[[package]]
|
|
240
|
+
name = "oxc_data_structures"
|
|
241
|
+
version = "0.132.0"
|
|
242
|
+
|
|
243
|
+
[[package]]
|
|
244
|
+
name = "oxc_diagnostics"
|
|
245
|
+
version = "0.132.0"
|
|
246
|
+
dependencies = [
|
|
247
|
+
"cow-utils",
|
|
248
|
+
"oxc-miette",
|
|
249
|
+
"percent-encoding",
|
|
250
|
+
]
|
|
251
|
+
|
|
252
|
+
[[package]]
|
|
253
|
+
name = "oxc_ecmascript"
|
|
254
|
+
version = "0.132.0"
|
|
255
|
+
dependencies = [
|
|
256
|
+
"cow-utils",
|
|
257
|
+
"num-bigint",
|
|
258
|
+
"num-traits",
|
|
259
|
+
"oxc_allocator",
|
|
260
|
+
"oxc_ast",
|
|
261
|
+
"oxc_regular_expression",
|
|
262
|
+
"oxc_span",
|
|
263
|
+
"oxc_syntax",
|
|
264
|
+
]
|
|
265
|
+
|
|
266
|
+
[[package]]
|
|
267
|
+
name = "oxc_estree"
|
|
268
|
+
version = "0.132.0"
|
|
269
|
+
|
|
270
|
+
[[package]]
|
|
271
|
+
name = "oxc_formatter"
|
|
272
|
+
version = "0.51.0"
|
|
273
|
+
dependencies = [
|
|
274
|
+
"cow-utils",
|
|
275
|
+
"fast-glob",
|
|
276
|
+
"itoa",
|
|
277
|
+
"markdown",
|
|
278
|
+
"natord",
|
|
279
|
+
"nodejs-built-in-modules",
|
|
280
|
+
"oxc_allocator",
|
|
281
|
+
"oxc_ast",
|
|
282
|
+
"oxc_data_structures",
|
|
283
|
+
"oxc_jsdoc",
|
|
284
|
+
"oxc_parser",
|
|
285
|
+
"oxc_span",
|
|
286
|
+
"oxc_str",
|
|
287
|
+
"oxc_syntax",
|
|
288
|
+
"phf",
|
|
289
|
+
"rustc-hash",
|
|
290
|
+
"smallvec",
|
|
291
|
+
"unicode-width",
|
|
292
|
+
]
|
|
293
|
+
|
|
294
|
+
[[package]]
|
|
295
|
+
name = "oxc_index"
|
|
296
|
+
version = "4.1.0"
|
|
297
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
298
|
+
checksum = "eb3e6120999627ec9703025eab7c9f410ebb7e95557632a8902ca48210416c2b"
|
|
299
|
+
dependencies = [
|
|
300
|
+
"nonmax",
|
|
301
|
+
"serde",
|
|
302
|
+
]
|
|
303
|
+
|
|
304
|
+
[[package]]
|
|
305
|
+
name = "oxc_jsdoc"
|
|
306
|
+
version = "0.132.0"
|
|
307
|
+
dependencies = [
|
|
308
|
+
"oxc_ast",
|
|
309
|
+
"oxc_span",
|
|
310
|
+
"rustc-hash",
|
|
311
|
+
]
|
|
312
|
+
|
|
313
|
+
[[package]]
|
|
314
|
+
name = "oxc_parser"
|
|
315
|
+
version = "0.132.0"
|
|
316
|
+
dependencies = [
|
|
317
|
+
"bitflags",
|
|
318
|
+
"cow-utils",
|
|
319
|
+
"memchr",
|
|
320
|
+
"num-bigint",
|
|
321
|
+
"num-traits",
|
|
322
|
+
"oxc_allocator",
|
|
323
|
+
"oxc_ast",
|
|
324
|
+
"oxc_data_structures",
|
|
325
|
+
"oxc_diagnostics",
|
|
326
|
+
"oxc_ecmascript",
|
|
327
|
+
"oxc_regular_expression",
|
|
328
|
+
"oxc_span",
|
|
329
|
+
"oxc_str",
|
|
330
|
+
"oxc_syntax",
|
|
331
|
+
"rustc-hash",
|
|
332
|
+
"seq-macro",
|
|
333
|
+
]
|
|
334
|
+
|
|
335
|
+
[[package]]
|
|
336
|
+
name = "oxc_regular_expression"
|
|
337
|
+
version = "0.132.0"
|
|
338
|
+
dependencies = [
|
|
339
|
+
"bitflags",
|
|
340
|
+
"oxc_allocator",
|
|
341
|
+
"oxc_ast_macros",
|
|
342
|
+
"oxc_diagnostics",
|
|
343
|
+
"oxc_span",
|
|
344
|
+
"oxc_str",
|
|
345
|
+
"phf",
|
|
346
|
+
"rustc-hash",
|
|
347
|
+
"unicode-id-start",
|
|
348
|
+
]
|
|
349
|
+
|
|
350
|
+
[[package]]
|
|
351
|
+
name = "oxc_span"
|
|
352
|
+
version = "0.132.0"
|
|
353
|
+
dependencies = [
|
|
354
|
+
"compact_str",
|
|
355
|
+
"oxc-miette",
|
|
356
|
+
"oxc_allocator",
|
|
357
|
+
"oxc_ast_macros",
|
|
358
|
+
"oxc_estree",
|
|
359
|
+
"oxc_str",
|
|
360
|
+
]
|
|
361
|
+
|
|
362
|
+
[[package]]
|
|
363
|
+
name = "oxc_str"
|
|
364
|
+
version = "0.132.0"
|
|
365
|
+
dependencies = [
|
|
366
|
+
"compact_str",
|
|
367
|
+
"hashbrown",
|
|
368
|
+
"oxc_allocator",
|
|
369
|
+
"oxc_estree",
|
|
370
|
+
]
|
|
371
|
+
|
|
372
|
+
[[package]]
|
|
373
|
+
name = "oxc_syntax"
|
|
374
|
+
version = "0.132.0"
|
|
375
|
+
dependencies = [
|
|
376
|
+
"bitflags",
|
|
377
|
+
"cow-utils",
|
|
378
|
+
"dragonbox_ecma",
|
|
379
|
+
"nonmax",
|
|
380
|
+
"oxc_allocator",
|
|
381
|
+
"oxc_ast_macros",
|
|
382
|
+
"oxc_estree",
|
|
383
|
+
"oxc_index",
|
|
384
|
+
"oxc_span",
|
|
385
|
+
"oxc_str",
|
|
386
|
+
"phf",
|
|
387
|
+
"unicode-id-start",
|
|
388
|
+
]
|
|
389
|
+
|
|
390
|
+
[[package]]
|
|
391
|
+
name = "percent-encoding"
|
|
392
|
+
version = "2.3.2"
|
|
393
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
394
|
+
checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
|
|
395
|
+
|
|
396
|
+
[[package]]
|
|
397
|
+
name = "phf"
|
|
398
|
+
version = "0.13.1"
|
|
399
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
400
|
+
checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf"
|
|
401
|
+
dependencies = [
|
|
402
|
+
"phf_macros",
|
|
403
|
+
"phf_shared",
|
|
404
|
+
"serde",
|
|
405
|
+
]
|
|
406
|
+
|
|
407
|
+
[[package]]
|
|
408
|
+
name = "phf_generator"
|
|
409
|
+
version = "0.13.1"
|
|
410
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
411
|
+
checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737"
|
|
412
|
+
dependencies = [
|
|
413
|
+
"fastrand",
|
|
414
|
+
"phf_shared",
|
|
415
|
+
]
|
|
416
|
+
|
|
417
|
+
[[package]]
|
|
418
|
+
name = "phf_macros"
|
|
419
|
+
version = "0.13.1"
|
|
420
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
421
|
+
checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef"
|
|
422
|
+
dependencies = [
|
|
423
|
+
"phf_generator",
|
|
424
|
+
"phf_shared",
|
|
425
|
+
"proc-macro2",
|
|
426
|
+
"quote",
|
|
427
|
+
"syn",
|
|
428
|
+
]
|
|
429
|
+
|
|
430
|
+
[[package]]
|
|
431
|
+
name = "phf_shared"
|
|
432
|
+
version = "0.13.1"
|
|
433
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
434
|
+
checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266"
|
|
435
|
+
dependencies = [
|
|
436
|
+
"siphasher",
|
|
437
|
+
]
|
|
438
|
+
|
|
439
|
+
[[package]]
|
|
440
|
+
name = "proc-macro2"
|
|
441
|
+
version = "1.0.106"
|
|
442
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
443
|
+
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
|
444
|
+
dependencies = [
|
|
445
|
+
"unicode-ident",
|
|
446
|
+
]
|
|
447
|
+
|
|
448
|
+
[[package]]
|
|
449
|
+
name = "quote"
|
|
450
|
+
version = "1.0.45"
|
|
451
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
452
|
+
checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
|
|
453
|
+
dependencies = [
|
|
454
|
+
"proc-macro2",
|
|
455
|
+
]
|
|
456
|
+
|
|
457
|
+
[[package]]
|
|
458
|
+
name = "rustc-hash"
|
|
459
|
+
version = "2.1.2"
|
|
460
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
461
|
+
checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe"
|
|
462
|
+
|
|
463
|
+
[[package]]
|
|
464
|
+
name = "rustversion"
|
|
465
|
+
version = "1.0.22"
|
|
466
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
467
|
+
checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
|
|
468
|
+
|
|
469
|
+
[[package]]
|
|
470
|
+
name = "ryu"
|
|
471
|
+
version = "1.0.23"
|
|
472
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
473
|
+
checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
|
|
474
|
+
|
|
475
|
+
[[package]]
|
|
476
|
+
name = "seq-macro"
|
|
477
|
+
version = "0.3.6"
|
|
478
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
479
|
+
checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc"
|
|
480
|
+
|
|
481
|
+
[[package]]
|
|
482
|
+
name = "serde"
|
|
483
|
+
version = "1.0.228"
|
|
484
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
485
|
+
checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
|
|
486
|
+
dependencies = [
|
|
487
|
+
"serde_core",
|
|
488
|
+
]
|
|
489
|
+
|
|
490
|
+
[[package]]
|
|
491
|
+
name = "serde_core"
|
|
492
|
+
version = "1.0.228"
|
|
493
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
494
|
+
checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
|
|
495
|
+
dependencies = [
|
|
496
|
+
"serde_derive",
|
|
497
|
+
]
|
|
498
|
+
|
|
499
|
+
[[package]]
|
|
500
|
+
name = "serde_derive"
|
|
501
|
+
version = "1.0.228"
|
|
502
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
503
|
+
checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
|
|
504
|
+
dependencies = [
|
|
505
|
+
"proc-macro2",
|
|
506
|
+
"quote",
|
|
507
|
+
"syn",
|
|
508
|
+
]
|
|
509
|
+
|
|
510
|
+
[[package]]
|
|
511
|
+
name = "siphasher"
|
|
512
|
+
version = "1.0.3"
|
|
513
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
514
|
+
checksum = "8ee5873ec9cce0195efcb7a4e9507a04cd49aec9c83d0389df45b1ef7ba2e649"
|
|
515
|
+
|
|
516
|
+
[[package]]
|
|
517
|
+
name = "smallvec"
|
|
518
|
+
version = "1.15.1"
|
|
519
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
520
|
+
checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
|
|
521
|
+
dependencies = [
|
|
522
|
+
"serde",
|
|
523
|
+
]
|
|
524
|
+
|
|
525
|
+
[[package]]
|
|
526
|
+
name = "smawk"
|
|
527
|
+
version = "0.3.2"
|
|
528
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
529
|
+
checksum = "b7c388c1b5e93756d0c740965c41e8822f866621d41acbdf6336a6a168f8840c"
|
|
530
|
+
|
|
531
|
+
[[package]]
|
|
532
|
+
name = "static_assertions"
|
|
533
|
+
version = "1.1.0"
|
|
534
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
535
|
+
checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
|
|
536
|
+
|
|
537
|
+
[[package]]
|
|
538
|
+
name = "syn"
|
|
539
|
+
version = "2.0.117"
|
|
540
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
541
|
+
checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
|
|
542
|
+
dependencies = [
|
|
543
|
+
"proc-macro2",
|
|
544
|
+
"quote",
|
|
545
|
+
"unicode-ident",
|
|
546
|
+
]
|
|
547
|
+
|
|
548
|
+
[[package]]
|
|
549
|
+
name = "textwrap"
|
|
550
|
+
version = "0.16.2"
|
|
551
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
552
|
+
checksum = "c13547615a44dc9c452a8a534638acdf07120d4b6847c8178705da06306a3057"
|
|
553
|
+
dependencies = [
|
|
554
|
+
"smawk",
|
|
555
|
+
"unicode-linebreak",
|
|
556
|
+
"unicode-width",
|
|
557
|
+
]
|
|
558
|
+
|
|
559
|
+
[[package]]
|
|
560
|
+
name = "thiserror"
|
|
561
|
+
version = "2.0.18"
|
|
562
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
563
|
+
checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
|
|
564
|
+
dependencies = [
|
|
565
|
+
"thiserror-impl",
|
|
566
|
+
]
|
|
567
|
+
|
|
568
|
+
[[package]]
|
|
569
|
+
name = "thiserror-impl"
|
|
570
|
+
version = "2.0.18"
|
|
571
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
572
|
+
checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
|
|
573
|
+
dependencies = [
|
|
574
|
+
"proc-macro2",
|
|
575
|
+
"quote",
|
|
576
|
+
"syn",
|
|
577
|
+
]
|
|
578
|
+
|
|
579
|
+
[[package]]
|
|
580
|
+
name = "unicode-id"
|
|
581
|
+
version = "0.3.6"
|
|
582
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
583
|
+
checksum = "70ba288e709927c043cbe476718d37be306be53fb1fafecd0dbe36d072be2580"
|
|
584
|
+
|
|
585
|
+
[[package]]
|
|
586
|
+
name = "unicode-id-start"
|
|
587
|
+
version = "1.4.0"
|
|
588
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
589
|
+
checksum = "81b79ad29b5e19de4260020f8919b443b2ef0277d242ce532ec7b7a2cc8b6007"
|
|
590
|
+
|
|
591
|
+
[[package]]
|
|
592
|
+
name = "unicode-ident"
|
|
593
|
+
version = "1.0.24"
|
|
594
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
595
|
+
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
|
596
|
+
|
|
597
|
+
[[package]]
|
|
598
|
+
name = "unicode-linebreak"
|
|
599
|
+
version = "0.1.5"
|
|
600
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
601
|
+
checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f"
|
|
602
|
+
|
|
603
|
+
[[package]]
|
|
604
|
+
name = "unicode-segmentation"
|
|
605
|
+
version = "1.13.3"
|
|
606
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
607
|
+
checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"
|
|
608
|
+
|
|
609
|
+
[[package]]
|
|
610
|
+
name = "unicode-width"
|
|
611
|
+
version = "0.2.2"
|
|
612
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
613
|
+
checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254"
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "gjsify_oxfmt"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
publish = false
|
|
6
|
+
|
|
7
|
+
[lib]
|
|
8
|
+
# cdylib for the FFI .so; rlib so `cargo test` can build the unit-test harness
|
|
9
|
+
# against the pure-Rust `format_impl` core.
|
|
10
|
+
crate-type = ["cdylib", "rlib"]
|
|
11
|
+
|
|
12
|
+
# NOTE on dependency resolution
|
|
13
|
+
# ─────────────────────────────
|
|
14
|
+
# oxc's formatter crates (`oxc_formatter`, the `oxfmt` app crate) are NOT
|
|
15
|
+
# usable from crates.io — all published `oxc_formatter` versions were yanked
|
|
16
|
+
# (last 0.4.0, 2023) and `oxfmt` is `publish = false`. The current formatter
|
|
17
|
+
# lives only in-tree, so — exactly like @gjsify/rolldown-native builds
|
|
18
|
+
# against refs/rolldown — we path-dep into the refs/oxc submodule (pinned to
|
|
19
|
+
# the `oxfmt_v0.54.0` rev that the npm `oxfmt@0.54.0` ships). Cargo locates
|
|
20
|
+
# each crate's workspace root (refs/oxc/Cargo.toml) and resolves its
|
|
21
|
+
# `workspace = true` deps. Contributors need
|
|
22
|
+
# `git submodule update --init refs/oxc` to build the cdylib from source;
|
|
23
|
+
# downstream npm consumers only ever consume the prebuilt .so + .typelib.
|
|
24
|
+
#
|
|
25
|
+
# `oxfmt` with `default-features = false` disables the `napi` feature — the
|
|
26
|
+
# Node-API host (ExternalFormatter, JS configs, LSP, stdin mode) — leaving
|
|
27
|
+
# the pure-Rust CLI core (`oxfmt::cli`) that the standalone `oxfmt` binary
|
|
28
|
+
# (apps/oxfmt/src/main.rs) is built from.
|
|
29
|
+
[dependencies]
|
|
30
|
+
oxc_allocator = { path = "../../../../../refs/oxc/crates/oxc_allocator" }
|
|
31
|
+
oxc_formatter = { path = "../../../../../refs/oxc/crates/oxc_formatter" }
|
|
32
|
+
oxc_span = { path = "../../../../../refs/oxc/crates/oxc_span" }
|
|
33
|
+
oxfmt = { path = "../../../../../refs/oxc/apps/oxfmt", default-features = false }
|
|
34
|
+
|
|
35
|
+
[profile.release]
|
|
36
|
+
lto = true
|
|
37
|
+
codegen-units = 1
|
|
38
|
+
strip = true
|