magicprotorb 0.1.0

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 4ba27b10242ed25827eab965b1f76b7107fe76d8b83f0499bb8f2fae268e62ef
4
+ data.tar.gz: f04ad3878a92dd1b93b0f6e82e404371f93c63b7380f4bd33b03911d12173722
5
+ SHA512:
6
+ metadata.gz: ae1aa7d2ca7440ca3a9e57e7dc1689614ae8e3d4bbe562055b5af5ed3d83cd30bda0fd401c45445f61f24479564f1aeb8e7e69e77568f918eb9f3e80244ead96
7
+ data.tar.gz: 436e436c3684ccf7aa0d1faa5c6b102ba0a790e6f3622357ad73c8c9ef859acf73b924acdcea00a7c8c8063e6c968649241054947813b038d9b12a13a60d972f
data/.rubocop.yml ADDED
@@ -0,0 +1,39 @@
1
+ AllCops:
2
+ TargetRubyVersion: 3.0
3
+ NewCops: enable
4
+ SuggestExtensions: false
5
+
6
+ Style/StringLiterals:
7
+ Enabled: true
8
+ EnforcedStyle: double_quotes
9
+
10
+ Style/StringLiteralsInInterpolation:
11
+ Enabled: true
12
+ EnforcedStyle: double_quotes
13
+
14
+ Layout/LineLength:
15
+ Max: 120
16
+
17
+ # These metrics flag a handful of small, linear methods (path resolution,
18
+ # descriptor walking) that read more clearly whole than split for their own sake.
19
+ Metrics/MethodLength:
20
+ Max: 20
21
+ Metrics/AbcSize:
22
+ Max: 25
23
+ Metrics/CyclomaticComplexity:
24
+ Max: 8
25
+
26
+ Metrics/BlockLength:
27
+ Exclude:
28
+ - "test/**/*"
29
+ - "*.gemspec"
30
+
31
+ # The entry file reopens module Magicprotorb around its require_relatives
32
+ # (errors first, public API last); that is deliberate, not a smell.
33
+ Style/OneClassPerFile:
34
+ Enabled: false
35
+
36
+ # Behavior is documented inline throughout; the redundant per-module banner the
37
+ # cop wants adds noise without information.
38
+ Style/Documentation:
39
+ Enabled: false
data/Cargo.lock ADDED
@@ -0,0 +1,517 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "aho-corasick"
7
+ version = "1.1.4"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
10
+ dependencies = [
11
+ "memchr",
12
+ ]
13
+
14
+ [[package]]
15
+ name = "anyhow"
16
+ version = "1.0.102"
17
+ source = "registry+https://github.com/rust-lang/crates.io-index"
18
+ checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
19
+
20
+ [[package]]
21
+ name = "beef"
22
+ version = "0.5.2"
23
+ source = "registry+https://github.com/rust-lang/crates.io-index"
24
+ checksum = "3a8241f3ebb85c056b509d4327ad0358fbbba6ffb340bf388f26350aeda225b1"
25
+
26
+ [[package]]
27
+ name = "bindgen"
28
+ version = "0.72.1"
29
+ source = "registry+https://github.com/rust-lang/crates.io-index"
30
+ checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
31
+ dependencies = [
32
+ "bitflags",
33
+ "cexpr",
34
+ "clang-sys",
35
+ "itertools 0.13.0",
36
+ "proc-macro2",
37
+ "quote",
38
+ "regex",
39
+ "rustc-hash",
40
+ "shlex",
41
+ "syn",
42
+ ]
43
+
44
+ [[package]]
45
+ name = "bitflags"
46
+ version = "2.11.1"
47
+ source = "registry+https://github.com/rust-lang/crates.io-index"
48
+ checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
49
+
50
+ [[package]]
51
+ name = "bytes"
52
+ version = "1.11.1"
53
+ source = "registry+https://github.com/rust-lang/crates.io-index"
54
+ checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"
55
+
56
+ [[package]]
57
+ name = "cexpr"
58
+ version = "0.6.0"
59
+ source = "registry+https://github.com/rust-lang/crates.io-index"
60
+ checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
61
+ dependencies = [
62
+ "nom",
63
+ ]
64
+
65
+ [[package]]
66
+ name = "cfg-if"
67
+ version = "1.0.4"
68
+ source = "registry+https://github.com/rust-lang/crates.io-index"
69
+ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
70
+
71
+ [[package]]
72
+ name = "clang-sys"
73
+ version = "1.8.1"
74
+ source = "registry+https://github.com/rust-lang/crates.io-index"
75
+ checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4"
76
+ dependencies = [
77
+ "glob",
78
+ "libc",
79
+ "libloading",
80
+ ]
81
+
82
+ [[package]]
83
+ name = "either"
84
+ version = "1.16.0"
85
+ source = "registry+https://github.com/rust-lang/crates.io-index"
86
+ checksum = "91622ff5e7162018101f2fea40d6ebf4a78bbe5a49736a2020649edf9693679e"
87
+
88
+ [[package]]
89
+ name = "fnv"
90
+ version = "1.0.7"
91
+ source = "registry+https://github.com/rust-lang/crates.io-index"
92
+ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
93
+
94
+ [[package]]
95
+ name = "glob"
96
+ version = "0.3.3"
97
+ source = "registry+https://github.com/rust-lang/crates.io-index"
98
+ checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
99
+
100
+ [[package]]
101
+ name = "itertools"
102
+ version = "0.13.0"
103
+ source = "registry+https://github.com/rust-lang/crates.io-index"
104
+ checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
105
+ dependencies = [
106
+ "either",
107
+ ]
108
+
109
+ [[package]]
110
+ name = "itertools"
111
+ version = "0.14.0"
112
+ source = "registry+https://github.com/rust-lang/crates.io-index"
113
+ checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285"
114
+ dependencies = [
115
+ "either",
116
+ ]
117
+
118
+ [[package]]
119
+ name = "lazy_static"
120
+ version = "1.5.0"
121
+ source = "registry+https://github.com/rust-lang/crates.io-index"
122
+ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
123
+
124
+ [[package]]
125
+ name = "libc"
126
+ version = "0.2.186"
127
+ source = "registry+https://github.com/rust-lang/crates.io-index"
128
+ checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
129
+
130
+ [[package]]
131
+ name = "libloading"
132
+ version = "0.8.9"
133
+ source = "registry+https://github.com/rust-lang/crates.io-index"
134
+ checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
135
+ dependencies = [
136
+ "cfg-if",
137
+ "windows-link",
138
+ ]
139
+
140
+ [[package]]
141
+ name = "logos"
142
+ version = "0.15.1"
143
+ source = "registry+https://github.com/rust-lang/crates.io-index"
144
+ checksum = "ff472f899b4ec2d99161c51f60ff7075eeb3097069a36050d8037a6325eb8154"
145
+ dependencies = [
146
+ "logos-derive 0.15.1",
147
+ ]
148
+
149
+ [[package]]
150
+ name = "logos"
151
+ version = "0.16.1"
152
+ source = "registry+https://github.com/rust-lang/crates.io-index"
153
+ checksum = "eb2c55a318a87600ea870ff8c2012148b44bf18b74fad48d0f835c38c7d07c5f"
154
+ dependencies = [
155
+ "logos-derive 0.16.1",
156
+ ]
157
+
158
+ [[package]]
159
+ name = "logos-codegen"
160
+ version = "0.15.1"
161
+ source = "registry+https://github.com/rust-lang/crates.io-index"
162
+ checksum = "192a3a2b90b0c05b27a0b2c43eecdb7c415e29243acc3f89cc8247a5b693045c"
163
+ dependencies = [
164
+ "beef",
165
+ "fnv",
166
+ "lazy_static",
167
+ "proc-macro2",
168
+ "quote",
169
+ "regex-syntax",
170
+ "rustc_version",
171
+ "syn",
172
+ ]
173
+
174
+ [[package]]
175
+ name = "logos-codegen"
176
+ version = "0.16.1"
177
+ source = "registry+https://github.com/rust-lang/crates.io-index"
178
+ checksum = "58b3ffaa284e1350d017a57d04ada118c4583cf260c8fb01e0fe28a2e9cf8970"
179
+ dependencies = [
180
+ "fnv",
181
+ "proc-macro2",
182
+ "quote",
183
+ "regex-automata",
184
+ "regex-syntax",
185
+ "syn",
186
+ ]
187
+
188
+ [[package]]
189
+ name = "logos-derive"
190
+ version = "0.15.1"
191
+ source = "registry+https://github.com/rust-lang/crates.io-index"
192
+ checksum = "605d9697bcd5ef3a42d38efc51541aa3d6a4a25f7ab6d1ed0da5ac632a26b470"
193
+ dependencies = [
194
+ "logos-codegen 0.15.1",
195
+ ]
196
+
197
+ [[package]]
198
+ name = "logos-derive"
199
+ version = "0.16.1"
200
+ source = "registry+https://github.com/rust-lang/crates.io-index"
201
+ checksum = "52d3a9855747c17eaf4383823f135220716ab49bea5fbea7dd42cc9a92f8aa31"
202
+ dependencies = [
203
+ "logos-codegen 0.16.1",
204
+ ]
205
+
206
+ [[package]]
207
+ name = "magicprotorb_native"
208
+ version = "0.1.0"
209
+ dependencies = [
210
+ "magnus",
211
+ "prost",
212
+ "prost-types",
213
+ "protox",
214
+ ]
215
+
216
+ [[package]]
217
+ name = "magnus"
218
+ version = "0.7.1"
219
+ source = "registry+https://github.com/rust-lang/crates.io-index"
220
+ checksum = "3d87ae53030f3a22e83879e666cb94e58a7bdf31706878a0ba48752994146dab"
221
+ dependencies = [
222
+ "magnus-macros",
223
+ "rb-sys",
224
+ "rb-sys-env",
225
+ "seq-macro",
226
+ ]
227
+
228
+ [[package]]
229
+ name = "magnus-macros"
230
+ version = "0.6.0"
231
+ source = "registry+https://github.com/rust-lang/crates.io-index"
232
+ checksum = "5968c820e2960565f647819f5928a42d6e874551cab9d88d75e3e0660d7f71e3"
233
+ dependencies = [
234
+ "proc-macro2",
235
+ "quote",
236
+ "syn",
237
+ ]
238
+
239
+ [[package]]
240
+ name = "memchr"
241
+ version = "2.8.1"
242
+ source = "registry+https://github.com/rust-lang/crates.io-index"
243
+ checksum = "6b947ae49db0d222b1dbc6b113ce7248a3fc3a6ca21b696717bfc000ba4484d8"
244
+
245
+ [[package]]
246
+ name = "miette"
247
+ version = "7.6.0"
248
+ source = "registry+https://github.com/rust-lang/crates.io-index"
249
+ checksum = "5f98efec8807c63c752b5bd61f862c165c115b0a35685bdcfd9238c7aeb592b7"
250
+ dependencies = [
251
+ "cfg-if",
252
+ "miette-derive",
253
+ "unicode-width",
254
+ ]
255
+
256
+ [[package]]
257
+ name = "miette-derive"
258
+ version = "7.6.0"
259
+ source = "registry+https://github.com/rust-lang/crates.io-index"
260
+ checksum = "db5b29714e950dbb20d5e6f74f9dcec4edbcc1067bb7f8ed198c097b8c1a818b"
261
+ dependencies = [
262
+ "proc-macro2",
263
+ "quote",
264
+ "syn",
265
+ ]
266
+
267
+ [[package]]
268
+ name = "minimal-lexical"
269
+ version = "0.2.1"
270
+ source = "registry+https://github.com/rust-lang/crates.io-index"
271
+ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
272
+
273
+ [[package]]
274
+ name = "nom"
275
+ version = "7.1.3"
276
+ source = "registry+https://github.com/rust-lang/crates.io-index"
277
+ checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
278
+ dependencies = [
279
+ "memchr",
280
+ "minimal-lexical",
281
+ ]
282
+
283
+ [[package]]
284
+ name = "proc-macro2"
285
+ version = "1.0.106"
286
+ source = "registry+https://github.com/rust-lang/crates.io-index"
287
+ checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
288
+ dependencies = [
289
+ "unicode-ident",
290
+ ]
291
+
292
+ [[package]]
293
+ name = "prost"
294
+ version = "0.14.3"
295
+ source = "registry+https://github.com/rust-lang/crates.io-index"
296
+ checksum = "d2ea70524a2f82d518bce41317d0fae74151505651af45faf1ffbd6fd33f0568"
297
+ dependencies = [
298
+ "bytes",
299
+ "prost-derive",
300
+ ]
301
+
302
+ [[package]]
303
+ name = "prost-derive"
304
+ version = "0.14.3"
305
+ source = "registry+https://github.com/rust-lang/crates.io-index"
306
+ checksum = "27c6023962132f4b30eb4c172c91ce92d933da334c59c23cddee82358ddafb0b"
307
+ dependencies = [
308
+ "anyhow",
309
+ "itertools 0.14.0",
310
+ "proc-macro2",
311
+ "quote",
312
+ "syn",
313
+ ]
314
+
315
+ [[package]]
316
+ name = "prost-reflect"
317
+ version = "0.16.4"
318
+ source = "registry+https://github.com/rust-lang/crates.io-index"
319
+ checksum = "590aa145fee8f7a26b5a6055365e7c5e89a5c1caae9869de76ec0ee73181a2f9"
320
+ dependencies = [
321
+ "logos 0.16.1",
322
+ "miette",
323
+ "prost",
324
+ "prost-types",
325
+ ]
326
+
327
+ [[package]]
328
+ name = "prost-types"
329
+ version = "0.14.3"
330
+ source = "registry+https://github.com/rust-lang/crates.io-index"
331
+ checksum = "8991c4cbdb8bc5b11f0b074ffe286c30e523de90fee5ba8132f1399f23cb3dd7"
332
+ dependencies = [
333
+ "prost",
334
+ ]
335
+
336
+ [[package]]
337
+ name = "protox"
338
+ version = "0.9.1"
339
+ source = "registry+https://github.com/rust-lang/crates.io-index"
340
+ checksum = "4f25a07a73c6717f0b9bbbd685918f5df9815f7efba450b83d9c9dea41f0e3a1"
341
+ dependencies = [
342
+ "bytes",
343
+ "miette",
344
+ "prost",
345
+ "prost-reflect",
346
+ "prost-types",
347
+ "protox-parse",
348
+ "thiserror",
349
+ ]
350
+
351
+ [[package]]
352
+ name = "protox-parse"
353
+ version = "0.9.0"
354
+ source = "registry+https://github.com/rust-lang/crates.io-index"
355
+ checksum = "072eee358134396a4643dff81cfff1c255c9fbd3fb296be14bdb6a26f9156366"
356
+ dependencies = [
357
+ "logos 0.15.1",
358
+ "miette",
359
+ "prost-types",
360
+ "thiserror",
361
+ ]
362
+
363
+ [[package]]
364
+ name = "quote"
365
+ version = "1.0.45"
366
+ source = "registry+https://github.com/rust-lang/crates.io-index"
367
+ checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
368
+ dependencies = [
369
+ "proc-macro2",
370
+ ]
371
+
372
+ [[package]]
373
+ name = "rb-sys"
374
+ version = "0.9.128"
375
+ source = "registry+https://github.com/rust-lang/crates.io-index"
376
+ checksum = "45ca28513560e56cfb79a62b1fce363c73af170a182024ce880c77ee9429920a"
377
+ dependencies = [
378
+ "rb-sys-build",
379
+ ]
380
+
381
+ [[package]]
382
+ name = "rb-sys-build"
383
+ version = "0.9.128"
384
+ source = "registry+https://github.com/rust-lang/crates.io-index"
385
+ checksum = "ce04b2c55eff3a21aaa623fcc655d94373238e72cac6b3e1a3641ff31649f99a"
386
+ dependencies = [
387
+ "bindgen",
388
+ "lazy_static",
389
+ "proc-macro2",
390
+ "quote",
391
+ "regex",
392
+ "shell-words",
393
+ "syn",
394
+ ]
395
+
396
+ [[package]]
397
+ name = "rb-sys-env"
398
+ version = "0.1.2"
399
+ source = "registry+https://github.com/rust-lang/crates.io-index"
400
+ checksum = "a35802679f07360454b418a5d1735c89716bde01d35b1560fc953c1415a0b3bb"
401
+
402
+ [[package]]
403
+ name = "regex"
404
+ version = "1.12.3"
405
+ source = "registry+https://github.com/rust-lang/crates.io-index"
406
+ checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276"
407
+ dependencies = [
408
+ "aho-corasick",
409
+ "memchr",
410
+ "regex-automata",
411
+ "regex-syntax",
412
+ ]
413
+
414
+ [[package]]
415
+ name = "regex-automata"
416
+ version = "0.4.14"
417
+ source = "registry+https://github.com/rust-lang/crates.io-index"
418
+ checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f"
419
+ dependencies = [
420
+ "aho-corasick",
421
+ "memchr",
422
+ "regex-syntax",
423
+ ]
424
+
425
+ [[package]]
426
+ name = "regex-syntax"
427
+ version = "0.8.10"
428
+ source = "registry+https://github.com/rust-lang/crates.io-index"
429
+ checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a"
430
+
431
+ [[package]]
432
+ name = "rustc-hash"
433
+ version = "2.1.2"
434
+ source = "registry+https://github.com/rust-lang/crates.io-index"
435
+ checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe"
436
+
437
+ [[package]]
438
+ name = "rustc_version"
439
+ version = "0.4.1"
440
+ source = "registry+https://github.com/rust-lang/crates.io-index"
441
+ checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
442
+ dependencies = [
443
+ "semver",
444
+ ]
445
+
446
+ [[package]]
447
+ name = "semver"
448
+ version = "1.0.28"
449
+ source = "registry+https://github.com/rust-lang/crates.io-index"
450
+ checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
451
+
452
+ [[package]]
453
+ name = "seq-macro"
454
+ version = "0.3.6"
455
+ source = "registry+https://github.com/rust-lang/crates.io-index"
456
+ checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc"
457
+
458
+ [[package]]
459
+ name = "shell-words"
460
+ version = "1.1.1"
461
+ source = "registry+https://github.com/rust-lang/crates.io-index"
462
+ checksum = "dc6fe69c597f9c37bfeeeeeb33da3530379845f10be461a66d16d03eca2ded77"
463
+
464
+ [[package]]
465
+ name = "shlex"
466
+ version = "1.3.0"
467
+ source = "registry+https://github.com/rust-lang/crates.io-index"
468
+ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
469
+
470
+ [[package]]
471
+ name = "syn"
472
+ version = "2.0.117"
473
+ source = "registry+https://github.com/rust-lang/crates.io-index"
474
+ checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
475
+ dependencies = [
476
+ "proc-macro2",
477
+ "quote",
478
+ "unicode-ident",
479
+ ]
480
+
481
+ [[package]]
482
+ name = "thiserror"
483
+ version = "2.0.18"
484
+ source = "registry+https://github.com/rust-lang/crates.io-index"
485
+ checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
486
+ dependencies = [
487
+ "thiserror-impl",
488
+ ]
489
+
490
+ [[package]]
491
+ name = "thiserror-impl"
492
+ version = "2.0.18"
493
+ source = "registry+https://github.com/rust-lang/crates.io-index"
494
+ checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
495
+ dependencies = [
496
+ "proc-macro2",
497
+ "quote",
498
+ "syn",
499
+ ]
500
+
501
+ [[package]]
502
+ name = "unicode-ident"
503
+ version = "1.0.24"
504
+ source = "registry+https://github.com/rust-lang/crates.io-index"
505
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
506
+
507
+ [[package]]
508
+ name = "unicode-width"
509
+ version = "0.1.14"
510
+ source = "registry+https://github.com/rust-lang/crates.io-index"
511
+ checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"
512
+
513
+ [[package]]
514
+ name = "windows-link"
515
+ version = "0.2.1"
516
+ source = "registry+https://github.com/rust-lang/crates.io-index"
517
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
data/Cargo.toml ADDED
@@ -0,0 +1,6 @@
1
+ # Workspace root so `cargo metadata` (invoked by rb_sys from the gem root) can
2
+ # discover the native extension crate. The actual crate lives in
3
+ # ext/magicprotorb_native.
4
+ [workspace]
5
+ members = ["ext/magicprotorb_native"]
6
+ resolver = "2"