blake3ruby 0.3.1 → 0.4.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 +4 -4
- data/.rubocop.yml +6 -2
- data/Cargo.lock +74 -123
- data/Gemfile.lock +29 -29
- data/README.md +1 -1
- data/blake3ruby.gemspec +1 -1
- data/ext/blake3ruby/Cargo.toml +3 -3
- data/ext/blake3ruby/src/lib.rs +5 -5
- data/lib/blake3ruby/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4fd3696dfdcb166381ec52b867454a59f4dd0b9de50b9ce980be56de2f011a90
|
|
4
|
+
data.tar.gz: 61b3a546b4dade8ac937b67043cce7e930404ae0d6694bc6812429b377b06e2a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f298b73ae99cc159486a30e599c4871f2ae410f66badbdc299bf36e28a69745b830cd5ec001339d62a3cb161b0b00d333c3a3742b4104e287b07311dd0932a60
|
|
7
|
+
data.tar.gz: 16a609f7de2d9d13f43d2d9638fe45869af39f983caa1fc7b8af30c62764fa430f5dfaf03b432b538eb89392034236770642ed2e17f04bbf917b83b705834292
|
data/.rubocop.yml
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
plugins:
|
|
2
2
|
- rubocop-rspec
|
|
3
3
|
- rubocop-rake
|
|
4
4
|
|
|
5
5
|
AllCops:
|
|
6
6
|
NewCops: enable
|
|
7
|
-
TargetRubyVersion: 3.
|
|
7
|
+
TargetRubyVersion: 3.3
|
|
8
8
|
|
|
9
9
|
Style/StringLiterals:
|
|
10
10
|
Enabled: true
|
|
@@ -16,3 +16,7 @@ Style/StringLiteralsInInterpolation:
|
|
|
16
16
|
|
|
17
17
|
Layout/LineLength:
|
|
18
18
|
Max: 120
|
|
19
|
+
|
|
20
|
+
RSpec/Output:
|
|
21
|
+
Exclude:
|
|
22
|
+
- spec/benchmark.rb
|
data/Cargo.lock
CHANGED
|
@@ -4,9 +4,9 @@ version = 4
|
|
|
4
4
|
|
|
5
5
|
[[package]]
|
|
6
6
|
name = "aho-corasick"
|
|
7
|
-
version = "1.1.
|
|
7
|
+
version = "1.1.4"
|
|
8
8
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
-
checksum = "
|
|
9
|
+
checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
|
|
10
10
|
dependencies = [
|
|
11
11
|
"memchr",
|
|
12
12
|
]
|
|
@@ -25,16 +25,14 @@ checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"
|
|
|
25
25
|
|
|
26
26
|
[[package]]
|
|
27
27
|
name = "bindgen"
|
|
28
|
-
version = "0.
|
|
28
|
+
version = "0.72.1"
|
|
29
29
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
30
|
-
checksum = "
|
|
30
|
+
checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
|
|
31
31
|
dependencies = [
|
|
32
32
|
"bitflags",
|
|
33
33
|
"cexpr",
|
|
34
34
|
"clang-sys",
|
|
35
35
|
"itertools",
|
|
36
|
-
"lazy_static",
|
|
37
|
-
"lazycell",
|
|
38
36
|
"proc-macro2",
|
|
39
37
|
"quote",
|
|
40
38
|
"regex",
|
|
@@ -45,26 +43,27 @@ dependencies = [
|
|
|
45
43
|
|
|
46
44
|
[[package]]
|
|
47
45
|
name = "bitflags"
|
|
48
|
-
version = "2.
|
|
46
|
+
version = "2.11.1"
|
|
49
47
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
50
|
-
checksum = "
|
|
48
|
+
checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
|
|
51
49
|
|
|
52
50
|
[[package]]
|
|
53
51
|
name = "blake3"
|
|
54
|
-
version = "1.8.
|
|
52
|
+
version = "1.8.5"
|
|
55
53
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
56
|
-
checksum = "
|
|
54
|
+
checksum = "0aa83c34e62843d924f905e0f5c866eb1dd6545fc4d719e803d9ba6030371fce"
|
|
57
55
|
dependencies = [
|
|
58
56
|
"arrayref",
|
|
59
57
|
"arrayvec",
|
|
60
58
|
"cc",
|
|
61
59
|
"cfg-if",
|
|
62
60
|
"constant_time_eq",
|
|
61
|
+
"cpufeatures",
|
|
63
62
|
]
|
|
64
63
|
|
|
65
64
|
[[package]]
|
|
66
65
|
name = "blake3ruby"
|
|
67
|
-
version = "0.
|
|
66
|
+
version = "0.4.0"
|
|
68
67
|
dependencies = [
|
|
69
68
|
"blake3",
|
|
70
69
|
"hex",
|
|
@@ -73,10 +72,11 @@ dependencies = [
|
|
|
73
72
|
|
|
74
73
|
[[package]]
|
|
75
74
|
name = "cc"
|
|
76
|
-
version = "1.2.
|
|
75
|
+
version = "1.2.61"
|
|
77
76
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
78
|
-
checksum = "
|
|
77
|
+
checksum = "d16d90359e986641506914ba71350897565610e87ce0ad9e6f28569db3dd5c6d"
|
|
79
78
|
dependencies = [
|
|
79
|
+
"find-msvc-tools",
|
|
80
80
|
"shlex",
|
|
81
81
|
]
|
|
82
82
|
|
|
@@ -91,9 +91,9 @@ dependencies = [
|
|
|
91
91
|
|
|
92
92
|
[[package]]
|
|
93
93
|
name = "cfg-if"
|
|
94
|
-
version = "1.0.
|
|
94
|
+
version = "1.0.4"
|
|
95
95
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
96
|
-
checksum = "
|
|
96
|
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
97
97
|
|
|
98
98
|
[[package]]
|
|
99
99
|
name = "clang-sys"
|
|
@@ -108,9 +108,18 @@ dependencies = [
|
|
|
108
108
|
|
|
109
109
|
[[package]]
|
|
110
110
|
name = "constant_time_eq"
|
|
111
|
-
version = "0.
|
|
111
|
+
version = "0.4.2"
|
|
112
112
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
113
|
-
checksum = "
|
|
113
|
+
checksum = "3d52eff69cd5e647efe296129160853a42795992097e8af39800e1060caeea9b"
|
|
114
|
+
|
|
115
|
+
[[package]]
|
|
116
|
+
name = "cpufeatures"
|
|
117
|
+
version = "0.3.0"
|
|
118
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
119
|
+
checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201"
|
|
120
|
+
dependencies = [
|
|
121
|
+
"libc",
|
|
122
|
+
]
|
|
114
123
|
|
|
115
124
|
[[package]]
|
|
116
125
|
name = "either"
|
|
@@ -118,11 +127,17 @@ version = "1.15.0"
|
|
|
118
127
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
119
128
|
checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
|
|
120
129
|
|
|
130
|
+
[[package]]
|
|
131
|
+
name = "find-msvc-tools"
|
|
132
|
+
version = "0.1.9"
|
|
133
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
134
|
+
checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
|
|
135
|
+
|
|
121
136
|
[[package]]
|
|
122
137
|
name = "glob"
|
|
123
|
-
version = "0.3.
|
|
138
|
+
version = "0.3.3"
|
|
124
139
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
125
|
-
checksum = "
|
|
140
|
+
checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
|
|
126
141
|
|
|
127
142
|
[[package]]
|
|
128
143
|
name = "hex"
|
|
@@ -132,9 +147,9 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
|
|
|
132
147
|
|
|
133
148
|
[[package]]
|
|
134
149
|
name = "itertools"
|
|
135
|
-
version = "0.
|
|
150
|
+
version = "0.13.0"
|
|
136
151
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
137
|
-
checksum = "
|
|
152
|
+
checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
|
|
138
153
|
dependencies = [
|
|
139
154
|
"either",
|
|
140
155
|
]
|
|
@@ -145,33 +160,27 @@ version = "1.5.0"
|
|
|
145
160
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
146
161
|
checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
|
147
162
|
|
|
148
|
-
[[package]]
|
|
149
|
-
name = "lazycell"
|
|
150
|
-
version = "1.3.0"
|
|
151
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
152
|
-
checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
|
|
153
|
-
|
|
154
163
|
[[package]]
|
|
155
164
|
name = "libc"
|
|
156
|
-
version = "0.2.
|
|
165
|
+
version = "0.2.186"
|
|
157
166
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
158
|
-
checksum = "
|
|
167
|
+
checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
|
|
159
168
|
|
|
160
169
|
[[package]]
|
|
161
170
|
name = "libloading"
|
|
162
|
-
version = "0.8.
|
|
171
|
+
version = "0.8.9"
|
|
163
172
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
164
|
-
checksum = "
|
|
173
|
+
checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
|
|
165
174
|
dependencies = [
|
|
166
175
|
"cfg-if",
|
|
167
|
-
"windows-
|
|
176
|
+
"windows-link",
|
|
168
177
|
]
|
|
169
178
|
|
|
170
179
|
[[package]]
|
|
171
180
|
name = "magnus"
|
|
172
|
-
version = "0.
|
|
181
|
+
version = "0.8.2"
|
|
173
182
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
174
|
-
checksum = "
|
|
183
|
+
checksum = "3b36a5b126bbe97eb0d02d07acfeb327036c6319fd816139a49824a83b7f9012"
|
|
175
184
|
dependencies = [
|
|
176
185
|
"magnus-macros",
|
|
177
186
|
"rb-sys",
|
|
@@ -181,9 +190,9 @@ dependencies = [
|
|
|
181
190
|
|
|
182
191
|
[[package]]
|
|
183
192
|
name = "magnus-macros"
|
|
184
|
-
version = "0.
|
|
193
|
+
version = "0.8.0"
|
|
185
194
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
186
|
-
checksum = "
|
|
195
|
+
checksum = "47607461fd8e1513cb4f2076c197d8092d921a1ea75bd08af97398f593751892"
|
|
187
196
|
dependencies = [
|
|
188
197
|
"proc-macro2",
|
|
189
198
|
"quote",
|
|
@@ -192,9 +201,9 @@ dependencies = [
|
|
|
192
201
|
|
|
193
202
|
[[package]]
|
|
194
203
|
name = "memchr"
|
|
195
|
-
version = "2.
|
|
204
|
+
version = "2.8.0"
|
|
196
205
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
197
|
-
checksum = "
|
|
206
|
+
checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
|
|
198
207
|
|
|
199
208
|
[[package]]
|
|
200
209
|
name = "minimal-lexical"
|
|
@@ -214,36 +223,36 @@ dependencies = [
|
|
|
214
223
|
|
|
215
224
|
[[package]]
|
|
216
225
|
name = "proc-macro2"
|
|
217
|
-
version = "1.0.
|
|
226
|
+
version = "1.0.106"
|
|
218
227
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
219
|
-
checksum = "
|
|
228
|
+
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
|
220
229
|
dependencies = [
|
|
221
230
|
"unicode-ident",
|
|
222
231
|
]
|
|
223
232
|
|
|
224
233
|
[[package]]
|
|
225
234
|
name = "quote"
|
|
226
|
-
version = "1.0.
|
|
235
|
+
version = "1.0.45"
|
|
227
236
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
228
|
-
checksum = "
|
|
237
|
+
checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
|
|
229
238
|
dependencies = [
|
|
230
239
|
"proc-macro2",
|
|
231
240
|
]
|
|
232
241
|
|
|
233
242
|
[[package]]
|
|
234
243
|
name = "rb-sys"
|
|
235
|
-
version = "0.9.
|
|
244
|
+
version = "0.9.127"
|
|
236
245
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
237
|
-
checksum = "
|
|
246
|
+
checksum = "d7d7c9560fe42dcffa576941394075f18a17dce89fcf718a2fa90b7dc2134d12"
|
|
238
247
|
dependencies = [
|
|
239
248
|
"rb-sys-build",
|
|
240
249
|
]
|
|
241
250
|
|
|
242
251
|
[[package]]
|
|
243
252
|
name = "rb-sys-build"
|
|
244
|
-
version = "0.9.
|
|
253
|
+
version = "0.9.127"
|
|
245
254
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
246
|
-
checksum = "
|
|
255
|
+
checksum = "f1688e8f32967ba48c89e4dfa283b57f901075f542fc7ee9c3d7c5f9091ca1d9"
|
|
247
256
|
dependencies = [
|
|
248
257
|
"bindgen",
|
|
249
258
|
"lazy_static",
|
|
@@ -256,15 +265,15 @@ dependencies = [
|
|
|
256
265
|
|
|
257
266
|
[[package]]
|
|
258
267
|
name = "rb-sys-env"
|
|
259
|
-
version = "0.
|
|
268
|
+
version = "0.2.3"
|
|
260
269
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
261
|
-
checksum = "
|
|
270
|
+
checksum = "cca7ad6a7e21e72151d56fe2495a259b5670e204c3adac41ee7ef676ea08117a"
|
|
262
271
|
|
|
263
272
|
[[package]]
|
|
264
273
|
name = "regex"
|
|
265
|
-
version = "1.
|
|
274
|
+
version = "1.12.3"
|
|
266
275
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
267
|
-
checksum = "
|
|
276
|
+
checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276"
|
|
268
277
|
dependencies = [
|
|
269
278
|
"aho-corasick",
|
|
270
279
|
"memchr",
|
|
@@ -274,9 +283,9 @@ dependencies = [
|
|
|
274
283
|
|
|
275
284
|
[[package]]
|
|
276
285
|
name = "regex-automata"
|
|
277
|
-
version = "0.4.
|
|
286
|
+
version = "0.4.14"
|
|
278
287
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
279
|
-
checksum = "
|
|
288
|
+
checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f"
|
|
280
289
|
dependencies = [
|
|
281
290
|
"aho-corasick",
|
|
282
291
|
"memchr",
|
|
@@ -285,15 +294,15 @@ dependencies = [
|
|
|
285
294
|
|
|
286
295
|
[[package]]
|
|
287
296
|
name = "regex-syntax"
|
|
288
|
-
version = "0.8.
|
|
297
|
+
version = "0.8.10"
|
|
289
298
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
290
|
-
checksum = "
|
|
299
|
+
checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a"
|
|
291
300
|
|
|
292
301
|
[[package]]
|
|
293
302
|
name = "rustc-hash"
|
|
294
|
-
version = "
|
|
303
|
+
version = "2.1.2"
|
|
295
304
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
296
|
-
checksum = "
|
|
305
|
+
checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe"
|
|
297
306
|
|
|
298
307
|
[[package]]
|
|
299
308
|
name = "seq-macro"
|
|
@@ -303,9 +312,9 @@ checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc"
|
|
|
303
312
|
|
|
304
313
|
[[package]]
|
|
305
314
|
name = "shell-words"
|
|
306
|
-
version = "1.1.
|
|
315
|
+
version = "1.1.1"
|
|
307
316
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
308
|
-
checksum = "
|
|
317
|
+
checksum = "dc6fe69c597f9c37bfeeeeeb33da3530379845f10be461a66d16d03eca2ded77"
|
|
309
318
|
|
|
310
319
|
[[package]]
|
|
311
320
|
name = "shlex"
|
|
@@ -315,9 +324,9 @@ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
|
|
315
324
|
|
|
316
325
|
[[package]]
|
|
317
326
|
name = "syn"
|
|
318
|
-
version = "2.0.
|
|
327
|
+
version = "2.0.117"
|
|
319
328
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
320
|
-
checksum = "
|
|
329
|
+
checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
|
|
321
330
|
dependencies = [
|
|
322
331
|
"proc-macro2",
|
|
323
332
|
"quote",
|
|
@@ -326,70 +335,12 @@ dependencies = [
|
|
|
326
335
|
|
|
327
336
|
[[package]]
|
|
328
337
|
name = "unicode-ident"
|
|
329
|
-
version = "1.0.
|
|
330
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
331
|
-
checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
|
|
332
|
-
|
|
333
|
-
[[package]]
|
|
334
|
-
name = "windows-targets"
|
|
335
|
-
version = "0.52.6"
|
|
336
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
337
|
-
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
|
|
338
|
-
dependencies = [
|
|
339
|
-
"windows_aarch64_gnullvm",
|
|
340
|
-
"windows_aarch64_msvc",
|
|
341
|
-
"windows_i686_gnu",
|
|
342
|
-
"windows_i686_gnullvm",
|
|
343
|
-
"windows_i686_msvc",
|
|
344
|
-
"windows_x86_64_gnu",
|
|
345
|
-
"windows_x86_64_gnullvm",
|
|
346
|
-
"windows_x86_64_msvc",
|
|
347
|
-
]
|
|
348
|
-
|
|
349
|
-
[[package]]
|
|
350
|
-
name = "windows_aarch64_gnullvm"
|
|
351
|
-
version = "0.52.6"
|
|
352
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
353
|
-
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
|
|
354
|
-
|
|
355
|
-
[[package]]
|
|
356
|
-
name = "windows_aarch64_msvc"
|
|
357
|
-
version = "0.52.6"
|
|
358
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
359
|
-
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
|
|
360
|
-
|
|
361
|
-
[[package]]
|
|
362
|
-
name = "windows_i686_gnu"
|
|
363
|
-
version = "0.52.6"
|
|
364
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
365
|
-
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
|
|
366
|
-
|
|
367
|
-
[[package]]
|
|
368
|
-
name = "windows_i686_gnullvm"
|
|
369
|
-
version = "0.52.6"
|
|
338
|
+
version = "1.0.24"
|
|
370
339
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
371
|
-
checksum = "
|
|
340
|
+
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
|
372
341
|
|
|
373
342
|
[[package]]
|
|
374
|
-
name = "
|
|
375
|
-
version = "0.
|
|
376
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
377
|
-
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
|
|
378
|
-
|
|
379
|
-
[[package]]
|
|
380
|
-
name = "windows_x86_64_gnu"
|
|
381
|
-
version = "0.52.6"
|
|
382
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
383
|
-
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
|
|
384
|
-
|
|
385
|
-
[[package]]
|
|
386
|
-
name = "windows_x86_64_gnullvm"
|
|
387
|
-
version = "0.52.6"
|
|
388
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
389
|
-
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
|
|
390
|
-
|
|
391
|
-
[[package]]
|
|
392
|
-
name = "windows_x86_64_msvc"
|
|
393
|
-
version = "0.52.6"
|
|
343
|
+
name = "windows-link"
|
|
344
|
+
version = "0.2.1"
|
|
394
345
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
395
|
-
checksum = "
|
|
346
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
data/Gemfile.lock
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
blake3ruby (0.
|
|
4
|
+
blake3ruby (0.4.0)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
8
8
|
specs:
|
|
9
9
|
ast (2.4.3)
|
|
10
|
-
diff-lcs (1.6.
|
|
11
|
-
json (2.
|
|
12
|
-
language_server-protocol (3.17.0.
|
|
10
|
+
diff-lcs (1.6.2)
|
|
11
|
+
json (2.19.4)
|
|
12
|
+
language_server-protocol (3.17.0.5)
|
|
13
13
|
lint_roller (1.1.0)
|
|
14
|
-
parallel (1.
|
|
15
|
-
parser (3.3.
|
|
14
|
+
parallel (2.1.0)
|
|
15
|
+
parser (3.3.11.1)
|
|
16
16
|
ast (~> 2.4.1)
|
|
17
17
|
racc
|
|
18
|
-
prism (1.
|
|
18
|
+
prism (1.9.0)
|
|
19
19
|
racc (1.8.1)
|
|
20
20
|
rainbow (3.1.1)
|
|
21
|
-
rake (13.2
|
|
22
|
-
rake-compiler (1.3.
|
|
21
|
+
rake (13.4.2)
|
|
22
|
+
rake-compiler (1.3.1)
|
|
23
23
|
rake
|
|
24
|
-
rake-compiler-dock (1.
|
|
25
|
-
rb_sys (0.9.
|
|
26
|
-
rake-compiler-dock (= 1.
|
|
27
|
-
regexp_parser (2.
|
|
28
|
-
rspec (3.13.
|
|
24
|
+
rake-compiler-dock (1.12.0)
|
|
25
|
+
rb_sys (0.9.127)
|
|
26
|
+
rake-compiler-dock (= 1.12.0)
|
|
27
|
+
regexp_parser (2.12.0)
|
|
28
|
+
rspec (3.13.2)
|
|
29
29
|
rspec-core (~> 3.13.0)
|
|
30
30
|
rspec-expectations (~> 3.13.0)
|
|
31
31
|
rspec-mocks (~> 3.13.0)
|
|
32
|
-
rspec-core (3.13.
|
|
32
|
+
rspec-core (3.13.6)
|
|
33
33
|
rspec-support (~> 3.13.0)
|
|
34
|
-
rspec-expectations (3.13.
|
|
34
|
+
rspec-expectations (3.13.5)
|
|
35
35
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
36
36
|
rspec-support (~> 3.13.0)
|
|
37
|
-
rspec-mocks (3.13.
|
|
37
|
+
rspec-mocks (3.13.8)
|
|
38
38
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
39
39
|
rspec-support (~> 3.13.0)
|
|
40
|
-
rspec-support (3.13.
|
|
41
|
-
rubocop (1.
|
|
40
|
+
rspec-support (3.13.7)
|
|
41
|
+
rubocop (1.86.1)
|
|
42
42
|
json (~> 2.3)
|
|
43
43
|
language_server-protocol (~> 3.17.0.2)
|
|
44
44
|
lint_roller (~> 1.1.0)
|
|
45
|
-
parallel (
|
|
45
|
+
parallel (>= 1.10)
|
|
46
46
|
parser (>= 3.3.0.2)
|
|
47
47
|
rainbow (>= 2.2.2, < 4.0)
|
|
48
48
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
49
|
-
rubocop-ast (>= 1.
|
|
49
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
50
50
|
ruby-progressbar (~> 1.7)
|
|
51
51
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
52
|
-
rubocop-ast (1.
|
|
52
|
+
rubocop-ast (1.49.1)
|
|
53
53
|
parser (>= 3.3.7.2)
|
|
54
|
-
prism (~> 1.
|
|
54
|
+
prism (~> 1.7)
|
|
55
55
|
rubocop-rake (0.7.1)
|
|
56
56
|
lint_roller (~> 1.1)
|
|
57
57
|
rubocop (>= 1.72.1)
|
|
58
|
-
rubocop-rspec (3.
|
|
58
|
+
rubocop-rspec (3.9.0)
|
|
59
59
|
lint_roller (~> 1.1)
|
|
60
|
-
rubocop (~> 1.
|
|
60
|
+
rubocop (~> 1.81)
|
|
61
61
|
ruby-progressbar (1.13.0)
|
|
62
|
-
unicode-display_width (3.
|
|
63
|
-
unicode-emoji (~> 4.
|
|
64
|
-
unicode-emoji (4.0
|
|
62
|
+
unicode-display_width (3.2.0)
|
|
63
|
+
unicode-emoji (~> 4.1)
|
|
64
|
+
unicode-emoji (4.2.0)
|
|
65
65
|
|
|
66
66
|
PLATFORMS
|
|
67
67
|
aarch64-linux
|
|
@@ -84,4 +84,4 @@ DEPENDENCIES
|
|
|
84
84
|
rubocop-rspec
|
|
85
85
|
|
|
86
86
|
BUNDLED WITH
|
|
87
|
-
|
|
87
|
+
4.0.10
|
data/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
This is a Ruby wrapper for the [BLAKE3](https://github.com/BLAKE3-team/BLAKE3) hash function written in Rust.
|
|
6
6
|
|
|
7
7
|
## Requirements
|
|
8
|
-
Tested on Ruby 3.
|
|
8
|
+
Tested on Ruby 3.3, 3.4 and 4.0.
|
|
9
9
|
You will need to have Rust installed on your system, and the `cargo` command available in your path.
|
|
10
10
|
See [here](https://www.rust-lang.org/tools/install) for instructions on how to install Rust.
|
|
11
11
|
Rust is only required to build the gem, not to use it.
|
data/blake3ruby.gemspec
CHANGED
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
|
11
11
|
spec.summary = "Ruby bindings for the blake3 hash function"
|
|
12
12
|
spec.description = "Ruby bindings for the blake3 hash function using the Rust implementation"
|
|
13
13
|
spec.homepage = "https://github.com/Nightforge/blake3ruby"
|
|
14
|
-
spec.required_ruby_version = ">= 3.
|
|
14
|
+
spec.required_ruby_version = ">= 3.3"
|
|
15
15
|
spec.required_rubygems_version = ">= 3.3.11"
|
|
16
16
|
spec.licenses = %w[MIT Ruby]
|
|
17
17
|
|
data/ext/blake3ruby/Cargo.toml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "blake3ruby"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.4.0"
|
|
4
4
|
edition = "2021"
|
|
5
5
|
authors = ["Nightforge <modo00@gmail.com>"]
|
|
6
6
|
publish = false
|
|
@@ -9,9 +9,9 @@ publish = false
|
|
|
9
9
|
crate-type = ["cdylib"]
|
|
10
10
|
|
|
11
11
|
[dependencies]
|
|
12
|
-
magnus = { version = "0.
|
|
12
|
+
magnus = { version = "0.8.2" }
|
|
13
13
|
hex = { version = "0.4.3" }
|
|
14
|
-
blake3 = { version = "1.
|
|
14
|
+
blake3 = { version = "1.8.5" }
|
|
15
15
|
|
|
16
16
|
[package.metadata.magnus]
|
|
17
17
|
rbconfig = true
|
data/ext/blake3ruby/src/lib.rs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
use magnus::{
|
|
1
|
+
use magnus::{function, method, prelude::*, Error, Ruby};
|
|
2
2
|
|
|
3
3
|
fn hexdigest(subject: String) -> String {
|
|
4
4
|
let hash = blake3::hash(subject.as_bytes());
|
|
@@ -38,14 +38,14 @@ impl MutHasher {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
#[magnus::init]
|
|
41
|
-
fn init() -> Result<(), Error> {
|
|
42
|
-
let digest = define_module("Digest")?;
|
|
41
|
+
fn init(ruby: &Ruby) -> Result<(), Error> {
|
|
42
|
+
let digest = ruby.define_module("Digest")?;
|
|
43
43
|
let blake3 = digest.define_module("Blake3")?;
|
|
44
|
-
|
|
44
|
+
|
|
45
45
|
blake3.define_singleton_method("hexdigest", function!(hexdigest, 1))?;
|
|
46
46
|
blake3.define_singleton_method("derive_key", function!(derive_key, 2))?;
|
|
47
47
|
|
|
48
|
-
let class = blake3.define_class("Hasher",
|
|
48
|
+
let class = blake3.define_class("Hasher", ruby.class_object())?;
|
|
49
49
|
class.define_singleton_method("new", function!(MutHasher::new, 0))?;
|
|
50
50
|
class.define_method("update", method!(MutHasher::update, 1))?;
|
|
51
51
|
class.define_method("finalize", method!(MutHasher::finalize, 0))?;
|
data/lib/blake3ruby/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: blake3ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nightforge
|
|
@@ -49,14 +49,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
49
49
|
requirements:
|
|
50
50
|
- - ">="
|
|
51
51
|
- !ruby/object:Gem::Version
|
|
52
|
-
version: '3.
|
|
52
|
+
version: '3.3'
|
|
53
53
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
54
|
requirements:
|
|
55
55
|
- - ">="
|
|
56
56
|
- !ruby/object:Gem::Version
|
|
57
57
|
version: 3.3.11
|
|
58
58
|
requirements: []
|
|
59
|
-
rubygems_version:
|
|
59
|
+
rubygems_version: 4.0.10
|
|
60
60
|
specification_version: 4
|
|
61
61
|
summary: Ruby bindings for the blake3 hash function
|
|
62
62
|
test_files: []
|