padded_cell 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.
Files changed (39) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +22 -0
  3. data/Cargo.lock +518 -0
  4. data/Cargo.toml +41 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +184 -0
  7. data/exe/padded_cell +6 -0
  8. data/ext/padded_cell_native/core/Cargo.toml +20 -0
  9. data/ext/padded_cell_native/core/README.md +50 -0
  10. data/ext/padded_cell_native/core/src/discover/tests.rs +107 -0
  11. data/ext/padded_cell_native/core/src/discover.rs +454 -0
  12. data/ext/padded_cell_native/core/src/hash/tests.rs +13 -0
  13. data/ext/padded_cell_native/core/src/hash.rs +13 -0
  14. data/ext/padded_cell_native/core/src/lib.rs +30 -0
  15. data/ext/padded_cell_native/core/src/plan/tests.rs +61 -0
  16. data/ext/padded_cell_native/core/src/plan.rs +109 -0
  17. data/ext/padded_cell_native/core/src/rng/tests.rs +17 -0
  18. data/ext/padded_cell_native/core/src/rng.rs +28 -0
  19. data/ext/padded_cell_native/extconf.rb +46 -0
  20. data/ext/padded_cell_native/ffi/Cargo.toml +19 -0
  21. data/ext/padded_cell_native/ffi/src/lib.rs +120 -0
  22. data/lib/padded_cell/active_support_hooks.rb +30 -0
  23. data/lib/padded_cell/cell.rb +87 -0
  24. data/lib/padded_cell/cli.rb +97 -0
  25. data/lib/padded_cell/discovery.rb +24 -0
  26. data/lib/padded_cell/hooks.rb +33 -0
  27. data/lib/padded_cell/loader.rb +82 -0
  28. data/lib/padded_cell/native.rb +23 -0
  29. data/lib/padded_cell/pool.rb +202 -0
  30. data/lib/padded_cell/railtie.rb +18 -0
  31. data/lib/padded_cell/reporters.rb +106 -0
  32. data/lib/padded_cell/results.rb +108 -0
  33. data/lib/padded_cell/runner.rb +131 -0
  34. data/lib/padded_cell/scheduler.rb +21 -0
  35. data/lib/padded_cell/selection.rb +78 -0
  36. data/lib/padded_cell/timings.rb +30 -0
  37. data/lib/padded_cell/version.rb +5 -0
  38. data/lib/padded_cell.rb +29 -0
  39. metadata +113 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b89fce8fce6e50ada1a385206f76070b475a2f9e90f495170753d6d66a6f8332
