blake3ruby 0.3.1 → 0.4.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8fa0061a1f4fc0cd9021587e2de7e0bb3a4b4ae3507bd6e08ef88400c54c2c5f
4
- data.tar.gz: 89510a40184c8a4eeac721de5d39137e4e37626faf0c31498c38ba78b9cd8432
3
+ metadata.gz: 5c24667eaecf66d73b718150f6d36c0a569a93c854f0d81800b04d75872410fc
4
+ data.tar.gz: 4f71ebc8dc20275a636054b56f1ced0c7eede8045520e23f070a33b96efd6e2b
5
5
  SHA512:
6
- metadata.gz: 2078bfc07a938c8654209b242f5d508726d7a73832facb024e539234286f728663a082145d4bb6c966a818c18a82f170a45512b864d6ff2bc6768f3bd203c695
7
- data.tar.gz: 89e15e0a7e521a2bc8929e02c44295caeba608e58d370c42f9f62ee5a4015c5bba0814a61242ec69beb27f2ccf7dddb578beb3ec234699a5c088f00093b8beaf
6
+ metadata.gz: c3a9801a2b539d37cc755fe94bc7900e348034ab612ef6c4e537aedda7129d3a25d14402735eb1f81dbe131577e31cbdb41c099d3454f86a5bacb0d82c527d13
7
+ data.tar.gz: 82964745187f8852f522fa53efc12da512cbca0be963a99047ab17a81a9230d413e40132d25581ea0cff3c1bda1d1aa19599aa3f5748e231516ecb15d654db39
data/.rubocop.yml CHANGED
@@ -1,10 +1,10 @@
1
- require:
1
+ plugins:
2
2
  - rubocop-rspec
3
3
  - rubocop-rake
4
4
 
5
5
  AllCops:
6
6
  NewCops: enable
7
- TargetRubyVersion: 3.1
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,67 +4,59 @@ version = 4
4
4
 
5
5
  [[package]]
6
6
  name = "aho-corasick"
7
- version = "1.1.3"
7
+ version = "1.1.5"
8
8
  source = "registry+https://github.com/rust-lang/crates.io-index"
9
- checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"
9
+ checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"
10
10
  dependencies = [
11
11
  "memchr",
12
12
  ]
13
13
 
14
- [[package]]
15
- name = "arrayref"
16
- version = "0.3.9"
17
- source = "registry+https://github.com/rust-lang/crates.io-index"
18
- checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb"
19
-
20
14
  [[package]]
21
15
  name = "arrayvec"
22
- version = "0.7.6"
16
+ version = "0.7.8"
23
17
  source = "registry+https://github.com/rust-lang/crates.io-index"
24
- checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"
18
+ checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56"
25
19
 
26
20
  [[package]]
27
21
  name = "bindgen"
28
- version = "0.69.5"
22
+ version = "0.72.1"
29
23
  source = "registry+https://github.com/rust-lang/crates.io-index"
30
- checksum = "271383c67ccabffb7381723dea0672a673f292304fcb45c01cc648c7a8d58088"
24
+ checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
31
25
  dependencies = [
32
26
  "bitflags",
33
27
  "cexpr",
34
28
  "clang-sys",
35
29
  "itertools",
36
- "lazy_static",
37
- "lazycell",
38
30
  "proc-macro2",
39
31
  "quote",
40
32
  "regex",
41
33
  "rustc-hash",
42
- "shlex",
34
+ "shlex 1.3.0",
43
35
  "syn",
44
36
  ]
45
37
 
46
38
  [[package]]
47
39
  name = "bitflags"
48
- version = "2.9.0"
40
+ version = "2.13.2"
49
41
  source = "registry+https://github.com/rust-lang/crates.io-index"
50
- checksum = "5c8214115b7bf84099f1309324e63141d4c5d7cc26862f97a0a857dbefe165bd"
42
+ checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
51
43
 
52
44
  [[package]]
53
45
  name = "blake3"
54
- version = "1.8.2"
46
+ version = "1.8.7"
55
47
  source = "registry+https://github.com/rust-lang/crates.io-index"
