galgo 0.1.0.pre

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: 626edadfa2677f0a1632ade4fad54606e95929f2f936ef7e3b782b80a6ad927f
4
+ data.tar.gz: 4027675043d71f95ea72db5736b2a6b1e96a1a4bfee044d1400c2ff50afe1da5
5
+ SHA512:
6
+ metadata.gz: 446c3cb7c05ab52bd371e43da790a02366b5267410da9d7ff349cb7d77c18fa3359903d56d44e5bb72fa0e1534250701fd62fc4bb4577adc425e50046912c402
7
+ data.tar.gz: 77ee318105886cc987f9ca30623a841657fd85d0e4c1dc17284488d6fe732f3033ca1d638d2897ce50f772786c0881f51d3c7aacead7bed98923b80de4587180
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,8 @@
1
+ AllCops:
2
+ TargetRubyVersion: 3.1
3
+
4
+ Style/StringLiterals:
5
+ EnforcedStyle: double_quotes
6
+
7
+ Style/StringLiteralsInInterpolation:
8
+ EnforcedStyle: double_quotes
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2026-04-23
4
+
5
+ - Initial release
data/Cargo.lock ADDED
@@ -0,0 +1,630 @@
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 = "bindgen"
22
+ version = "0.72.1"
23
+ source = "registry+https://github.com/rust-lang/crates.io-index"
24
+ checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
25
+ dependencies = [
26
+ "bitflags",
27
+ "cexpr",
28
+ "clang-sys",
29
+ "itertools",
30
+ "proc-macro2",
31
+ "quote",
32
+ "regex",
33
+ "rustc-hash",
34
+ "shlex",
35
+ "syn",
36
+ ]
37
+
38
+ [[package]]
39
+ name = "bitflags"
40
+ version = "2.11.1"
41
+ source = "registry+https://github.com/rust-lang/crates.io-index"
42
+ checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
43
+
44
+ [[package]]
45
+ name = "cexpr"
46
+ version = "0.6.0"
47
+ source = "registry+https://github.com/rust-lang/crates.io-index"
48
+ checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
49
+ dependencies = [
50
+ "nom",
51
+ ]
52
+
53
+ [[package]]
54
+ name = "cfg-if"
55
+ version = "1.0.4"
56
+ source = "registry+https://github.com/rust-lang/crates.io-index"
57
+ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
58
+
59
+ [[package]]
60
+ name = "chacha20"
61
+ version = "0.10.0"
62
+ source = "registry+https://github.com/rust-lang/crates.io-index"
63
+ checksum = "6f8d983286843e49675a4b7a2d174efe136dc93a18d69130dd18198a6c167601"
64
+ dependencies = [
65
+ "cfg-if",
66
+ "cpufeatures",
67
+ "rand_core",
68
+ ]
69
+
70
+ [[package]]
71
+ name = "clang-sys"
72
+ version = "1.8.1"
73
+ source = "registry+https://github.com/rust-lang/crates.io-index"
74
+ checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4"
75
+ dependencies = [
76
+ "glob",
77
+ "libc",
78
+ "libloading",
79
+ ]
80
+
81
+ [[package]]
82
+ name = "cpufeatures"
83
+ version = "0.3.0"
84
+ source = "registry+https://github.com/rust-lang/crates.io-index"
85
+ checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201"
86
+ dependencies = [
87
+ "libc",
88
+ ]
89
+
90
+ [[package]]
91
+ name = "either"
92
+ version = "1.15.0"
93
+ source = "registry+https://github.com/rust-lang/crates.io-index"
94
+ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
95
+
96
+ [[package]]
97
+ name = "equivalent"
98
+ version = "1.0.2"
99
+ source = "registry+https://github.com/rust-lang/crates.io-index"
100
+ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
101
+
102
+ [[package]]
103
+ name = "foldhash"
104
+ version = "0.1.5"
105
+ source = "registry+https://github.com/rust-lang/crates.io-index"
106
+ checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
107
+
108
+ [[package]]
109
+ name = "gal"
110
+ version = "0.1.0"
111
+ dependencies = [
112
+ "magnus",
113
+ "rand",
114
+ ]
115
+
116
+ [[package]]
117
+ name = "getrandom"
118
+ version = "0.4.2"
119
+ source = "registry+https://github.com/rust-lang/crates.io-index"
120
+ checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555"
121
+ dependencies = [
122
+ "cfg-if",
123
+ "libc",
124
+ "r-efi",
125
+ "rand_core",
126
+ "wasip2",
127
+ "wasip3",
128
+ ]
129
+
130
+ [[package]]
131
+ name = "glob"
132
+ version = "0.3.3"
133
+ source = "registry+https://github.com/rust-lang/crates.io-index"
134
+ checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
135
+
136
+ [[package]]
137
+ name = "hashbrown"
138
+ version = "0.15.5"
139
+ source = "registry+https://github.com/rust-lang/crates.io-index"
140
+ checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
141
+ dependencies = [
142
+ "foldhash",
143
+ ]
144
+
145
+ [[package]]
146
+ name = "hashbrown"
147
+ version = "0.17.0"
148
+ source = "registry+https://github.com/rust-lang/crates.io-index"
149
+ checksum = "4f467dd6dccf739c208452f8014c75c18bb8301b050ad1cfb27153803edb0f51"
150
+
151
+ [[package]]
152
+ name = "heck"
153
+ version = "0.5.0"
154
+ source = "registry+https://github.com/rust-lang/crates.io-index"
155
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
156
+
157
+ [[package]]
158
+ name = "id-arena"
159
+ version = "2.3.0"
160
+ source = "registry+https://github.com/rust-lang/crates.io-index"
161
+ checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954"
162
+
163
+ [[package]]
164
+ name = "indexmap"
165
+ version = "2.14.0"
166
+ source = "registry+https://github.com/rust-lang/crates.io-index"
167
+ checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"
168
+ dependencies = [
169
+ "equivalent",
170
+ "hashbrown 0.17.0",
171
+ "serde",
172
+ "serde_core",
173
+ ]
174
+
175
+ [[package]]
176
+ name = "itertools"
177
+ version = "0.13.0"
178
+ source = "registry+https://github.com/rust-lang/crates.io-index"
179
+ checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
180
+ dependencies = [
181
+ "either",
182
+ ]
183
+
184
+ [[package]]
185
+ name = "itoa"
186
+ version = "1.0.18"
187
+ source = "registry+https://github.com/rust-lang/crates.io-index"
188
+ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
189
+
190
+ [[package]]
191
+ name = "lazy_static"
192
+ version = "1.5.0"
193
+ source = "registry+https://github.com/rust-lang/crates.io-index"
194
+ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
195
+
196
+ [[package]]
197
+ name = "leb128fmt"
198
+ version = "0.1.0"
199
+ source = "registry+https://github.com/rust-lang/crates.io-index"
200
+ checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"
201
+
202
+ [[package]]
203
+ name = "libc"
204
+ version = "0.2.185"
205
+ source = "registry+https://github.com/rust-lang/crates.io-index"
206
+ checksum = "52ff2c0fe9bc6cb6b14a0592c2ff4fa9ceb83eea9db979b0487cd054946a2b8f"
207
+
208
+ [[package]]
209
+ name = "libloading"
210
+ version = "0.8.9"
211
+ source = "registry+https://github.com/rust-lang/crates.io-index"
212
+ checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
213
+ dependencies = [
214
+ "cfg-if",
215
+ "windows-link",
216
+ ]
217
+
218
+ [[package]]
219
+ name = "log"
220
+ version = "0.4.29"
221
+ source = "registry+https://github.com/rust-lang/crates.io-index"
222
+ checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
223
+
224
+ [[package]]
225
+ name = "magnus"
226
+ version = "0.6.4"
227
+ source = "registry+https://github.com/rust-lang/crates.io-index"
228
+ checksum = "b1597ef40aa8c36be098249e82c9a20cf7199278ac1c1a1a995eeead6a184479"
229
+ dependencies = [
230
+ "magnus-macros",
231
+ "rb-sys",
232
+ "rb-sys-env",
233
+ "seq-macro",
234
+ ]
235
+
236
+ [[package]]
237
+ name = "magnus-macros"
238
+ version = "0.6.0"
239
+ source = "registry+https://github.com/rust-lang/crates.io-index"
240
+ checksum = "5968c820e2960565f647819f5928a42d6e874551cab9d88d75e3e0660d7f71e3"
241
+ dependencies = [
242
+ "proc-macro2",
243
+ "quote",
244
+ "syn",
245
+ ]
246
+
247
+ [[package]]
248
+ name = "memchr"
249
+ version = "2.8.0"
250
+ source = "registry+https://github.com/rust-lang/crates.io-index"
251
+ checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
252
+
253
+ [[package]]
254
+ name = "minimal-lexical"
255
+ version = "0.2.1"
256
+ source = "registry+https://github.com/rust-lang/crates.io-index"
257
+ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
258
+
259
+ [[package]]
260
+ name = "nom"
261
+ version = "7.1.3"
262
+ source = "registry+https://github.com/rust-lang/crates.io-index"
263
+ checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
264
+ dependencies = [
265
+ "memchr",
266
+ "minimal-lexical",
267
+ ]
268
+
269
+ [[package]]
270
+ name = "prettyplease"
271
+ version = "0.2.37"
272
+ source = "registry+https://github.com/rust-lang/crates.io-index"
273
+ checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"
274
+ dependencies = [
275
+ "proc-macro2",
276
+ "syn",
277
+ ]
278
+
279
+ [[package]]
280
+ name = "proc-macro2"
281
+ version = "1.0.106"
282
+ source = "registry+https://github.com/rust-lang/crates.io-index"
283
+ checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
284
+ dependencies = [
285
+ "unicode-ident",
286
+ ]
287
+
288
+ [[package]]
289
+ name = "quote"
290
+ version = "1.0.45"
291
+ source = "registry+https://github.com/rust-lang/crates.io-index"
292
+ checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
293
+ dependencies = [
294
+ "proc-macro2",
295
+ ]
296
+
297
+ [[package]]
298
+ name = "r-efi"
299
+ version = "6.0.0"
300
+ source = "registry+https://github.com/rust-lang/crates.io-index"
301
+ checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
302
+
303
+ [[package]]
304
+ name = "rand"
305
+ version = "0.10.1"
306
+ source = "registry+https://github.com/rust-lang/crates.io-index"
307
+ checksum = "d2e8e8bcc7961af1fdac401278c6a831614941f6164ee3bf4ce61b7edb162207"
308
+ dependencies = [
309
+ "chacha20",
310
+ "getrandom",
311
+ "rand_core",
312
+ ]
313
+
314
+ [[package]]
315
+ name = "rand_core"
316
+ version = "0.10.1"
317
+ source = "registry+https://github.com/rust-lang/crates.io-index"
318
+ checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"
319
+
320
+ [[package]]
321
+ name = "rb-sys"
322
+ version = "0.9.126"
323
+ source = "registry+https://github.com/rust-lang/crates.io-index"
324
+ checksum = "284799e73e899fe946fd77c7211b83bff61a1356e039ade7a2516a779e3212d0"
325
+ dependencies = [
326
+ "rb-sys-build",
327
+ ]
328
+
329
+ [[package]]
330
+ name = "rb-sys-build"
331
+ version = "0.9.126"
332
+ source = "registry+https://github.com/rust-lang/crates.io-index"
333
+ checksum = "855fc1ad8943d12c89ef12f9147f1cc531f5bf19fb744112fdd317bb6ee7b5c5"
334
+ dependencies = [
335
+ "bindgen",
336
+ "lazy_static",
337
+ "proc-macro2",
338
+ "quote",
339
+ "regex",
340
+ "shell-words",
341
+ "syn",
342
+ ]
343
+
344
+ [[package]]
345
+ name = "rb-sys-env"
346
+ version = "0.1.2"
347
+ source = "registry+https://github.com/rust-lang/crates.io-index"
348
+ checksum = "a35802679f07360454b418a5d1735c89716bde01d35b1560fc953c1415a0b3bb"
349
+
350
+ [[package]]
351
+ name = "regex"
352
+ version = "1.12.3"
353
+ source = "registry+https://github.com/rust-lang/crates.io-index"
354
+ checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276"
355
+ dependencies = [
356
+ "aho-corasick",
357
+ "memchr",
358
+ "regex-automata",
359
+ "regex-syntax",
360
+ ]
361
+
362
+ [[package]]
363
+ name = "regex-automata"
364
+ version = "0.4.14"
365
+ source = "registry+https://github.com/rust-lang/crates.io-index"
366
+ checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f"
367
+ dependencies = [
368
+ "aho-corasick",
369
+ "memchr",
370
+ "regex-syntax",
371
+ ]
372
+
373
+ [[package]]
374
+ name = "regex-syntax"
375
+ version = "0.8.10"
376
+ source = "registry+https://github.com/rust-lang/crates.io-index"
377
+ checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a"
378
+
379
+ [[package]]
380
+ name = "rustc-hash"
381
+ version = "2.1.2"
382
+ source = "registry+https://github.com/rust-lang/crates.io-index"
383
+ checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe"
384
+
385
+ [[package]]
386
+ name = "semver"
387
+ version = "1.0.28"
388
+ source = "registry+https://github.com/rust-lang/crates.io-index"
389
+ checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
390
+
391
+ [[package]]
392
+ name = "seq-macro"
393
+ version = "0.3.6"
394
+ source = "registry+https://github.com/rust-lang/crates.io-index"
395
+ checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc"
396
+
397
+ [[package]]
398
+ name = "serde"
399
+ version = "1.0.228"
400
+ source = "registry+https://github.com/rust-lang/crates.io-index"
401
+ checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
402
+ dependencies = [
403
+ "serde_core",
404
+ ]
405
+
406
+ [[package]]
407
+ name = "serde_core"
408
+ version = "1.0.228"
409
+ source = "registry+https://github.com/rust-lang/crates.io-index"
410
+ checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
411
+ dependencies = [
412
+ "serde_derive",
413
+ ]
414
+
415
+ [[package]]
416
+ name = "serde_derive"
417
+ version = "1.0.228"
418
+ source = "registry+https://github.com/rust-lang/crates.io-index"
419
+ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
420
+ dependencies = [
421
+ "proc-macro2",
422
+ "quote",
423
+ "syn",
424
+ ]
425
+
426
+ [[package]]
427
+ name = "serde_json"
428
+ version = "1.0.149"
429
+ source = "registry+https://github.com/rust-lang/crates.io-index"
430
+ checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86"
431
+ dependencies = [
432
+ "itoa",
433
+ "memchr",
434
+ "serde",
435
+ "serde_core",
436
+ "zmij",
437
+ ]
438
+
439
+ [[package]]
440
+ name = "shell-words"
441
+ version = "1.1.1"
442
+ source = "registry+https://github.com/rust-lang/crates.io-index"
443
+ checksum = "dc6fe69c597f9c37bfeeeeeb33da3530379845f10be461a66d16d03eca2ded77"
444
+
445
+ [[package]]
446
+ name = "shlex"
447
+ version = "1.3.0"
448
+ source = "registry+https://github.com/rust-lang/crates.io-index"
449
+ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
450
+
451
+ [[package]]
452
+ name = "syn"
453
+ version = "2.0.117"
454
+ source = "registry+https://github.com/rust-lang/crates.io-index"
455
+ checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
456
+ dependencies = [
457
+ "proc-macro2",
458
+ "quote",
459
+ "unicode-ident",
460
+ ]
461
+
462
+ [[package]]
463
+ name = "unicode-ident"
464
+ version = "1.0.24"
465
+ source = "registry+https://github.com/rust-lang/crates.io-index"
466
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
467
+
468
+ [[package]]
469
+ name = "unicode-xid"
470
+ version = "0.2.6"
471
+ source = "registry+https://github.com/rust-lang/crates.io-index"
472
+ checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
473
+
474
+ [[package]]
475
+ name = "wasip2"
476
+ version = "1.0.3+wasi-0.2.9"
477
+ source = "registry+https://github.com/rust-lang/crates.io-index"
478
+ checksum = "20064672db26d7cdc89c7798c48a0fdfac8213434a1186e5ef29fd560ae223d6"
479
+ dependencies = [
480
+ "wit-bindgen 0.57.1",
481
+ ]
482
+
483
+ [[package]]
484
+ name = "wasip3"
485
+ version = "0.4.0+wasi-0.3.0-rc-2026-01-06"
486
+ source = "registry+https://github.com/rust-lang/crates.io-index"
487
+ checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5"
488
+ dependencies = [
489
+ "wit-bindgen 0.51.0",
490
+ ]
491
+
492
+ [[package]]
493
+ name = "wasm-encoder"
494
+ version = "0.244.0"
495
+ source = "registry+https://github.com/rust-lang/crates.io-index"
496
+ checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319"
497
+ dependencies = [
498
+ "leb128fmt",
499
+ "wasmparser",
500
+ ]
501
+
502
+ [[package]]
503
+ name = "wasm-metadata"
504
+ version = "0.244.0"
505
+ source = "registry+https://github.com/rust-lang/crates.io-index"
506
+ checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909"
507
+ dependencies = [
508
+ "anyhow",
509
+ "indexmap",
510
+ "wasm-encoder",
511
+ "wasmparser",
512
+ ]
513
+
514
+ [[package]]
515
+ name = "wasmparser"
516
+ version = "0.244.0"
517
+ source = "registry+https://github.com/rust-lang/crates.io-index"
518
+ checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe"
519
+ dependencies = [
520
+ "bitflags",
521
+ "hashbrown 0.15.5",
522
+ "indexmap",
523
+ "semver",
524
+ ]
525
+
526
+ [[package]]
527
+ name = "windows-link"
528
+ version = "0.2.1"
529
+ source = "registry+https://github.com/rust-lang/crates.io-index"
530
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
531
+
532
+ [[package]]
533
+ name = "wit-bindgen"
534
+ version = "0.51.0"
535
+ source = "registry+https://github.com/rust-lang/crates.io-index"
536
+ checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5"
537
+ dependencies = [
538
+ "wit-bindgen-rust-macro",
539
+ ]
540
+
541
+ [[package]]
542
+ name = "wit-bindgen"
543
+ version = "0.57.1"
544
+ source = "registry+https://github.com/rust-lang/crates.io-index"
545
+ checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
546
+
547
+ [[package]]
548
+ name = "wit-bindgen-core"
549
+ version = "0.51.0"
550
+ source = "registry+https://github.com/rust-lang/crates.io-index"
551
+ checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc"
552
+ dependencies = [
553
+ "anyhow",
554
+ "heck",
555
+ "wit-parser",
556
+ ]
557
+
558
+ [[package]]
559
+ name = "wit-bindgen-rust"
560
+ version = "0.51.0"
561
+ source = "registry+https://github.com/rust-lang/crates.io-index"
562
+ checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21"
563
+ dependencies = [
564
+ "anyhow",
565
+ "heck",
566
+ "indexmap",
567
+ "prettyplease",
568
+ "syn",
569
+ "wasm-metadata",
570
+ "wit-bindgen-core",
571
+ "wit-component",
572
+ ]
573
+
574
+ [[package]]
575
+ name = "wit-bindgen-rust-macro"
576
+ version = "0.51.0"
577
+ source = "registry+https://github.com/rust-lang/crates.io-index"
578
+ checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a"
579
+ dependencies = [
580
+ "anyhow",
581
+ "prettyplease",
582
+ "proc-macro2",
583
+ "quote",
584
+ "syn",
585
+ "wit-bindgen-core",
586
+ "wit-bindgen-rust",
587
+ ]
588
+
589
+ [[package]]
590
+ name = "wit-component"
591
+ version = "0.244.0"
592
+ source = "registry+https://github.com/rust-lang/crates.io-index"
593
+ checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2"
594
+ dependencies = [
595
+ "anyhow",
596
+ "bitflags",
597
+ "indexmap",
598
+ "log",
599
+ "serde",
600
+ "serde_derive",
601
+ "serde_json",
602
+ "wasm-encoder",
603
+ "wasm-metadata",
604
+ "wasmparser",
605
+ "wit-parser",
606
+ ]
607
+
608
+ [[package]]
609
+ name = "wit-parser"
610
+ version = "0.244.0"
611
+ source = "registry+https://github.com/rust-lang/crates.io-index"
612
+ checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736"
613
+ dependencies = [
614
+ "anyhow",
615
+ "id-arena",
616
+ "indexmap",
617
+ "log",
618
+ "semver",
619
+ "serde",
620
+ "serde_derive",
621
+ "serde_json",
622
+ "unicode-xid",
623
+ "wasmparser",
624
+ ]
625
+
626
+ [[package]]
627
+ name = "zmij"
628
+ version = "1.0.21"
629
+ source = "registry+https://github.com/rust-lang/crates.io-index"
630
+ checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
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/gal"]
7
+ resolver = "2"
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2026 yuriko1211
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
+ # Gal
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/gal`. 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
+ ```bash
14
+ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
15
+ ```
16
+
17
+ If bundler is not being used to manage dependencies, install the gem by executing:
18
+
19
+ ```bash
20
+ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ 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.
30
+
31
+ 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).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/gal.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ require "rb_sys/extensiontask"
13
+
14
+ task build: :compile
15
+
16
+ GEMSPEC = Gem::Specification.load("gal.gemspec")
17
+
18
+ RbSys::ExtensionTask.new("gal", GEMSPEC) do |ext|
19
+ ext.lib_dir = "lib/gal"
20
+ end
21
+
22
+ task default: %i[compile spec rubocop]
@@ -0,0 +1,14 @@
1
+ [package]
2
+ name = "gal"
3
+ version = "0.1.0"
4
+ edition = "2021"
5
+ authors = ["yuriko1211 <yuriko11d@gmail.com>"]
6
+ license = "MIT"
7
+ publish = false
8
+
9
+ [lib]
10
+ crate-type = ["cdylib"]
11
+
12
+ [dependencies]
13
+ magnus = { version = "0.6.2" }
14
+ rand = "0.10.1"
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "mkmf"
4
+ require "rb_sys/mkmf"
5
+
6
+ create_rust_makefile("gal/gal")
@@ -0,0 +1,31 @@
1
+ use magnus::{function, prelude::*, Error, Ruby};
2
+ use rand::prelude::*;
3
+ use rand::rng;
4
+
5
+ fn change_gal(message: String) -> String {
6
+ format!(" {message} {}", random_gal())
7
+ }
8
+
9
+ fn random_gal() -> String {
10
+ let mut emojis = [
11
+ "(*•̀ᴗ•́*)و ̑̑",
12
+ "(⌒_⌒)",
13
+ "( ˘ω˘ )",
14
+ "٩(˘◡˘)۶",
15
+ "(˶′◡‵˶)"
16
+ ];
17
+ emojis.shuffle(&mut rng());
18
+ emojis[0].to_string()
19
+ }
20
+
21
+ fn hello(subject: String) -> String {
22
+ format!("Hello from Rust, {subject}!")
23
+ }
24
+
25
+ #[magnus::init]
26
+ fn init(ruby: &Ruby) -> Result<(), Error> {
27
+ let module = ruby.define_module("Gal")?;
28
+ module.define_singleton_method("hello", function!(hello, 1))?;
29
+ module.define_singleton_method("change_gal", function!(change_gal, 1))?;
30
+ Ok(())
31
+ }
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Gal
4
+ VERSION = "0.1.0.pre"
5
+ end
data/lib/gal.rb ADDED
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "gal/version"
4
+ require_relative "gal/gal"
5
+
6
+ module Gal
7
+ class Error < StandardError; end
8
+ # Your code goes here...
9
+ end
data/sig/gal.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module Gal
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,72 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: galgo
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0.pre
5
+ platform: ruby
6
+ authors:
7
+ - yuriko1211
8
+ bindir: exe
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: rb_sys
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: 0.9.91
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - "~>"
24
+ - !ruby/object:Gem::Version
25
+ version: 0.9.91
26
+ description: translate gal style
27
+ email:
28
+ - yuriko11d@gmail.com
29
+ executables: []
30
+ extensions:
31
+ - ext/gal/extconf.rb
32
+ extra_rdoc_files: []
33
+ files:
34
+ - ".rspec"
35
+ - ".rubocop.yml"
36
+ - CHANGELOG.md
37
+ - Cargo.lock
38
+ - Cargo.toml
39
+ - LICENSE.txt
40
+ - README.md
41
+ - Rakefile
42
+ - ext/gal/Cargo.toml
43
+ - ext/gal/extconf.rb
44
+ - ext/gal/src/lib.rs
45
+ - lib/gal.rb
46
+ - lib/gal/version.rb
47
+ - sig/gal.rbs
48
+ homepage: https://github.com/yuriko1211/galgo
49
+ licenses:
50
+ - MIT
51
+ metadata:
52
+ homepage_uri: https://github.com/yuriko1211/galgo
53
+ source_code_uri: https://github.com/yuriko1211/galgo
54
+ changelog_uri: https://github.com/yuriko1211/galgo
55
+ rdoc_options: []
56
+ require_paths:
57
+ - lib
58
+ required_ruby_version: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 3.1.0
63
+ required_rubygems_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: 3.3.11
68
+ requirements: []
69
+ rubygems_version: 3.6.9
70
+ specification_version: 4
71
+ summary: translate gal style
72
+ test_files: []