4
+ data.tar.gz: 9ee3b35b649b6be14e016202f87989441145c8c3ace22e6061a0a61016bb8751
5
+ SHA512:
6
+ metadata.gz: 9bf53e2049839807e263fa6af61852e63ee7574e2f3902448ef73fbf926b607b02e93bc6a7fbc61a603998321b8f7461f907666d59cdcb816be999665f4ed258
7
+ data.tar.gz: 90fc61b89533d99849333689f04ff149e079fb775a835cc4d26a0d9224d722a698fb9198f1a23ea0875fb4ac0be21a4949d641e6be45de1ca0f5d848a98886c5
data/CHANGELOG.md ADDED
@@ -0,0 +1,22 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0 (2026-10-11)
4
+
5
+ First release, for CRuby 4.0+ and Minitest 6 on Linux, macOS and FreeBSD: a
6
+ drop-in runner for Minitest and Rails test suites. Windows, JRuby and
7
+ TruffleRuby are not supported.
8
+
9
+ - Fork-per-test cells (`--isolation test`) or long-lived workers
10
+ (`--isolation worker`); crashes, `exit`, `exit!` and `--timeout` become
11
+ error results, and dead workers are replaced.
12
+ - Static discovery with Prism: `file:line[-line]`, `--list` and `--shard I/N`
13
+ without loading tests.
14
+ - Tests grouped by class (fixtures load once per class), seeded order,
15
+ slowest classes and tests first from the previous run's timings; idle
16
+ workers split big classes. `--shard` splits by class.
17
+ - Worker isolation by default when Active Record fixtures are loaded.
18
+ - Minitest's reporters and plugins, plus `--junit` and `--json` reports.
19
+ - `PaddedCell.before_fork` / `after_fork` / `cleanup` hooks; ActiveSupport's
20
+ parallelization hooks and Active Record's per-worker test databases.
21
+ - Discovery and scheduling in Rust, as a native extension: precompiled gems
22
+ for Linux, macOS and FreeBSD, a source gem that compiles it elsewhere.
data/Cargo.lock ADDED
@@ -0,0 +1,518 @@
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.5"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"
10
+ dependencies = [
11
+ "memchr",
12
+ ]
13
+
14
+ [[package]]
15
+ name = "bindgen"
16
+ version = "0.72.1"
17
+ source = "registry+https://github.com/rust-lang/crates.io-index"
18
+ checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
19
+ dependencies = [
20
+ "bitflags",
21
+ "cexpr",
22
+ "clang-sys",
23
+ "itertools",
24
+ "log",
25
+ "prettyplease",
26
+ "proc-macro2",
27
+ "quote",
28
+ "regex",
29
+ "rustc-hash",
30
+ "shlex 1.3.0",
31
+ "syn 2.0.119",
32
+ ]
33
+
34
+ [[package]]
35
+ name = "bitflags"
36
+ version = "2.13.2"
37
+ source = "registry+https://github.com/rust-lang/crates.io-index"
38
+ checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
39
+
40
+ [[package]]
41
+ name = "cc"
42
+ version = "1.6.0"
43
+ source = "registry+https://github.com/rust-lang/crates.io-index"
44
+ checksum = "f74872d07caf508b30a21f6836e7d7016a2eaf7d9ff4f48deaa58cd8a0407630"
45
+ dependencies = [
46
+ "find-msvc-tools",
47
+ "shlex 2.0.1",
48
+ ]
49
+
50
+ [[package]]
51
+ name = "cexpr"
52
+ version = "0.6.0"
53
+ source = "registry+https://github.com/rust-lang/crates.io-index"
54
+ checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
55
+ dependencies = [
56
+ "nom",
57
+ ]
58
+
59
+ [[package]]
60
+ name = "cfg-if"
61
+ version = "1.0.5"
62
+ source = "registry+https://github.com/rust-lang/crates.io-index"
63
+ checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
64
+
65
+ [[package]]
66
+ name = "clang-sys"
67
+ version = "1.9.1"
68
+ source = "registry+https://github.com/rust-lang/crates.io-index"
69
+ checksum = "157a8ba7b480713b56f4c09fd13fc3e0a22a5dfab8097ba61cbc5feef950788a"
70
+ dependencies = [
71
+ "glob",
72
+ "libc",
73
+ "libloading",
74
+ ]
75
+
76
+ [[package]]
77
+ name = "either"
78
+ version = "1.19.0"
79
+ source = "registry+https://github.com/rust-lang/crates.io-index"
80
+ checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
81
+
82
+ [[package]]
83
+ name = "errno"
84
+ version = "0.3.14"
85
+ source = "registry+https://github.com/rust-lang/crates.io-index"
86
+ checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
87
+ dependencies = [
88
+ "libc",
89
+ "windows-sys",
90
+ ]
91
+
92
+ [[package]]
93
+ name = "fastrand"
94
+ version = "2.5.0"
95
+ source = "registry+https://github.com/rust-lang/crates.io-index"
96
+ checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
97
+
98
+ [[package]]
99
+ name = "find-msvc-tools"
100
+ version = "0.1.14"
101
+ source = "registry+https://github.com/rust-lang/crates.io-index"
102
+ checksum = "aedcfb3409746eddb02b9e19ebda1c3394f759a152e48ee875a0844d1b955484"
103
+
104
+ [[package]]
105
+ name = "getrandom"
106
+ version = "0.4.3"
107
+ source = "registry+https://github.com/rust-lang/crates.io-index"
108
+ checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
109
+ dependencies = [
110
+ "cfg-if",
111
+ "libc",
112
+ "r-efi",
113
+ ]
114
+
115
+ [[package]]
116
+ name = "glob"
117
+ version = "0.3.4"
118
+ source = "registry+https://github.com/rust-lang/crates.io-index"
119
+ checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"
120
+
121
+ [[package]]
122
+ name = "itertools"
123
+ version = "0.13.0"
124
+ source = "registry+https://github.com/rust-lang/crates.io-index"
125
+ checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
126
+ dependencies = [
127
+ "either",
128
+ ]
129
+
130
+ [[package]]
131
+ name = "itoa"
132
+ version = "1.0.18"
133
+ source = "registry+https://github.com/rust-lang/crates.io-index"
134
+ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
135
+
136
+ [[package]]
137
+ name = "lazy_static"
138
+ version = "1.5.1"
139
+ source = "registry+https://github.com/rust-lang/crates.io-index"
140
+ checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb"
141
+
142
+ [[package]]
143
+ name = "libc"
144
+ version = "0.2.190"
145
+ source = "registry+https://github.com/rust-lang/crates.io-index"
146
+ checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78"
147
+
148
+ [[package]]
149
+ name = "libloading"
150
+ version = "0.8.9"
151
+ source = "registry+https://github.com/rust-lang/crates.io-index"
152
+ checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
153
+ dependencies = [
154
+ "cfg-if",
155
+ "windows-link",
156
+ ]
157
+
158
+ [[package]]
159
+ name = "linux-raw-sys"
160
+ version = "0.12.1"
161
+ source = "registry+https://github.com/rust-lang/crates.io-index"
162
+ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
163
+
164
+ [[package]]
165
+ name = "log"
166
+ version = "0.4.34"
167
+ source = "registry+https://github.com/rust-lang/crates.io-index"
168
+ checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
169
+
170
+ [[package]]
171
+ name = "magnus"
172
+ version = "0.9.2"
173
+ source = "registry+https://github.com/rust-lang/crates.io-index"
174
+ checksum = "b9068710e00d21be762edca59b9c4c8946dbdb29820d4f76ad559afea07982c9"
175
+ dependencies = [
176
+ "magnus-macros",
177
+ "rb-sys",
178
+ "rb-sys-env",
179
+ "seq-macro",
180
+ ]
181
+
182
+ [[package]]
183
+ name = "magnus-macros"
184
+ version = "0.9.1"
185
+ source = "registry+https://github.com/rust-lang/crates.io-index"
186
+ checksum = "9dafde2eeb66f090e0f326112323eb8324b12cb32b5d1210e541d3df6b0ce77e"
187
+ dependencies = [
188
+ "proc-macro2",
189
+ "quote",
190
+ "syn 2.0.119",
191
+ ]
192
+
193
+ [[package]]
194
+ name = "memchr"
195
+ version = "2.8.3"
196
+ source = "registry+https://github.com/rust-lang/crates.io-index"
197
+ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
198
+
199
+ [[package]]
200
+ name = "minimal-lexical"
201
+ version = "0.2.1"
202
+ source = "registry+https://github.com/rust-lang/crates.io-index"
203
+ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
204
+
205
+ [[package]]
206
+ name = "nom"
207
+ version = "7.1.3"
208
+ source = "registry+https://github.com/rust-lang/crates.io-index"
209
+ checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
210
+ dependencies = [
211
+ "memchr",
212
+ "minimal-lexical",
213
+ ]
214
+
215
+ [[package]]
216
+ name = "once_cell"
217
+ version = "1.21.4"
218
+ source = "registry+https://github.com/rust-lang/crates.io-index"
219
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
220
+
221
+ [[package]]
222
+ name = "padded_cell"
223
+ version = "0.1.0"
224
+ dependencies = [
225
+ "ruby-prism",
226
+ "tempfile",
227
+ "thiserror",
228
+ ]
229
+
230
+ [[package]]
231
+ name = "padded_cell_native"
232
+ version = "0.1.0"
233
+ dependencies = [
234
+ "magnus",
235
+ "padded_cell",
236
+ ]
237
+
238
+ [[package]]
239
+ name = "prettyplease"
240
+ version = "0.2.37"
241
+ source = "registry+https://github.com/rust-lang/crates.io-index"
242
+ checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"
243
+ dependencies = [
244
+ "proc-macro2",
245
+ "syn 2.0.119",
246
+ ]
247
+
248
+ [[package]]
249
+ name = "proc-macro2"
250
+ version = "1.0.107"
251
+ source = "registry+https://github.com/rust-lang/crates.io-index"
252
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
253
+ dependencies = [
254
+ "unicode-ident",
255
+ ]
256
+
257
+ [[package]]
258
+ name = "quote"
259
+ version = "1.0.47"
260
+ source = "registry+https://github.com/rust-lang/crates.io-index"
261
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
262
+ dependencies = [
263
+ "proc-macro2",
264
+ ]
265
+
266
+ [[package]]
267
+ name = "r-efi"
268
+ version = "6.0.0"
269
+ source = "registry+https://github.com/rust-lang/crates.io-index"
270
+ checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
271
+
272
+ [[package]]
273
+ name = "rb-sys"
274
+ version = "0.9.130"
275
+ source = "registry+https://github.com/rust-lang/crates.io-index"
276
+ checksum = "02faf625bb10ba893e3ae620f19c9fb1b5f8fcae0fe4eb86bb3f2230fad75edb"
277
+ dependencies = [
278
+ "rb-sys-build",
279
+ ]
280
+
281
+ [[package]]
282
+ name = "rb-sys-build"
283
+ version = "0.9.130"
284
+ source = "registry+https://github.com/rust-lang/crates.io-index"
285
+ checksum = "05be6f9c86fe5482808162826f6c047d093b3670582296c770de1d94f8066694"
286
+ dependencies = [
287
+ "bindgen",
288
+ "lazy_static",
289
+ "proc-macro2",
290
+ "quote",
291
+ "regex",
292
+ "shell-words",
293
+ "syn 2.0.119",
294
+ ]
295
+
296
+ [[package]]
297
+ name = "rb-sys-env"
298
+ version = "0.2.3"
299
+ source = "registry+https://github.com/rust-lang/crates.io-index"
300
+ checksum = "cca7ad6a7e21e72151d56fe2495a259b5670e204c3adac41ee7ef676ea08117a"
301
+
302
+ [[package]]
303
+ name = "regex"
304
+ version = "1.13.1"
305
+ source = "registry+https://github.com/rust-lang/crates.io-index"
306
+ checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
307
+ dependencies = [
308
+ "aho-corasick",
309
+ "memchr",
310
+ "regex-automata",
311
+ "regex-syntax",
312
+ ]
313
+
314
+ [[package]]
315
+ name = "regex-automata"
316
+ version = "0.4.18"
317
+ source = "registry+https://github.com/rust-lang/crates.io-index"
318
+ checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
319
+ dependencies = [
320
+ "aho-corasick",
321
+ "memchr",
322
+ "regex-syntax",
323
+ ]
324
+
325
+ [[package]]
326
+ name = "regex-syntax"
327
+ version = "0.8.11"
328
+ source = "registry+https://github.com/rust-lang/crates.io-index"
329
+ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
330
+
331
+ [[package]]
332
+ name = "ruby-prism"
333
+ version = "1.9.0"
334
+ source = "registry+https://github.com/rust-lang/crates.io-index"
335
+ checksum = "3b302f00359d0b5423a600314935ca5f994484e15da2db5345631d28c6e029d6"
336
+ dependencies = [
337
+ "ruby-prism-sys",
338
+ "serde",
339
+ "serde_json",
340
+ ]
341
+
342
+ [[package]]
343
+ name = "ruby-prism-sys"
344
+ version = "1.9.0"
345
+ source = "registry+https://github.com/rust-lang/crates.io-index"
346
+ checksum = "9f85fd9571455bdca2b3bf0b2f543cd13ac39d5de0026a8eb2deb94ffd264f00"
347
+ dependencies = [
348
+ "bindgen",
349
+ "cc",
350
+ ]
351
+
352
+ [[package]]
353
+ name = "rustc-hash"
354
+ version = "2.1.3"
355
+ source = "registry+https://github.com/rust-lang/crates.io-index"
356
+ checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
357
+
358
+ [[package]]
359
+ name = "rustix"
360
+ version = "1.1.5"
361
+ source = "registry+https://github.com/rust-lang/crates.io-index"
362
+ checksum = "891efababe418670775f199f0d233d84843c227a0949a883ce15b37c78d6629d"
363
+ dependencies = [
364
+ "bitflags",
365
+ "errno",
366
+ "libc",
367
+ "linux-raw-sys",
368
+ "windows-sys",
369
+ ]
370
+
371
+ [[package]]
372
+ name = "seq-macro"
373
+ version = "0.3.6"
374
+ source = "registry+https://github.com/rust-lang/crates.io-index"
375
+ checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc"
376
+
377
+ [[package]]
378
+ name = "serde"
379
+ version = "1.0.229"
380
+ source = "registry+https://github.com/rust-lang/crates.io-index"
381
+ checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
382
+ dependencies = [
383
+ "serde_core",
384
+ "serde_derive",
385
+ ]
386
+
387
+ [[package]]
388
+ name = "serde_core"
389
+ version = "1.0.229"
390
+ source = "registry+https://github.com/rust-lang/crates.io-index"
391
+ checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
392
+ dependencies = [
393
+ "serde_derive",
394
+ ]
395
+
396
+ [[package]]
397
+ name = "serde_derive"
398
+ version = "1.0.229"
399
+ source = "registry+https://github.com/rust-lang/crates.io-index"
400
+ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
401
+ dependencies = [
402
+ "proc-macro2",
403
+ "quote",
404
+ "syn 3.0.6",
405
+ ]
406
+
407
+ [[package]]
408
+ name = "serde_json"
409
+ version = "1.0.151"
410
+ source = "registry+https://github.com/rust-lang/crates.io-index"
411
+ checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
412
+ dependencies = [
413
+ "itoa",
414
+ "memchr",
415
+ "serde",
416
+ "serde_core",
417
+ "zmij",
418
+ ]
419
+
420
+ [[package]]
421
+ name = "shell-words"
422
+ version = "1.1.1"
423
+ source = "registry+https://github.com/rust-lang/crates.io-index"
424
+ checksum = "dc6fe69c597f9c37bfeeeeeb33da3530379845f10be461a66d16d03eca2ded77"
425
+
426
+ [[package]]
427
+ name = "shlex"
428
+ version = "1.3.0"
429
+ source = "registry+https://github.com/rust-lang/crates.io-index"
430
+ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
431
+
432
+ [[package]]
433
+ name = "shlex"
434
+ version = "2.0.1"
435
+ source = "registry+https://github.com/rust-lang/crates.io-index"
436
+ checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
437
+
438
+ [[package]]
439
+ name = "syn"
440
+ version = "2.0.119"
441
+ source = "registry+https://github.com/rust-lang/crates.io-index"
442
+ checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
443
+ dependencies = [
444
+ "proc-macro2",
445
+ "quote",
446
+ "unicode-ident",
447
+ ]
448
+
449
+ [[package]]
450
+ name = "syn"
451
+ version = "3.0.6"
452
+ source = "registry+https://github.com/rust-lang/crates.io-index"
453
+ checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee"
454
+ dependencies = [
455
+ "proc-macro2",
456
+ "quote",
457
+ "unicode-ident",
458
+ ]
459
+
460
+ [[package]]
461
+ name = "tempfile"
462
+ version = "3.27.0"
463
+ source = "registry+https://github.com/rust-lang/crates.io-index"
464
+ checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
465
+ dependencies = [
466
+ "fastrand",
467
+ "getrandom",
468
+ "once_cell",
469
+ "rustix",
470
+ "windows-sys",
471
+ ]
472
+
473
+ [[package]]
474
+ name = "thiserror"
475
+ version = "2.0.21"
476
+ source = "registry+https://github.com/rust-lang/crates.io-index"
477
+ checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e"
478
+ dependencies = [
479
+ "thiserror-impl",
480
+ ]
481
+
482
+ [[package]]
483
+ name = "thiserror-impl"
484
+ version = "2.0.21"
485
+ source = "registry+https://github.com/rust-lang/crates.io-index"
486
+ checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"
487
+ dependencies = [
488
+ "proc-macro2",
489
+ "quote",
490
+ "syn 3.0.6",
491
+ ]
492
+
493
+ [[package]]
494
+ name = "unicode-ident"
495
+ version = "1.0.26"
496
+ source = "registry+https://github.com/rust-lang/crates.io-index"
497
+ checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954"
498
+
499
+ [[package]]
500
+ name = "windows-link"
501
+ version = "0.2.1"
502
+ source = "registry+https://github.com/rust-lang/crates.io-index"
503
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
504
+
505
+ [[package]]
506
+ name = "windows-sys"
507
+ version = "0.61.2"
508
+ source = "registry+https://github.com/rust-lang/crates.io-index"
509
+ checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
510
+ dependencies = [
511
+ "windows-link",
512
+ ]
513
+
514
+ [[package]]
515
+ name = "zmij"
516
+ version = "1.0.23"
517
+ source = "registry+https://github.com/rust-lang/crates.io-index"
518
+ checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
data/Cargo.toml ADDED
@@ -0,0 +1,41 @@
1
+ [workspace]
2
+ members = ["ext/padded_cell_native/core", "ext/padded_cell_native/ffi"]
3
+ resolver = "3"
4
+
5
+ [workspace.package]
6
+ edition = "2024"
7
+ rust-version = "1.99"
8
+ authors = ["Abdelkader Boudih <oss@seuros.com>"]
9
+ license = "MIT"
10
+ repository = "https://github.com/seuros/padded_cell"
11
+
12
+ [workspace.dependencies]
13
+ padded_cell = { path = "ext/padded_cell_native/core" }
14
+ magnus = { version = "0.9.2", default-features = false }
15
+ ruby-prism = "1.9.0"
16
+ tempfile = "3.27.0"
17
+ thiserror = "2.0.21"
18
+
19
+ [workspace.lints.rust]
20
+ unsafe_code = "deny"
21
+ unused_must_use = "warn"
22
+ # The FFI crate reads Ruby strings in place (one allowed unsafe block).
23
+ raw_borrows_via_references = "warn"
24
+
25
+ [workspace.lints.clippy]
26
+ all = { level = "warn", priority = -1 }
27
+ pedantic = { level = "warn", priority = -1 }
28
+ nursery = { level = "warn", priority = -1 }
29
+ expect_used = "deny"
30
+ needless_borrow = "deny"
31
+ redundant_clone = "deny"
32
+ redundant_closure = "deny"
33
+ redundant_closure_for_method_calls = "deny"
34
+ trivially_copy_pass_by_ref = "deny"
35
+ uninlined_format_args = "deny"
36
+ unwrap_used = "deny"
37
+
38
+ [profile.release]
39
+ codegen-units = 1
40
+ lto = true
41
+ strip = true
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2026 Abdelkader Boudih
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.