56
- checksum = "3888aaa89e4b2a40fca9848e400f6a658a5a3978de7be858e209cafa8be9a4a0"
48
+ checksum = "6d9e454fc11f76977dc803893aff6304ed33d6a26efae8696573bea74baa27ae"
57
49
  dependencies = [
58
- "arrayref",
59
50
  "arrayvec",
60
51
  "cc",
61
52
  "cfg-if",
62
53
  "constant_time_eq",
54
+ "cpufeatures",
63
55
  ]
64
56
 
65
57
  [[package]]
66
58
  name = "blake3ruby"
67
- version = "0.3.1"
59
+ version = "0.4.1"
68
60
  dependencies = [
69
61
  "blake3",
70
62
  "hex",
@@ -73,11 +65,12 @@ dependencies = [
73
65
 
74
66
  [[package]]
75
67
  name = "cc"
76
- version = "1.2.20"
68
+ version = "1.10.0"
77
69
  source = "registry+https://github.com/rust-lang/crates.io-index"
78
- checksum = "04da6a0d40b948dfc4fa8f5bbf402b0fc1a64a28dbf7d12ffd683550f2c1b63a"
70
+ checksum = "86e055fa6e3e40ad6187ba25b6855eeb635d5271f8e0f0e1e9a5826b8d75bea0"
79
71
  dependencies = [
80
- "shlex",
72
+ "find-msvc-tools",
73
+ "shlex 2.0.1",
81
74
  ]
82
75
 
83
76
  [[package]]
@@ -91,15 +84,15 @@ dependencies = [
91
84
 
92
85
  [[package]]
93
86
  name = "cfg-if"
94
- version = "1.0.0"
87
+ version = "1.0.5"
95
88
  source = "registry+https://github.com/rust-lang/crates.io-index"
96
- checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
89
+ checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
97
90
 
98
91
  [[package]]
99
92
  name = "clang-sys"
100
- version = "1.8.1"
93
+ version = "1.9.1"
101
94
  source = "registry+https://github.com/rust-lang/crates.io-index"
102
- checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4"
95
+ checksum = "157a8ba7b480713b56f4c09fd13fc3e0a22a5dfab8097ba61cbc5feef950788a"
103
96
  dependencies = [
104
97
  "glob",
105
98
  "libc",
@@ -108,21 +101,36 @@ dependencies = [
108
101
 
109
102
  [[package]]
110
103
  name = "constant_time_eq"
104
+ version = "0.4.2"
105
+ source = "registry+https://github.com/rust-lang/crates.io-index"
106
+ checksum = "3d52eff69cd5e647efe296129160853a42795992097e8af39800e1060caeea9b"
107
+
108
+ [[package]]
109
+ name = "cpufeatures"
111
110
  version = "0.3.1"
112
111
  source = "registry+https://github.com/rust-lang/crates.io-index"
113
- checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6"
112
+ checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566"
113
+ dependencies = [
114
+ "libc",
115
+ ]
114
116
 
115
117
  [[package]]
116
118
  name = "either"
117
- version = "1.15.0"
119
+ version = "1.19.0"
118
120
  source = "registry+https://github.com/rust-lang/crates.io-index"
119
- checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
121
+ checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
122
+
123
+ [[package]]
124
+ name = "find-msvc-tools"
125
+ version = "0.1.15"
126
+ source = "registry+https://github.com/rust-lang/crates.io-index"
127
+ checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48"
120
128
 
121
129
  [[package]]
122
130
  name = "glob"
123
- version = "0.3.2"
131
+ version = "0.3.4"
124
132
  source = "registry+https://github.com/rust-lang/crates.io-index"
125
- checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
133
+ checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"
126
134
 
127
135
  [[package]]
128
136
  name = "hex"
@@ -132,46 +140,40 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
132
140
 
133
141
  [[package]]
134
142
  name = "itertools"
135
- version = "0.12.1"
143
+ version = "0.13.0"
136
144
  source = "registry+https://github.com/rust-lang/crates.io-index"
137
- checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"
145
+ checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
138
146
  dependencies = [
139
147
  "either",
140
148
  ]
141
149
 
142
150
  [[package]]
143
151
  name = "lazy_static"
144
- version = "1.5.0"
145
- source = "registry+https://github.com/rust-lang/crates.io-index"
146
- checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
147
-
148
- [[package]]
149
- name = "lazycell"
150
- version = "1.3.0"
152
+ version = "1.5.1"
151
153
  source = "registry+https://github.com/rust-lang/crates.io-index"
152
- checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
154
+ checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb"
153
155
 
154
156
  [[package]]
155
157
  name = "libc"
156
- version = "0.2.172"
158
+ version = "0.2.191"
157
159
  source = "registry+https://github.com/rust-lang/crates.io-index"
158
- checksum = "d750af042f7ef4f724306de029d18836c26c1765a54a6a3f094cbd23a7267ffa"
160
+ checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
159
161
 
160
162
  [[package]]
161
163
  name = "libloading"
162
- version = "0.8.6"
164
+ version = "0.8.9"
163
165
  source = "registry+https://github.com/rust-lang/crates.io-index"
164
- checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34"
166
+ checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
165
167
  dependencies = [
166
168
  "cfg-if",
167
- "windows-targets",
169
+ "windows-link",
168
170
  ]
169
171
 
170
172
  [[package]]
171
173
  name = "magnus"
172
- version = "0.7.1"
174
+ version = "0.9.3"
173
175
  source = "registry+https://github.com/rust-lang/crates.io-index"
174
- checksum = "3d87ae53030f3a22e83879e666cb94e58a7bdf31706878a0ba48752994146dab"
176
+ checksum = "40ef424404d166cbb71c8b8d19c9c589c748c4547c1afa1928c5504299f6c713"
175
177
  dependencies = [
176
178
  "magnus-macros",
177
179
  "rb-sys",
@@ -181,9 +183,9 @@ dependencies = [
181
183
 
182
184
  [[package]]
183
185
  name = "magnus-macros"
184
- version = "0.6.0"
186
+ version = "0.9.1"
185
187
  source = "registry+https://github.com/rust-lang/crates.io-index"
186
- checksum = "5968c820e2960565f647819f5928a42d6e874551cab9d88d75e3e0660d7f71e3"
188
+ checksum = "9dafde2eeb66f090e0f326112323eb8324b12cb32b5d1210e541d3df6b0ce77e"
187
189
  dependencies = [
188
190
  "proc-macro2",
189
191
  "quote",
@@ -192,9 +194,9 @@ dependencies = [
192
194
 
193
195
  [[package]]
194
196
  name = "memchr"
195
- version = "2.7.4"
197
+ version = "2.8.3"
196
198
  source = "registry+https://github.com/rust-lang/crates.io-index"
197
- checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
199
+ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
198
200
 
199
201
  [[package]]
200
202
  name = "minimal-lexical"
@@ -214,36 +216,36 @@ dependencies = [
214
216
 
215
217
  [[package]]
216
218
  name = "proc-macro2"
217
- version = "1.0.95"
219
+ version = "1.0.107"
218
220
  source = "registry+https://github.com/rust-lang/crates.io-index"
219
- checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778"
221
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
220
222
  dependencies = [
221
223
  "unicode-ident",
222
224
  ]
223
225
 
224
226
  [[package]]
225
227
  name = "quote"
226
- version = "1.0.40"
228
+ version = "1.0.47"
227
229
  source = "registry+https://github.com/rust-lang/crates.io-index"
228
- checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
230
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
229
231
  dependencies = [
230
232
  "proc-macro2",
231
233
  ]
232
234
 
233
235
  [[package]]
234
236
  name = "rb-sys"
235
- version = "0.9.111"
237
+ version = "0.9.130"
236
238
  source = "registry+https://github.com/rust-lang/crates.io-index"
237
- checksum = "becea799ce051c16fb140be80f5e7cf781070f99ca099332383c2b17861249af"
239
+ checksum = "02faf625bb10ba893e3ae620f19c9fb1b5f8fcae0fe4eb86bb3f2230fad75edb"
238
240
  dependencies = [
239
241
  "rb-sys-build",
240
242
  ]
241
243
 
242
244
  [[package]]
243
245
  name = "rb-sys-build"
244
- version = "0.9.111"
246
+ version = "0.9.130"
245
247
  source = "registry+https://github.com/rust-lang/crates.io-index"
246
- checksum = "64691175abc704862f60a9ca8ef06174080cc50615f2bf1d4759f46db18b4d29"
248
+ checksum = "05be6f9c86fe5482808162826f6c047d093b3670582296c770de1d94f8066694"
247
249
  dependencies = [
248
250
  "bindgen",
249
251
  "lazy_static",
@@ -256,15 +258,15 @@ dependencies = [
256
258
 
257
259
  [[package]]
258
260
  name = "rb-sys-env"
259
- version = "0.1.2"
261
+ version = "0.2.3"
260
262
  source = "registry+https://github.com/rust-lang/crates.io-index"
261
- checksum = "a35802679f07360454b418a5d1735c89716bde01d35b1560fc953c1415a0b3bb"
263
+ checksum = "cca7ad6a7e21e72151d56fe2495a259b5670e204c3adac41ee7ef676ea08117a"
262
264
 
263
265
  [[package]]
264
266
  name = "regex"
265
- version = "1.11.1"
267
+ version = "1.13.1"
266
268
  source = "registry+https://github.com/rust-lang/crates.io-index"
267
- checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
269
+ checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
268
270
  dependencies = [
269
271
  "aho-corasick",
270
272
  "memchr",
@@ -274,9 +276,9 @@ dependencies = [
274
276
 
275
277
  [[package]]
276
278
  name = "regex-automata"
277
- version = "0.4.9"
279
+ version = "0.4.18"
278
280
  source = "registry+https://github.com/rust-lang/crates.io-index"
279
- checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
281
+ checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
280
282
  dependencies = [
281
283
  "aho-corasick",
282
284
  "memchr",
@@ -285,15 +287,15 @@ dependencies = [
285
287
 
286
288
  [[package]]
287
289
  name = "regex-syntax"
288
- version = "0.8.5"
290
+ version = "0.8.11"
289
291
  source = "registry+https://github.com/rust-lang/crates.io-index"
290
- checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
292
+ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
291
293
 
292
294
  [[package]]
293
295
  name = "rustc-hash"
294
- version = "1.1.0"
296
+ version = "2.1.3"
295
297
  source = "registry+https://github.com/rust-lang/crates.io-index"
296
- checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
298
+ checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
297
299
 
298
300
  [[package]]
299
301
  name = "seq-macro"
@@ -303,9 +305,9 @@ checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc"
303
305
 
304
306
  [[package]]
305
307
  name = "shell-words"
306
- version = "1.1.0"
308
+ version = "1.1.1"
307
309
  source = "registry+https://github.com/rust-lang/crates.io-index"
308
- checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde"
310
+ checksum = "dc6fe69c597f9c37bfeeeeeb33da3530379845f10be461a66d16d03eca2ded77"
309
311
 
310
312
  [[package]]
311
313
  name = "shlex"
@@ -313,11 +315,17 @@ version = "1.3.0"
313
315
  source = "registry+https://github.com/rust-lang/crates.io-index"
314
316
  checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
315
317
 
318
+ [[package]]
319
+ name = "shlex"
320
+ version = "2.0.1"
321
+ source = "registry+https://github.com/rust-lang/crates.io-index"
322
+ checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
323
+
316
324
  [[package]]
317
325
  name = "syn"
318
- version = "2.0.101"
326
+ version = "2.0.119"
319
327
  source = "registry+https://github.com/rust-lang/crates.io-index"
320
- checksum = "8ce2b7fc941b3a24138a0a7cf8e858bfc6a992e7978a068a5c760deb0ed43caf"
328
+ checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
321
329
  dependencies = [
322
330
  "proc-macro2",
323
331
  "quote",
@@ -326,70 +334,12 @@ dependencies = [
326
334
 
327
335
  [[package]]
328
336
  name = "unicode-ident"
329
- version = "1.0.18"
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"
337
+ version = "1.0.27"
336
338
  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
- ]
339
+ checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
348
340
 
349
341
  [[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"
370
- source = "registry+https://github.com/rust-lang/crates.io-index"
371
- checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
372
-
373
- [[package]]
374
- name = "windows_i686_msvc"
375
- version = "0.52.6"
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"
342
+ name = "windows-link"
343
+ version = "0.2.1"
394
344
  source = "registry+https://github.com/rust-lang/crates.io-index"
395
- checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
345
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
data/Gemfile.lock CHANGED
@@ -1,67 +1,68 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- blake3ruby (0.3.1)
4
+ blake3ruby (0.4.1)
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.1)
11
- json (2.11.3)
12
- language_server-protocol (3.17.0.4)
10
+ diff-lcs (1.6.2)
11
+ json (3.1.0)
12
+ language_server-protocol (3.17.0.6)
13
13
  lint_roller (1.1.0)
14
- parallel (1.27.0)
15
- parser (3.3.8.0)
14
+ parallel (2.3.0)
15
+ parser (3.3.13.0)
16
16
  ast (~> 2.4.1)
17
17
  racc
18
- prism (1.4.0)
18
+ prism (1.9.0)
19
19
  racc (1.8.1)
20
20
  rainbow (3.1.1)
21
- rake (13.2.1)
22
- rake-compiler (1.3.0)
21
+ rake (13.4.2)
22
+ rake-compiler (1.3.2)
23
23
  rake
24
- rake-compiler-dock (1.9.1)
25
- rb_sys (0.9.111)
26
- rake-compiler-dock (= 1.9.1)
27
- regexp_parser (2.10.0)
28
- rspec (3.13.0)
24
+ rake-compiler-dock (1.12.0)
25
+ rb_sys (0.9.130)
26
+ rake-compiler-dock (= 1.12.0)
27
+ regexp_parser (2.13.1)
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.3)
32
+ rspec-core (3.13.6)
33
33
  rspec-support (~> 3.13.0)
34
- rspec-expectations (3.13.3)
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.2)
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.2)
41
- rubocop (1.75.3)
42
- json (~> 2.3)
40
+ rspec-support (3.13.7)
41
+ rubocop (1.92.1)
42
+ json (>= 2.3)
43
43
  language_server-protocol (~> 3.17.0.2)
44
44
  lint_roller (~> 1.1.0)
45
- parallel (~> 1.10)
45
+ parallel (>= 1.10)
46
46
  parser (>= 3.3.0.2)
47
47
  rainbow (>= 2.2.2, < 4.0)
48
- regexp_parser (>= 2.9.3, < 3.0)
49
- rubocop-ast (>= 1.44.0, < 2.0)
48
+ regexp_parser (>= 2.11.3, < 3.0)
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.44.1)
52
+ rubocop-ast (1.50.0)
53
53
  parser (>= 3.3.7.2)
54
- prism (~> 1.4)
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.6.0)
58
+ rubocop-rspec (3.10.2)
59
59
  lint_roller (~> 1.1)
60
- rubocop (~> 1.72, >= 1.72.1)
60
+ regexp_parser (>= 2.0)
61
+ rubocop (~> 1.86, >= 1.86.2)
61
62
  ruby-progressbar (1.13.0)
62
- unicode-display_width (3.1.4)
63
- unicode-emoji (~> 4.0, >= 4.0.4)
64
- unicode-emoji (4.0.4)
63
+ unicode-display_width (3.3.0)
64
+ unicode-emoji (~> 4.3)
65
+ unicode-emoji (4.3.0)
65
66
 
66
67
  PLATFORMS
67
68
  aarch64-linux
@@ -84,4 +85,4 @@ DEPENDENCIES
84
85
  rubocop-rspec
85
86
 
86
87
  BUNDLED WITH
87
- 2.6.7
88
+ 4.0.14
data/README.md CHANGED
@@ -5,11 +5,11 @@
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.1, 3.2, 3.3 and 3.4.
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.
12
- Minimally, you will need Rust 1.6 or later.
12
+ Minimally, you will need Rust 1.85 or later (required by the magnus 0.9 bindings).
13
13
 
14
14
 
15
15
  ## Installation
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "blake3ruby"
3
- version = "0.3.1"
3
+ version = "0.4.1"
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.7.1" }
12
+ magnus = { version = "0.9.3" }
13
13
  hex = { version = "0.4.3" }
14
- blake3 = { version = "1.7" }
14
+ blake3 = { version = "1.8.7" }
15
15
 
16
16
  [package.metadata.magnus]
17
17
  rbconfig = true
@@ -1,4 +1,4 @@
1
- use magnus::{define_module, class, function, method, prelude::*, Error};
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", class::object())?;
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))?;
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Blake3ruby
4
- VERSION = "0.3.1"
4
+ VERSION = "0.4.1"
5
5
  end
data/sig/blake3ruby.rbs CHANGED
@@ -4,12 +4,12 @@ end
4
4
 
5
5
  module Digest
6
6
  module Blake3
7
- def self.hexdigest(subject: String) -> String
8
- def self.derive_key(context: String, key: String) -> String
7
+ def self.hexdigest: (String subject) -> String
8
+ def self.derive_key: (String context, String key) -> String
9
9
 
10
10
  class Hasher
11
11
  def self.new: () -> Digest::Blake3::Hasher
12
- def update: (subject: String) -> Digest::Blake3::Hasher
12
+ def update: (String subject) -> Digest::Blake3::Hasher
13
13
  def finalize: () -> String
14
14
  end
15
15
  end
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.3.1
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nightforge
@@ -27,7 +27,6 @@ files:
27
27
  - LICENSE.txt
28
28
  - README.md
29
29
  - Rakefile
30
- - blake3ruby.gemspec
31
30
  - ext/blake3ruby/Cargo.toml
32
31
  - ext/blake3ruby/extconf.rb
33
32
  - ext/blake3ruby/src/lib.rs
@@ -49,14 +48,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
49
48
  requirements:
50
49
  - - ">="
51
50
  - !ruby/object:Gem::Version
52
- version: '3.1'
51
+ version: '3.3'
53
52
  required_rubygems_version: !ruby/object:Gem::Requirement
54
53
  requirements:
55
54
  - - ">="
56
55
  - !ruby/object:Gem::Version
57
56
  version: 3.3.11
58
57
  requirements: []
59
- rubygems_version: 3.6.7
58
+ rubygems_version: 4.0.14
60
59
  specification_version: 4
61
60
  summary: Ruby bindings for the blake3 hash function
62
61
  test_files: []
data/blake3ruby.gemspec DELETED
@@ -1,34 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/blake3ruby/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "blake3ruby"
7
- spec.version = Blake3ruby::VERSION
8
- spec.authors = ["Nightforge"]
9
- spec.email = ["modo00@gmail.com"]
10
-
11
- spec.summary = "Ruby bindings for the blake3 hash function"
12
- spec.description = "Ruby bindings for the blake3 hash function using the Rust implementation"
13
- spec.homepage = "https://github.com/Nightforge/blake3ruby"
14
- spec.required_ruby_version = ">= 3.1"
15
- spec.required_rubygems_version = ">= 3.3.11"
16
- spec.licenses = %w[MIT Ruby]
17
-
18
- spec.metadata["homepage_uri"] = spec.homepage
19
- spec.metadata["source_code_uri"] = "https://github.com/Nightforge/blake3ruby"
20
- spec.metadata["rubygems_mfa_required"] = "true"
21
-
22
- # Specify which files should be added to the gem when it is released.
23
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24
- spec.files = Dir.chdir(__dir__) do
25
- `git ls-files -z`.split("\x0").reject do |f|
26
- (File.expand_path(f) == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
27
- end
28
- end
29
- spec.files << %w[Cargo.lock LICENSE.txt README.md]
30
- spec.bindir = "exe"
31
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
- spec.require_paths = ["lib"]
33
- spec.extensions = ["ext/blake3ruby/Cargo.toml"]
34
- end