xre2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 55ca051b3f858164be0f5e79831c1ca4b7df267d4e3597f8c128db79524b4f0a
4
+ data.tar.gz: 0a2d988389268e3cac55d5970075111f74c110479bf1bfc0213b7ee989424872
5
+ SHA512:
6
+ metadata.gz: 0fc6f00f3d0283128e09b16bb61210f8de3e9f74f4605b730a36d2790f8a78a6adb2e461f089a585324663b03b98545bcffedfdf59f872f285a423f1cf9d08c0
7
+ data.tar.gz: ed746fbdf6a0da543a08a5b8259e34541d6feb92f46605a509a931b2419d0d6cefe70fff0cdea2163d4c0e1e153fa2833d3fa6e772160ce0e9d7306093459648
data/Cargo.lock ADDED
@@ -0,0 +1,675 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 3
4
+
5
+ [[package]]
6
+ name = "aho-corasick"
7
+ version = "1.1.3"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"
10
+ dependencies = [
11
+ "memchr",
12
+ ]
13
+
14
+ [[package]]
15
+ name = "ansi_term"
16
+ version = "0.12.1"
17
+ source = "registry+https://github.com/rust-lang/crates.io-index"
18
+ checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"
19
+ dependencies = [
20
+ "winapi",
21
+ ]
22
+
23
+ [[package]]
24
+ name = "atty"
25
+ version = "0.2.14"
26
+ source = "registry+https://github.com/rust-lang/crates.io-index"
27
+ checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
28
+ dependencies = [
29
+ "hermit-abi",
30
+ "libc",
31
+ "winapi",
32
+ ]
33
+
34
+ [[package]]
35
+ name = "bindgen"
36
+ version = "0.59.2"
37
+ source = "registry+https://github.com/rust-lang/crates.io-index"
38
+ checksum = "2bd2a9a458e8f4304c52c43ebb0cfbd520289f8379a52e329a38afda99bf8eb8"
39
+ dependencies = [
40
+ "bitflags 1.3.2",
41
+ "cexpr",
42
+ "clang-sys",
43
+ "clap",
44
+ "env_logger",
45
+ "lazy_static",
46
+ "lazycell",
47
+ "log",
48
+ "peeking_take_while",
49
+ "proc-macro2",
50
+ "quote",
51
+ "regex",
52
+ "rustc-hash",
53
+ "shlex",
54
+ "which",
55
+ ]
56
+
57
+ [[package]]
58
+ name = "bindgen"
59
+ version = "0.69.4"
60
+ source = "registry+https://github.com/rust-lang/crates.io-index"
61
+ checksum = "a00dc851838a2120612785d195287475a3ac45514741da670b735818822129a0"
62
+ dependencies = [
63
+ "bitflags 2.5.0",
64
+ "cexpr",
65
+ "clang-sys",
66
+ "itertools",
67
+ "lazy_static",
68
+ "lazycell",
69
+ "proc-macro2",
70
+ "quote",
71
+ "regex",
72
+ "rustc-hash",
73
+ "shlex",
74
+ "syn",
75
+ ]
76
+
77
+ [[package]]
78
+ name = "bit-set"
79
+ version = "0.5.3"
80
+ source = "registry+https://github.com/rust-lang/crates.io-index"
81
+ checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1"
82
+ dependencies = [
83
+ "bit-vec",
84
+ ]
85
+
86
+ [[package]]
87
+ name = "bit-vec"
88
+ version = "0.6.3"
89
+ source = "registry+https://github.com/rust-lang/crates.io-index"
90
+ checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb"
91
+
92
+ [[package]]
93
+ name = "bitflags"
94
+ version = "1.3.2"
95
+ source = "registry+https://github.com/rust-lang/crates.io-index"
96
+ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
97
+
98
+ [[package]]
99
+ name = "bitflags"
100
+ version = "2.5.0"
101
+ source = "registry+https://github.com/rust-lang/crates.io-index"
102
+ checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1"
103
+
104
+ [[package]]
105
+ name = "cc"
106
+ version = "1.0.90"
107
+ source = "registry+https://github.com/rust-lang/crates.io-index"
108
+ checksum = "8cd6604a82acf3039f1144f54b8eb34e91ffba622051189e71b781822d5ee1f5"
109
+ dependencies = [
110
+ "jobserver",
111
+ "libc",
112
+ ]
113
+
114
+ [[package]]
115
+ name = "cexpr"
116
+ version = "0.6.0"
117
+ source = "registry+https://github.com/rust-lang/crates.io-index"
118
+ checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
119
+ dependencies = [
120
+ "nom",
121
+ ]
122
+
123
+ [[package]]
124
+ name = "cfg-if"
125
+ version = "1.0.0"
126
+ source = "registry+https://github.com/rust-lang/crates.io-index"
127
+ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
128
+
129
+ [[package]]
130
+ name = "clang-sys"
131
+ version = "1.7.0"
132
+ source = "registry+https://github.com/rust-lang/crates.io-index"
133
+ checksum = "67523a3b4be3ce1989d607a828d036249522dd9c1c8de7f4dd2dae43a37369d1"
134
+ dependencies = [
135
+ "glob",
136
+ "libc",
137
+ "libloading",
138
+ ]
139
+
140
+ [[package]]
141
+ name = "clap"
142
+ version = "2.34.0"
143
+ source = "registry+https://github.com/rust-lang/crates.io-index"
144
+ checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c"
145
+ dependencies = [
146
+ "ansi_term",
147
+ "atty",
148
+ "bitflags 1.3.2",
149
+ "strsim",
150
+ "textwrap",
151
+ "unicode-width",
152
+ "vec_map",
153
+ ]
154
+
155
+ [[package]]
156
+ name = "either"
157
+ version = "1.10.0"
158
+ source = "registry+https://github.com/rust-lang/crates.io-index"
159
+ checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a"
160
+
161
+ [[package]]
162
+ name = "env_logger"
163
+ version = "0.9.3"
164
+ source = "registry+https://github.com/rust-lang/crates.io-index"
165
+ checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7"
166
+ dependencies = [
167
+ "atty",
168
+ "humantime",
169
+ "log",
170
+ "regex",
171
+ "termcolor",
172
+ ]
173
+
174
+ [[package]]
175
+ name = "errno"
176
+ version = "0.3.8"
177
+ source = "registry+https://github.com/rust-lang/crates.io-index"
178
+ checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245"
179
+ dependencies = [
180
+ "libc",
181
+ "windows-sys",
182
+ ]
183
+
184
+ [[package]]
185
+ name = "fancy-regex"
186
+ version = "0.13.0"
187
+ source = "registry+https://github.com/rust-lang/crates.io-index"
188
+ checksum = "531e46835a22af56d1e3b66f04844bed63158bc094a628bec1d321d9b4c44bf2"
189
+ dependencies = [
190
+ "bit-set",
191
+ "regex-automata",
192
+ "regex-syntax",
193
+ ]
194
+
195
+ [[package]]
196
+ name = "glob"
197
+ version = "0.3.1"
198
+ source = "registry+https://github.com/rust-lang/crates.io-index"
199
+ checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
200
+
201
+ [[package]]
202
+ name = "hermit-abi"
203
+ version = "0.1.19"
204
+ source = "registry+https://github.com/rust-lang/crates.io-index"
205
+ checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
206
+ dependencies = [
207
+ "libc",
208
+ ]
209
+
210
+ [[package]]
211
+ name = "home"
212
+ version = "0.5.9"
213
+ source = "registry+https://github.com/rust-lang/crates.io-index"
214
+ checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5"
215
+ dependencies = [
216
+ "windows-sys",
217
+ ]
218
+
219
+ [[package]]
220
+ name = "humantime"
221
+ version = "2.1.0"
222
+ source = "registry+https://github.com/rust-lang/crates.io-index"
223
+ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
224
+
225
+ [[package]]
226
+ name = "itertools"
227
+ version = "0.12.1"
228
+ source = "registry+https://github.com/rust-lang/crates.io-index"
229
+ checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"
230
+ dependencies = [
231
+ "either",
232
+ ]
233
+
234
+ [[package]]
235
+ name = "jobserver"
236
+ version = "0.1.28"
237
+ source = "registry+https://github.com/rust-lang/crates.io-index"
238
+ checksum = "ab46a6e9526ddef3ae7f787c06f0f2600639ba80ea3eade3d8e670a2230f51d6"
239
+ dependencies = [
240
+ "libc",
241
+ ]
242
+
243
+ [[package]]
244
+ name = "lazy_static"
245
+ version = "1.4.0"
246
+ source = "registry+https://github.com/rust-lang/crates.io-index"
247
+ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
248
+
249
+ [[package]]
250
+ name = "lazycell"
251
+ version = "1.3.0"
252
+ source = "registry+https://github.com/rust-lang/crates.io-index"
253
+ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
254
+
255
+ [[package]]
256
+ name = "libc"
257
+ version = "0.2.153"
258
+ source = "registry+https://github.com/rust-lang/crates.io-index"
259
+ checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd"
260
+
261
+ [[package]]
262
+ name = "libloading"
263
+ version = "0.8.3"
264
+ source = "registry+https://github.com/rust-lang/crates.io-index"
265
+ checksum = "0c2a198fb6b0eada2a8df47933734e6d35d350665a33a3593d7164fa52c75c19"
266
+ dependencies = [
267
+ "cfg-if",
268
+ "windows-targets",
269
+ ]
270
+
271
+ [[package]]
272
+ name = "linux-raw-sys"
273
+ version = "0.4.13"
274
+ source = "registry+https://github.com/rust-lang/crates.io-index"
275
+ checksum = "01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c"
276
+
277
+ [[package]]
278
+ name = "log"
279
+ version = "0.4.21"
280
+ source = "registry+https://github.com/rust-lang/crates.io-index"
281
+ checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c"
282
+
283
+ [[package]]
284
+ name = "magnus"
285
+ version = "0.6.2"
286
+ source = "registry+https://github.com/rust-lang/crates.io-index"
287
+ checksum = "4778544796676e8428e9c622460ebf284bea52d8b10db3aeb449d8b5e61b3a13"
288
+ dependencies = [
289
+ "magnus-macros",
290
+ "rb-sys",
291
+ "rb-sys-env",
292
+ "seq-macro",
293
+ ]
294
+
295
+ [[package]]
296
+ name = "magnus-macros"
297
+ version = "0.6.0"
298
+ source = "registry+https://github.com/rust-lang/crates.io-index"
299
+ checksum = "5968c820e2960565f647819f5928a42d6e874551cab9d88d75e3e0660d7f71e3"
300
+ dependencies = [
301
+ "proc-macro2",
302
+ "quote",
303
+ "syn",
304
+ ]
305
+
306
+ [[package]]
307
+ name = "memchr"
308
+ version = "2.7.2"
309
+ source = "registry+https://github.com/rust-lang/crates.io-index"
310
+ checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d"
311
+
312
+ [[package]]
313
+ name = "minimal-lexical"
314
+ version = "0.2.1"
315
+ source = "registry+https://github.com/rust-lang/crates.io-index"
316
+ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
317
+
318
+ [[package]]
319
+ name = "nom"
320
+ version = "7.1.3"
321
+ source = "registry+https://github.com/rust-lang/crates.io-index"
322
+ checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
323
+ dependencies = [
324
+ "memchr",
325
+ "minimal-lexical",
326
+ ]
327
+
328
+ [[package]]
329
+ name = "once_cell"
330
+ version = "1.19.0"
331
+ source = "registry+https://github.com/rust-lang/crates.io-index"
332
+ checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
333
+
334
+ [[package]]
335
+ name = "onig"
336
+ version = "6.4.0"
337
+ source = "registry+https://github.com/rust-lang/crates.io-index"
338
+ checksum = "8c4b31c8722ad9171c6d77d3557db078cab2bd50afcc9d09c8b315c59df8ca4f"
339
+ dependencies = [
340
+ "bitflags 1.3.2",
341
+ "libc",
342
+ "once_cell",
343
+ "onig_sys",
344
+ ]
345
+
346
+ [[package]]
347
+ name = "onig_sys"
348
+ version = "69.8.1"
349
+ source = "registry+https://github.com/rust-lang/crates.io-index"
350
+ checksum = "7b829e3d7e9cc74c7e315ee8edb185bf4190da5acde74afd7fc59c35b1f086e7"
351
+ dependencies = [
352
+ "bindgen 0.59.2",
353
+ "cc",
354
+ "pkg-config",
355
+ ]
356
+
357
+ [[package]]
358
+ name = "pcre2"
359
+ version = "0.2.7"
360
+ source = "registry+https://github.com/rust-lang/crates.io-index"
361
+ checksum = "5ea92ff5eabd27703ab12cefe01b08b2809ec3dc75fdc69d4e6b75fbce0cbd67"
362
+ dependencies = [
363
+ "libc",
364
+ "log",
365
+ "pcre2-sys",
366
+ ]
367
+
368
+ [[package]]
369
+ name = "pcre2-sys"
370
+ version = "0.2.9"
371
+ source = "registry+https://github.com/rust-lang/crates.io-index"
372
+ checksum = "550f5d18fb1b90c20b87e161852c10cde77858c3900c5059b5ad2a1449f11d8a"
373
+ dependencies = [
374
+ "cc",
375
+ "libc",
376
+ "pkg-config",
377
+ ]
378
+
379
+ [[package]]
380
+ name = "peeking_take_while"
381
+ version = "0.1.2"
382
+ source = "registry+https://github.com/rust-lang/crates.io-index"
383
+ checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099"
384
+
385
+ [[package]]
386
+ name = "pkg-config"
387
+ version = "0.3.30"
388
+ source = "registry+https://github.com/rust-lang/crates.io-index"
389
+ checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec"
390
+
391
+ [[package]]
392
+ name = "proc-macro2"
393
+ version = "1.0.79"
394
+ source = "registry+https://github.com/rust-lang/crates.io-index"
395
+ checksum = "e835ff2298f5721608eb1a980ecaee1aef2c132bf95ecc026a11b7bf3c01c02e"
396
+ dependencies = [
397
+ "unicode-ident",
398
+ ]
399
+
400
+ [[package]]
401
+ name = "quote"
402
+ version = "1.0.35"
403
+ source = "registry+https://github.com/rust-lang/crates.io-index"
404
+ checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"
405
+ dependencies = [
406
+ "proc-macro2",
407
+ ]
408
+
409
+ [[package]]
410
+ name = "rb-sys"
411
+ version = "0.9.90"
412
+ source = "registry+https://github.com/rust-lang/crates.io-index"
413
+ checksum = "55d933382388cc7a6fdfd54e222eca7994791ac4b9ce5c9e8df280c739d86bbe"
414
+ dependencies = [
415
+ "rb-sys-build",
416
+ ]
417
+
418
+ [[package]]
419
+ name = "rb-sys-build"
420
+ version = "0.9.90"
421
+ source = "registry+https://github.com/rust-lang/crates.io-index"
422
+ checksum = "ebc5a7e3a875419baaa0d8cc606cdfb9361b444cb7e5abcf0de4693025887374"
423
+ dependencies = [
424
+ "bindgen 0.69.4",
425
+ "lazy_static",
426
+ "proc-macro2",
427
+ "quote",
428
+ "regex",
429
+ "shell-words",
430
+ "syn",
431
+ ]
432
+
433
+ [[package]]
434
+ name = "rb-sys-env"
435
+ version = "0.1.2"
436
+ source = "registry+https://github.com/rust-lang/crates.io-index"
437
+ checksum = "a35802679f07360454b418a5d1735c89716bde01d35b1560fc953c1415a0b3bb"
438
+
439
+ [[package]]
440
+ name = "regex"
441
+ version = "1.10.4"
442
+ source = "registry+https://github.com/rust-lang/crates.io-index"
443
+ checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c"
444
+ dependencies = [
445
+ "aho-corasick",
446
+ "memchr",
447
+ "regex-automata",
448
+ "regex-syntax",
449
+ ]
450
+
451
+ [[package]]
452
+ name = "regex-automata"
453
+ version = "0.4.6"
454
+ source = "registry+https://github.com/rust-lang/crates.io-index"
455
+ checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea"
456
+ dependencies = [
457
+ "aho-corasick",
458
+ "memchr",
459
+ "regex-syntax",
460
+ ]
461
+
462
+ [[package]]
463
+ name = "regex-syntax"
464
+ version = "0.8.3"
465
+ source = "registry+https://github.com/rust-lang/crates.io-index"
466
+ checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56"
467
+
468
+ [[package]]
469
+ name = "rustc-hash"
470
+ version = "1.1.0"
471
+ source = "registry+https://github.com/rust-lang/crates.io-index"
472
+ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
473
+
474
+ [[package]]
475
+ name = "rustix"
476
+ version = "0.38.32"
477
+ source = "registry+https://github.com/rust-lang/crates.io-index"
478
+ checksum = "65e04861e65f21776e67888bfbea442b3642beaa0138fdb1dd7a84a52dffdb89"
479
+ dependencies = [
480
+ "bitflags 2.5.0",
481
+ "errno",
482
+ "libc",
483
+ "linux-raw-sys",
484
+ "windows-sys",
485
+ ]
486
+
487
+ [[package]]
488
+ name = "seq-macro"
489
+ version = "0.3.5"
490
+ source = "registry+https://github.com/rust-lang/crates.io-index"
491
+ checksum = "a3f0bf26fd526d2a95683cd0f87bf103b8539e2ca1ef48ce002d67aad59aa0b4"
492
+
493
+ [[package]]
494
+ name = "shell-words"
495
+ version = "1.1.0"
496
+ source = "registry+https://github.com/rust-lang/crates.io-index"
497
+ checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde"
498
+
499
+ [[package]]
500
+ name = "shlex"
501
+ version = "1.3.0"
502
+ source = "registry+https://github.com/rust-lang/crates.io-index"
503
+ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
504
+
505
+ [[package]]
506
+ name = "strsim"
507
+ version = "0.8.0"
508
+ source = "registry+https://github.com/rust-lang/crates.io-index"
509
+ checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
510
+
511
+ [[package]]
512
+ name = "syn"
513
+ version = "2.0.55"
514
+ source = "registry+https://github.com/rust-lang/crates.io-index"
515
+ checksum = "002a1b3dbf967edfafc32655d0f377ab0bb7b994aa1d32c8cc7e9b8bf3ebb8f0"
516
+ dependencies = [
517
+ "proc-macro2",
518
+ "quote",
519
+ "unicode-ident",
520
+ ]
521
+
522
+ [[package]]
523
+ name = "termcolor"
524
+ version = "1.4.1"
525
+ source = "registry+https://github.com/rust-lang/crates.io-index"
526
+ checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"
527
+ dependencies = [
528
+ "winapi-util",
529
+ ]
530
+
531
+ [[package]]
532
+ name = "textwrap"
533
+ version = "0.11.0"
534
+ source = "registry+https://github.com/rust-lang/crates.io-index"
535
+ checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
536
+ dependencies = [
537
+ "unicode-width",
538
+ ]
539
+
540
+ [[package]]
541
+ name = "unicode-ident"
542
+ version = "1.0.12"
543
+ source = "registry+https://github.com/rust-lang/crates.io-index"
544
+ checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
545
+
546
+ [[package]]
547
+ name = "unicode-width"
548
+ version = "0.1.11"
549
+ source = "registry+https://github.com/rust-lang/crates.io-index"
550
+ checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85"
551
+
552
+ [[package]]
553
+ name = "vec_map"
554
+ version = "0.8.2"
555
+ source = "registry+https://github.com/rust-lang/crates.io-index"
556
+ checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
557
+
558
+ [[package]]
559
+ name = "which"
560
+ version = "4.4.2"
561
+ source = "registry+https://github.com/rust-lang/crates.io-index"
562
+ checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7"
563
+ dependencies = [
564
+ "either",
565
+ "home",
566
+ "once_cell",
567
+ "rustix",
568
+ ]
569
+
570
+ [[package]]
571
+ name = "winapi"
572
+ version = "0.3.9"
573
+ source = "registry+https://github.com/rust-lang/crates.io-index"
574
+ checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
575
+ dependencies = [
576
+ "winapi-i686-pc-windows-gnu",
577
+ "winapi-x86_64-pc-windows-gnu",
578
+ ]
579
+
580
+ [[package]]
581
+ name = "winapi-i686-pc-windows-gnu"
582
+ version = "0.4.0"
583
+ source = "registry+https://github.com/rust-lang/crates.io-index"
584
+ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
585
+
586
+ [[package]]
587
+ name = "winapi-util"
588
+ version = "0.1.6"
589
+ source = "registry+https://github.com/rust-lang/crates.io-index"
590
+ checksum = "f29e6f9198ba0d26b4c9f07dbe6f9ed633e1f3d5b8b414090084349e46a52596"
591
+ dependencies = [
592
+ "winapi",
593
+ ]
594
+
595
+ [[package]]
596
+ name = "winapi-x86_64-pc-windows-gnu"
597
+ version = "0.4.0"
598
+ source = "registry+https://github.com/rust-lang/crates.io-index"
599
+ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
600
+
601
+ [[package]]
602
+ name = "windows-sys"
603
+ version = "0.52.0"
604
+ source = "registry+https://github.com/rust-lang/crates.io-index"
605
+ checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
606
+ dependencies = [
607
+ "windows-targets",
608
+ ]
609
+
610
+ [[package]]
611
+ name = "windows-targets"
612
+ version = "0.52.4"
613
+ source = "registry+https://github.com/rust-lang/crates.io-index"
614
+ checksum = "7dd37b7e5ab9018759f893a1952c9420d060016fc19a472b4bb20d1bdd694d1b"
615
+ dependencies = [
616
+ "windows_aarch64_gnullvm",
617
+ "windows_aarch64_msvc",
618
+ "windows_i686_gnu",
619
+ "windows_i686_msvc",
620
+ "windows_x86_64_gnu",
621
+ "windows_x86_64_gnullvm",
622
+ "windows_x86_64_msvc",
623
+ ]
624
+
625
+ [[package]]
626
+ name = "windows_aarch64_gnullvm"
627
+ version = "0.52.4"
628
+ source = "registry+https://github.com/rust-lang/crates.io-index"
629
+ checksum = "bcf46cf4c365c6f2d1cc93ce535f2c8b244591df96ceee75d8e83deb70a9cac9"
630
+
631
+ [[package]]
632
+ name = "windows_aarch64_msvc"
633
+ version = "0.52.4"
634
+ source = "registry+https://github.com/rust-lang/crates.io-index"
635
+ checksum = "da9f259dd3bcf6990b55bffd094c4f7235817ba4ceebde8e6d11cd0c5633b675"
636
+
637
+ [[package]]
638
+ name = "windows_i686_gnu"
639
+ version = "0.52.4"
640
+ source = "registry+https://github.com/rust-lang/crates.io-index"
641
+ checksum = "b474d8268f99e0995f25b9f095bc7434632601028cf86590aea5c8a5cb7801d3"
642
+
643
+ [[package]]
644
+ name = "windows_i686_msvc"
645
+ version = "0.52.4"
646
+ source = "registry+https://github.com/rust-lang/crates.io-index"
647
+ checksum = "1515e9a29e5bed743cb4415a9ecf5dfca648ce85ee42e15873c3cd8610ff8e02"
648
+
649
+ [[package]]
650
+ name = "windows_x86_64_gnu"
651
+ version = "0.52.4"
652
+ source = "registry+https://github.com/rust-lang/crates.io-index"
653
+ checksum = "5eee091590e89cc02ad514ffe3ead9eb6b660aedca2183455434b93546371a03"
654
+
655
+ [[package]]
656
+ name = "windows_x86_64_gnullvm"
657
+ version = "0.52.4"
658
+ source = "registry+https://github.com/rust-lang/crates.io-index"
659
+ checksum = "77ca79f2451b49fa9e2af39f0747fe999fcda4f5e241b2898624dca97a1f2177"
660
+
661
+ [[package]]
662
+ name = "windows_x86_64_msvc"
663
+ version = "0.52.4"
664
+ source = "registry+https://github.com/rust-lang/crates.io-index"
665
+ checksum = "32b752e52a2da0ddfbdbcc6fceadfeede4c939ed16d13e648833a61dfb611ed8"
666
+
667
+ [[package]]
668
+ name = "xre2"
669
+ version = "0.1.0"
670
+ dependencies = [
671
+ "fancy-regex",
672
+ "magnus",
673
+ "onig",
674
+ "pcre2",
675
+ ]
data/Cargo.toml ADDED
@@ -0,0 +1,7 @@
1
+ # This Cargo.toml is here to let externals tools (IDEs, etc.) know that this is
2
+ # a Rust project. Your extensions dependencies should be added to the Cargo.toml
3
+ # in the ext/ directory.
4
+
5
+ [workspace]
6
+ members = ["./ext/xre2"]
7
+ resolver = "2"
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 barseek
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
13
+ all 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
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # Xre2
2
+
3
+ TODO: Delete this and the text below, and describe your gem
4
+
5
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/xre2`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ ## Installation
8
+
9
+ TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
+
11
+ Install the gem and add to the application's Gemfile by executing:
12
+
13
+ $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
14
+
15
+ If bundler is not being used to manage dependencies, install the gem by executing:
16
+
17
+ $ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Development
24
+
25
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
26
+
27
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
28
+
29
+ ## Contributing
30
+
31
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/xre2. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/xre2/blob/main/CODE_OF_CONDUCT.md).
32
+
33
+ ## License
34
+
35
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
36
+
37
+ ## Code of Conduct
38
+
39
+ Everyone interacting in the Xre2 project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/xre2/blob/main/CODE_OF_CONDUCT.md).
@@ -0,0 +1,16 @@
1
+ [package]
2
+ name = "xre2"
3
+ version = "0.1.0"
4
+ edition = "2021"
5
+ authors = ["barseek <sergey.b@hey.com>"]
6
+ license = "MIT"
7
+ publish = false
8
+
9
+ [lib]
10
+ crate-type = ["cdylib"]
11
+
12
+ [dependencies]
13
+ fancy-regex = "0.13.0"
14
+ magnus = { version = "0.6.2" }
15
+ onig = "6.4.0"
16
+ pcre2 = "0.2.7"
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "mkmf"
4
+ require "rb_sys/mkmf"
5
+
6
+ create_rust_makefile("xre2/xre2")
@@ -0,0 +1,44 @@
1
+ use magnus::{function, prelude::*, Error, Ruby};
2
+ use pcre2::bytes::*;
3
+
4
+ fn onig(target: String, subject: String) -> Vec<(usize, usize)> {
5
+ onig::Regex::new(&target)
6
+ .unwrap()
7
+ .find_iter(&subject)
8
+ .collect()
9
+ }
10
+
11
+ fn fancy(target: String, subject: String) -> Vec<(String, usize)> {
12
+ fancy_regex::RegexBuilder::new(&target)
13
+ .backtrack_limit(10_000_000)
14
+ .build()
15
+ .unwrap()
16
+ .find_iter(&subject)
17
+ .map(|m| m.unwrap())
18
+ .map(|m| (m.as_str().to_string(), m.start() + 1))
19
+ .collect()
20
+ }
21
+
22
+ fn pcre2(target: String, subject: String) -> Vec<(String, usize)> {
23
+ RegexBuilder::new()
24
+ .build(&target)
25
+ .unwrap()
26
+ .find_iter(subject.as_bytes())
27
+ .map(|m| m.unwrap())
28
+ .map(|m| {
29
+ (
30
+ std::str::from_utf8(m.as_bytes()).unwrap().to_string(),
31
+ m.start() + 1,
32
+ )
33
+ })
34
+ .collect()
35
+ }
36
+
37
+ #[magnus::init]
38
+ fn init(ruby: &Ruby) -> Result<(), Error> {
39
+ let module = ruby.define_module("Xre2")?;
40
+ module.define_singleton_method("fancy", function!(fancy, 2))?;
41
+ module.define_singleton_method("onig", function!(onig, 2))?;
42
+ module.define_singleton_method("pcre2", function!(pcre2, 2))?;
43
+ Ok(())
44
+ }
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Xre2
4
+ VERSION = "0.1.0"
5
+ end
data/lib/xre2.rb ADDED
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "xre2/version"
4
+ require_relative "xre2/xre2"
5
+
6
+ module Xre2
7
+ class Error < StandardError; end
8
+ # Your code goes here...
9
+ end
@@ -0,0 +1,7 @@
1
+ # This Cargo.toml is here to let externals tools (IDEs, etc.) know that this is
2
+ # a Rust project. Your extensions dependencies should be added to the Cargo.toml
3
+ # in the ext/ directory.
4
+
5
+ [workspace]
6
+ members = ["./ext/xre2"]
7
+ resolver = "2"
@@ -0,0 +1,16 @@
1
+ [package]
2
+ name = "xre2"
3
+ version = "0.1.0"
4
+ edition = "2021"
5
+ authors = ["barseek <sergey.b@hey.com>"]
6
+ license = "MIT"
7
+ publish = false
8
+
9
+ [lib]
10
+ crate-type = ["cdylib"]
11
+
12
+ [dependencies]
13
+ fancy-regex = "0.13.0"
14
+ magnus = { version = "0.6.2" }
15
+ onig = "6.4.0"
16
+ pcre2 = "0.2.7"
metadata ADDED
@@ -0,0 +1,71 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: xre2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - barseek
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-03-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rb_sys
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.9'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.9'
27
+ description:
28
+ email:
29
+ - sergey.b@hey.com
30
+ executables: []
31
+ extensions:
32
+ - ext/xre2/extconf.rb
33
+ extra_rdoc_files: []
34
+ files:
35
+ - Cargo.lock
36
+ - Cargo.toml
37
+ - LICENSE.txt
38
+ - README.md
39
+ - ext/xre2/Cargo.toml
40
+ - ext/xre2/extconf.rb
41
+ - ext/xre2/src/lib.rs
42
+ - lib/xre2.rb
43
+ - lib/xre2/version.rb
44
+ - tmp/arm64-darwin21/stage/Cargo.toml
45
+ - tmp/arm64-darwin21/stage/ext/xre2/Cargo.toml
46
+ homepage: https://github.com/vagab/xre2
47
+ licenses:
48
+ - MIT
49
+ metadata:
50
+ homepage_uri: https://github.com/vagab/xre2
51
+ source_code_uri: https://github.com/vagab/xre2
52
+ post_install_message:
53
+ rdoc_options: []
54
+ require_paths:
55
+ - lib
56
+ required_ruby_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 3.0.0
61
+ required_rubygems_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: 3.3.11
66
+ requirements: []
67
+ rubygems_version: 3.4.10
68
+ signing_key:
69
+ specification_version: 4
70
+ summary: short summary, because RubyGems requires one.
71
+ test_files: []