scrubber_rb 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 +7 -0
- data/.cargo/config.toml +21 -0
- data/CHANGELOG.md +59 -0
- data/Cargo.lock +626 -0
- data/Cargo.toml +10 -0
- data/LICENSE +21 -0
- data/README.md +298 -0
- data/SECURITY.md +54 -0
- data/ext/scrubber_rb/Cargo.toml +41 -0
- data/ext/scrubber_rb/build.rs +6 -0
- data/ext/scrubber_rb/extconf.rb +6 -0
- data/ext/scrubber_rb/src/detectors/checksum.rs +222 -0
- data/ext/scrubber_rb/src/detectors/mod.rs +636 -0
- data/ext/scrubber_rb/src/detectors/upi.rs +138 -0
- data/ext/scrubber_rb/src/detectors/validate.rs +339 -0
- data/ext/scrubber_rb/src/engine.rs +716 -0
- data/ext/scrubber_rb/src/lib.rs +247 -0
- data/ext/scrubber_rb/src/nogvl.rs +84 -0
- data/ext/scrubber_rb/src/offsets.rs +118 -0
- data/ext/scrubber_rb/src/pattern.rs +319 -0
- data/ext/scrubber_rb/src/replace.rs +238 -0
- data/lib/scrubber/instance.rb +223 -0
- data/lib/scrubber/llm_guard.rb +79 -0
- data/lib/scrubber/log_formatter.rb +40 -0
- data/lib/scrubber/match.rb +27 -0
- data/lib/scrubber/middleware.rb +124 -0
- data/lib/scrubber/version.rb +5 -0
- data/lib/scrubber_rb.rb +109 -0
- data/sig/scrubber_rb.rbs +150 -0
- metadata +96 -0
data/Cargo.lock
ADDED
|
@@ -0,0 +1,626 @@
|
|
|
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.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 = "autocfg"
|
|
16
|
+
version = "1.5.1"
|
|
17
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
18
|
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
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 = "bit-set"
|
|
40
|
+
version = "0.8.0"
|
|
41
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
42
|
+
checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
|
|
43
|
+
dependencies = [
|
|
44
|
+
"bit-vec",
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
[[package]]
|
|
48
|
+
name = "bit-vec"
|
|
49
|
+
version = "0.8.0"
|
|
50
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
51
|
+
checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
|
|
52
|
+
|
|
53
|
+
[[package]]
|
|
54
|
+
name = "bitflags"
|
|
55
|
+
version = "2.13.1"
|
|
56
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
57
|
+
checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da"
|
|
58
|
+
|
|
59
|
+
[[package]]
|
|
60
|
+
name = "block-buffer"
|
|
61
|
+
version = "0.10.4"
|
|
62
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
63
|
+
checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
|
|
64
|
+
dependencies = [
|
|
65
|
+
"generic-array",
|
|
66
|
+
]
|
|
67
|
+
|
|
68
|
+
[[package]]
|
|
69
|
+
name = "cexpr"
|
|
70
|
+
version = "0.6.0"
|
|
71
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
72
|
+
checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
|
|
73
|
+
dependencies = [
|
|
74
|
+
"nom",
|
|
75
|
+
]
|
|
76
|
+
|
|
77
|
+
[[package]]
|
|
78
|
+
name = "cfg-if"
|
|
79
|
+
version = "1.0.4"
|
|
80
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
81
|
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
82
|
+
|
|
83
|
+
[[package]]
|
|
84
|
+
name = "clang-sys"
|
|
85
|
+
version = "1.9.1"
|
|
86
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
87
|
+
checksum = "157a8ba7b480713b56f4c09fd13fc3e0a22a5dfab8097ba61cbc5feef950788a"
|
|
88
|
+
dependencies = [
|
|
89
|
+
"glob",
|
|
90
|
+
"libc",
|
|
91
|
+
"libloading",
|
|
92
|
+
]
|
|
93
|
+
|
|
94
|
+
[[package]]
|
|
95
|
+
name = "cpufeatures"
|
|
96
|
+
version = "0.2.17"
|
|
97
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
98
|
+
checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"
|
|
99
|
+
dependencies = [
|
|
100
|
+
"libc",
|
|
101
|
+
]
|
|
102
|
+
|
|
103
|
+
[[package]]
|
|
104
|
+
name = "crypto-common"
|
|
105
|
+
version = "0.1.7"
|
|
106
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
107
|
+
checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
|
|
108
|
+
dependencies = [
|
|
109
|
+
"generic-array",
|
|
110
|
+
"typenum",
|
|
111
|
+
]
|
|
112
|
+
|
|
113
|
+
[[package]]
|
|
114
|
+
name = "digest"
|
|
115
|
+
version = "0.10.7"
|
|
116
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
117
|
+
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
|
|
118
|
+
dependencies = [
|
|
119
|
+
"block-buffer",
|
|
120
|
+
"crypto-common",
|
|
121
|
+
]
|
|
122
|
+
|
|
123
|
+
[[package]]
|
|
124
|
+
name = "either"
|
|
125
|
+
version = "1.17.0"
|
|
126
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
127
|
+
checksum = "9e5e8f6c15a24b9a3ee5efec809ccd006d3b30e8b3bb63c39af737c7f87daa1d"
|
|
128
|
+
|
|
129
|
+
[[package]]
|
|
130
|
+
name = "errno"
|
|
131
|
+
version = "0.3.14"
|
|
132
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
133
|
+
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
|
|
134
|
+
dependencies = [
|
|
135
|
+
"libc",
|
|
136
|
+
"windows-sys",
|
|
137
|
+
]
|
|
138
|
+
|
|
139
|
+
[[package]]
|
|
140
|
+
name = "fastrand"
|
|
141
|
+
version = "2.5.0"
|
|
142
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
143
|
+
checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
|
|
144
|
+
|
|
145
|
+
[[package]]
|
|
146
|
+
name = "fnv"
|
|
147
|
+
version = "1.0.7"
|
|
148
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
149
|
+
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
|
150
|
+
|
|
151
|
+
[[package]]
|
|
152
|
+
name = "generic-array"
|
|
153
|
+
version = "0.14.7"
|
|
154
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
155
|
+
checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
|
|
156
|
+
dependencies = [
|
|
157
|
+
"typenum",
|
|
158
|
+
"version_check",
|
|
159
|
+
]
|
|
160
|
+
|
|
161
|
+
[[package]]
|
|
162
|
+
name = "getrandom"
|
|
163
|
+
version = "0.3.4"
|
|
164
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
165
|
+
checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
|
|
166
|
+
dependencies = [
|
|
167
|
+
"cfg-if",
|
|
168
|
+
"libc",
|
|
169
|
+
"r-efi 5.3.0",
|
|
170
|
+
"wasip2",
|
|
171
|
+
]
|
|
172
|
+
|
|
173
|
+
[[package]]
|
|
174
|
+
name = "getrandom"
|
|
175
|
+
version = "0.4.3"
|
|
176
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
177
|
+
checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
|
|
178
|
+
dependencies = [
|
|
179
|
+
"cfg-if",
|
|
180
|
+
"libc",
|
|
181
|
+
"r-efi 6.0.0",
|
|
182
|
+
]
|
|
183
|
+
|
|
184
|
+
[[package]]
|
|
185
|
+
name = "glob"
|
|
186
|
+
version = "0.3.4"
|
|
187
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
188
|
+
checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"
|
|
189
|
+
|
|
190
|
+
[[package]]
|
|
191
|
+
name = "itertools"
|
|
192
|
+
version = "0.13.0"
|
|
193
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
194
|
+
checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
|
|
195
|
+
dependencies = [
|
|
196
|
+
"either",
|
|
197
|
+
]
|
|
198
|
+
|
|
199
|
+
[[package]]
|
|
200
|
+
name = "lazy_static"
|
|
201
|
+
version = "1.5.0"
|
|
202
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
203
|
+
checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
|
204
|
+
|
|
205
|
+
[[package]]
|
|
206
|
+
name = "libc"
|
|
207
|
+
version = "0.2.189"
|
|
208
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
209
|
+
checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
|
|
210
|
+
|
|
211
|
+
[[package]]
|
|
212
|
+
name = "libloading"
|
|
213
|
+
version = "0.8.9"
|
|
214
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
215
|
+
checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
|
|
216
|
+
dependencies = [
|
|
217
|
+
"cfg-if",
|
|
218
|
+
"windows-link",
|
|
219
|
+
]
|
|
220
|
+
|
|
221
|
+
[[package]]
|
|
222
|
+
name = "linux-raw-sys"
|
|
223
|
+
version = "0.12.1"
|
|
224
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
225
|
+
checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
|
|
226
|
+
|
|
227
|
+
[[package]]
|
|
228
|
+
name = "magnus"
|
|
229
|
+
version = "0.7.1"
|
|
230
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
231
|
+
checksum = "3d87ae53030f3a22e83879e666cb94e58a7bdf31706878a0ba48752994146dab"
|
|
232
|
+
dependencies = [
|
|
233
|
+
"magnus-macros",
|
|
234
|
+
"rb-sys",
|
|
235
|
+
"rb-sys-env",
|
|
236
|
+
"seq-macro",
|
|
237
|
+
]
|
|
238
|
+
|
|
239
|
+
[[package]]
|
|
240
|
+
name = "magnus-macros"
|
|
241
|
+
version = "0.6.0"
|
|
242
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
243
|
+
checksum = "5968c820e2960565f647819f5928a42d6e874551cab9d88d75e3e0660d7f71e3"
|
|
244
|
+
dependencies = [
|
|
245
|
+
"proc-macro2",
|
|
246
|
+
"quote",
|
|
247
|
+
"syn",
|
|
248
|
+
]
|
|
249
|
+
|
|
250
|
+
[[package]]
|
|
251
|
+
name = "memchr"
|
|
252
|
+
version = "2.8.3"
|
|
253
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
254
|
+
checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
|
|
255
|
+
|
|
256
|
+
[[package]]
|
|
257
|
+
name = "minimal-lexical"
|
|
258
|
+
version = "0.2.1"
|
|
259
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
260
|
+
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
|
|
261
|
+
|
|
262
|
+
[[package]]
|
|
263
|
+
name = "nom"
|
|
264
|
+
version = "7.1.3"
|
|
265
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
266
|
+
checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
|
|
267
|
+
dependencies = [
|
|
268
|
+
"memchr",
|
|
269
|
+
"minimal-lexical",
|
|
270
|
+
]
|
|
271
|
+
|
|
272
|
+
[[package]]
|
|
273
|
+
name = "num-traits"
|
|
274
|
+
version = "0.2.19"
|
|
275
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
276
|
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
|
277
|
+
dependencies = [
|
|
278
|
+
"autocfg",
|
|
279
|
+
]
|
|
280
|
+
|
|
281
|
+
[[package]]
|
|
282
|
+
name = "once_cell"
|
|
283
|
+
version = "1.21.4"
|
|
284
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
285
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
286
|
+
|
|
287
|
+
[[package]]
|
|
288
|
+
name = "ppv-lite86"
|
|
289
|
+
version = "0.2.21"
|
|
290
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
291
|
+
checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
|
|
292
|
+
dependencies = [
|
|
293
|
+
"zerocopy",
|
|
294
|
+
]
|
|
295
|
+
|
|
296
|
+
[[package]]
|
|
297
|
+
name = "proc-macro2"
|
|
298
|
+
version = "1.0.107"
|
|
299
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
300
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
301
|
+
dependencies = [
|
|
302
|
+
"unicode-ident",
|
|
303
|
+
]
|
|
304
|
+
|
|
305
|
+
[[package]]
|
|
306
|
+
name = "proptest"
|
|
307
|
+
version = "1.11.0"
|
|
308
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
309
|
+
checksum = "4b45fcc2344c680f5025fe57779faef368840d0bd1f42f216291f0dc4ace4744"
|
|
310
|
+
dependencies = [
|
|
311
|
+
"bit-set",
|
|
312
|
+
"bit-vec",
|
|
313
|
+
"bitflags",
|
|
314
|
+
"num-traits",
|
|
315
|
+
"rand",
|
|
316
|
+
"rand_chacha",
|
|
317
|
+
"rand_xorshift",
|
|
318
|
+
"regex-syntax",
|
|
319
|
+
"rusty-fork",
|
|
320
|
+
"tempfile",
|
|
321
|
+
"unarray",
|
|
322
|
+
]
|
|
323
|
+
|
|
324
|
+
[[package]]
|
|
325
|
+
name = "quick-error"
|
|
326
|
+
version = "1.2.3"
|
|
327
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
328
|
+
checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0"
|
|
329
|
+
|
|
330
|
+
[[package]]
|
|
331
|
+
name = "quote"
|
|
332
|
+
version = "1.0.47"
|
|
333
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
334
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
335
|
+
dependencies = [
|
|
336
|
+
"proc-macro2",
|
|
337
|
+
]
|
|
338
|
+
|
|
339
|
+
[[package]]
|
|
340
|
+
name = "r-efi"
|
|
341
|
+
version = "5.3.0"
|
|
342
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
343
|
+
checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
|
|
344
|
+
|
|
345
|
+
[[package]]
|
|
346
|
+
name = "r-efi"
|
|
347
|
+
version = "6.0.0"
|
|
348
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
349
|
+
checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
|
|
350
|
+
|
|
351
|
+
[[package]]
|
|
352
|
+
name = "rand"
|
|
353
|
+
version = "0.9.5"
|
|
354
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
355
|
+
checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41"
|
|
356
|
+
dependencies = [
|
|
357
|
+
"rand_chacha",
|
|
358
|
+
"rand_core",
|
|
359
|
+
]
|
|
360
|
+
|
|
361
|
+
[[package]]
|
|
362
|
+
name = "rand_chacha"
|
|
363
|
+
version = "0.9.0"
|
|
364
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
365
|
+
checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"
|
|
366
|
+
dependencies = [
|
|
367
|
+
"ppv-lite86",
|
|
368
|
+
"rand_core",
|
|
369
|
+
]
|
|
370
|
+
|
|
371
|
+
[[package]]
|
|
372
|
+
name = "rand_core"
|
|
373
|
+
version = "0.9.5"
|
|
374
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
375
|
+
checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c"
|
|
376
|
+
dependencies = [
|
|
377
|
+
"getrandom 0.3.4",
|
|
378
|
+
]
|
|
379
|
+
|
|
380
|
+
[[package]]
|
|
381
|
+
name = "rand_xorshift"
|
|
382
|
+
version = "0.4.0"
|
|
383
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
384
|
+
checksum = "513962919efc330f829edb2535844d1b912b0fbe2ca165d613e4e8788bb05a5a"
|
|
385
|
+
dependencies = [
|
|
386
|
+
"rand_core",
|
|
387
|
+
]
|
|
388
|
+
|
|
389
|
+
[[package]]
|
|
390
|
+
name = "rb-sys"
|
|
391
|
+
version = "0.9.128"
|
|
392
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
393
|
+
checksum = "45ca28513560e56cfb79a62b1fce363c73af170a182024ce880c77ee9429920a"
|
|
394
|
+
dependencies = [
|
|
395
|
+
"rb-sys-build",
|
|
396
|
+
]
|
|
397
|
+
|
|
398
|
+
[[package]]
|
|
399
|
+
name = "rb-sys-build"
|
|
400
|
+
version = "0.9.128"
|
|
401
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
402
|
+
checksum = "ce04b2c55eff3a21aaa623fcc655d94373238e72cac6b3e1a3641ff31649f99a"
|
|
403
|
+
dependencies = [
|
|
404
|
+
"bindgen",
|
|
405
|
+
"lazy_static",
|
|
406
|
+
"proc-macro2",
|
|
407
|
+
"quote",
|
|
408
|
+
"regex",
|
|
409
|
+
"shell-words",
|
|
410
|
+
"syn",
|
|
411
|
+
]
|
|
412
|
+
|
|
413
|
+
[[package]]
|
|
414
|
+
name = "rb-sys-env"
|
|
415
|
+
version = "0.1.2"
|
|
416
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
417
|
+
checksum = "a35802679f07360454b418a5d1735c89716bde01d35b1560fc953c1415a0b3bb"
|
|
418
|
+
|
|
419
|
+
[[package]]
|
|
420
|
+
name = "regex"
|
|
421
|
+
version = "1.13.1"
|
|
422
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
423
|
+
checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
|
|
424
|
+
dependencies = [
|
|
425
|
+
"aho-corasick",
|
|
426
|
+
"memchr",
|
|
427
|
+
"regex-automata",
|
|
428
|
+
"regex-syntax",
|
|
429
|
+
]
|
|
430
|
+
|
|
431
|
+
[[package]]
|
|
432
|
+
name = "regex-automata"
|
|
433
|
+
version = "0.4.18"
|
|
434
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
435
|
+
checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
|
|
436
|
+
dependencies = [
|
|
437
|
+
"aho-corasick",
|
|
438
|
+
"memchr",
|
|
439
|
+
"regex-syntax",
|
|
440
|
+
]
|
|
441
|
+
|
|
442
|
+
[[package]]
|
|
443
|
+
name = "regex-syntax"
|
|
444
|
+
version = "0.8.11"
|
|
445
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
446
|
+
checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
|
|
447
|
+
|
|
448
|
+
[[package]]
|
|
449
|
+
name = "rustc-hash"
|
|
450
|
+
version = "2.1.3"
|
|
451
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
452
|
+
checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
|
|
453
|
+
|
|
454
|
+
[[package]]
|
|
455
|
+
name = "rustix"
|
|
456
|
+
version = "1.1.4"
|
|
457
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
458
|
+
checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
|
|
459
|
+
dependencies = [
|
|
460
|
+
"bitflags",
|
|
461
|
+
"errno",
|
|
462
|
+
"libc",
|
|
463
|
+
"linux-raw-sys",
|
|
464
|
+
"windows-sys",
|
|
465
|
+
]
|
|
466
|
+
|
|
467
|
+
[[package]]
|
|
468
|
+
name = "rusty-fork"
|
|
469
|
+
version = "0.3.1"
|
|
470
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
471
|
+
checksum = "cc6bf79ff24e648f6da1f8d1f011e9cac26491b619e6b9280f2b47f1774e6ee2"
|
|
472
|
+
dependencies = [
|
|
473
|
+
"fnv",
|
|
474
|
+
"quick-error",
|
|
475
|
+
"tempfile",
|
|
476
|
+
"wait-timeout",
|
|
477
|
+
]
|
|
478
|
+
|
|
479
|
+
[[package]]
|
|
480
|
+
name = "scrubber_rb"
|
|
481
|
+
version = "0.1.0"
|
|
482
|
+
dependencies = [
|
|
483
|
+
"aho-corasick",
|
|
484
|
+
"magnus",
|
|
485
|
+
"proptest",
|
|
486
|
+
"rb-sys",
|
|
487
|
+
"rb-sys-env",
|
|
488
|
+
"regex",
|
|
489
|
+
"sha2",
|
|
490
|
+
]
|
|
491
|
+
|
|
492
|
+
[[package]]
|
|
493
|
+
name = "seq-macro"
|
|
494
|
+
version = "0.3.6"
|
|
495
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
496
|
+
checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc"
|
|
497
|
+
|
|
498
|
+
[[package]]
|
|
499
|
+
name = "sha2"
|
|
500
|
+
version = "0.10.9"
|
|
501
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
502
|
+
checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
|
|
503
|
+
dependencies = [
|
|
504
|
+
"cfg-if",
|
|
505
|
+
"cpufeatures",
|
|
506
|
+
"digest",
|
|
507
|
+
]
|
|
508
|
+
|
|
509
|
+
[[package]]
|
|
510
|
+
name = "shell-words"
|
|
511
|
+
version = "1.1.1"
|
|
512
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
513
|
+
checksum = "dc6fe69c597f9c37bfeeeeeb33da3530379845f10be461a66d16d03eca2ded77"
|
|
514
|
+
|
|
515
|
+
[[package]]
|
|
516
|
+
name = "shlex"
|
|
517
|
+
version = "1.3.0"
|
|
518
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
519
|
+
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
|
520
|
+
|
|
521
|
+
[[package]]
|
|
522
|
+
name = "syn"
|
|
523
|
+
version = "2.0.119"
|
|
524
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
525
|
+
checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
|
|
526
|
+
dependencies = [
|
|
527
|
+
"proc-macro2",
|
|
528
|
+
"quote",
|
|
529
|
+
"unicode-ident",
|
|
530
|
+
]
|
|
531
|
+
|
|
532
|
+
[[package]]
|
|
533
|
+
name = "tempfile"
|
|
534
|
+
version = "3.27.0"
|
|
535
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
536
|
+
checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
|
|
537
|
+
dependencies = [
|
|
538
|
+
"fastrand",
|
|
539
|
+
"getrandom 0.4.3",
|
|
540
|
+
"once_cell",
|
|
541
|
+
"rustix",
|
|
542
|
+
"windows-sys",
|
|
543
|
+
]
|
|
544
|
+
|
|
545
|
+
[[package]]
|
|
546
|
+
name = "typenum"
|
|
547
|
+
version = "1.20.1"
|
|
548
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
549
|
+
checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
|
|
550
|
+
|
|
551
|
+
[[package]]
|
|
552
|
+
name = "unarray"
|
|
553
|
+
version = "0.1.4"
|
|
554
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
555
|
+
checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94"
|
|
556
|
+
|
|
557
|
+
[[package]]
|
|
558
|
+
name = "unicode-ident"
|
|
559
|
+
version = "1.0.24"
|
|
560
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
561
|
+
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
|
562
|
+
|
|
563
|
+
[[package]]
|
|
564
|
+
name = "version_check"
|
|
565
|
+
version = "0.9.5"
|
|
566
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
567
|
+
checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
|
|
568
|
+
|
|
569
|
+
[[package]]
|
|
570
|
+
name = "wait-timeout"
|
|
571
|
+
version = "0.2.1"
|
|
572
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
573
|
+
checksum = "09ac3b126d3914f9849036f826e054cbabdc8519970b8998ddaf3b5bd3c65f11"
|
|
574
|
+
dependencies = [
|
|
575
|
+
"libc",
|
|
576
|
+
]
|
|
577
|
+
|
|
578
|
+
[[package]]
|
|
579
|
+
name = "wasip2"
|
|
580
|
+
version = "1.0.4+wasi-0.2.12"
|
|
581
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
582
|
+
checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487"
|
|
583
|
+
dependencies = [
|
|
584
|
+
"wit-bindgen",
|
|
585
|
+
]
|
|
586
|
+
|
|
587
|
+
[[package]]
|
|
588
|
+
name = "windows-link"
|
|
589
|
+
version = "0.2.1"
|
|
590
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
591
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
|
592
|
+
|
|
593
|
+
[[package]]
|
|
594
|
+
name = "windows-sys"
|
|
595
|
+
version = "0.61.2"
|
|
596
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
597
|
+
checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
|
|
598
|
+
dependencies = [
|
|
599
|
+
"windows-link",
|
|
600
|
+
]
|
|
601
|
+
|
|
602
|
+
[[package]]
|
|
603
|
+
name = "wit-bindgen"
|
|
604
|
+
version = "0.57.1"
|
|
605
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
606
|
+
checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
|
|
607
|
+
|
|
608
|
+
[[package]]
|
|
609
|
+
name = "zerocopy"
|
|
610
|
+
version = "0.8.56"
|
|
611
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
612
|
+
checksum = "556764e583adb45a9f8d413c2a147fa7e8d821e48e12b14fd560b607998b75eb"
|
|
613
|
+
dependencies = [
|
|
614
|
+
"zerocopy-derive",
|
|
615
|
+
]
|
|
616
|
+
|
|
617
|
+
[[package]]
|
|
618
|
+
name = "zerocopy-derive"
|
|
619
|
+
version = "0.8.56"
|
|
620
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
621
|
+
checksum = "f2ab42fc20575779bd240faa45f94a74256f755c0fa9e89f0ede20d91d0cdfc1"
|
|
622
|
+
dependencies = [
|
|
623
|
+
"proc-macro2",
|
|
624
|
+
"quote",
|
|
625
|
+
"syn",
|
|
626
|
+
]
|
data/Cargo.toml
ADDED
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Nikhil Nelson
|
|
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 all
|
|
13
|
+
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 THE
|
|
21
|
+
SOFTWARE.
|