blake3-rb 1.5.4.2 → 1.5.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Cargo.lock +89 -56
- data/ext/digest/blake3_ext/Cargo.toml +6 -0
- data/ext/digest/blake3_ext/extconf.rb +20 -1
- data/ext/digest/blake3_ext/src/bindings.rs +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88b32261c080720b09e08ed347dc233f42ce2789e78337265808065ae0291a3c
|
4
|
+
data.tar.gz: 0c38d6a0f176f3530e934822c3ff5affbd35f6a19815d3f6620592dae6ca57eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0d01e8a6de2dd27f76276bea362139057e0a51e307c0bfaf96f5bd033c66dabfb559b5c34f108a7ade103bd671259473d48cf49cc8df3fa98891c244289e6f0
|
7
|
+
data.tar.gz: 916625f8630da12bebd77c8ddccd3c4e9a63cf6ebec1d921c93df0c423e46c52a620904b4928500e46d71dc29f7a869c4a48f20bd5d237ad721f32a28d86af4b
|
data/Cargo.lock
CHANGED
@@ -13,15 +13,15 @@ dependencies = [
|
|
13
13
|
|
14
14
|
[[package]]
|
15
15
|
name = "arrayref"
|
16
|
-
version = "0.3.
|
16
|
+
version = "0.3.8"
|
17
17
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
18
|
-
checksum = "
|
18
|
+
checksum = "9d151e35f61089500b617991b791fc8bfd237ae50cd5950803758a179b41e67a"
|
19
19
|
|
20
20
|
[[package]]
|
21
21
|
name = "arrayvec"
|
22
|
-
version = "0.7.
|
22
|
+
version = "0.7.6"
|
23
23
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
24
|
-
checksum = "
|
24
|
+
checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"
|
25
25
|
|
26
26
|
[[package]]
|
27
27
|
name = "bindgen"
|
@@ -45,15 +45,15 @@ dependencies = [
|
|
45
45
|
|
46
46
|
[[package]]
|
47
47
|
name = "bitflags"
|
48
|
-
version = "2.
|
48
|
+
version = "2.6.0"
|
49
49
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
50
|
-
checksum = "
|
50
|
+
checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
|
51
51
|
|
52
52
|
[[package]]
|
53
53
|
name = "blake3"
|
54
|
-
version = "1.5.
|
54
|
+
version = "1.5.4"
|
55
55
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
56
|
-
checksum = "
|
56
|
+
checksum = "d82033247fd8e890df8f740e407ad4d038debb9eb1f40533fffb32e7d17dc6f7"
|
57
57
|
dependencies = [
|
58
58
|
"arrayref",
|
59
59
|
"arrayvec",
|
@@ -74,11 +74,20 @@ dependencies = [
|
|
74
74
|
"rb-sys-test-helpers",
|
75
75
|
]
|
76
76
|
|
77
|
+
[[package]]
|
78
|
+
name = "byteorder"
|
79
|
+
version = "1.5.0"
|
80
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
81
|
+
checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
|
82
|
+
|
77
83
|
[[package]]
|
78
84
|
name = "cc"
|
79
|
-
version = "1.
|
85
|
+
version = "1.1.13"
|
80
86
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
81
|
-
checksum = "
|
87
|
+
checksum = "72db2f7947ecee9b03b510377e8bb9077afa27176fdbff55c51027e976fdcc48"
|
88
|
+
dependencies = [
|
89
|
+
"shlex",
|
90
|
+
]
|
82
91
|
|
83
92
|
[[package]]
|
84
93
|
name = "cexpr"
|
@@ -97,9 +106,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|
97
106
|
|
98
107
|
[[package]]
|
99
108
|
name = "clang-sys"
|
100
|
-
version = "1.
|
109
|
+
version = "1.8.1"
|
101
110
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
102
|
-
checksum = "
|
111
|
+
checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4"
|
103
112
|
dependencies = [
|
104
113
|
"glob",
|
105
114
|
"libc",
|
@@ -114,9 +123,9 @@ checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2"
|
|
114
123
|
|
115
124
|
[[package]]
|
116
125
|
name = "either"
|
117
|
-
version = "1.
|
126
|
+
version = "1.13.0"
|
118
127
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
119
|
-
checksum = "
|
128
|
+
checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0"
|
120
129
|
|
121
130
|
[[package]]
|
122
131
|
name = "getrandom"
|
@@ -152,9 +161,9 @@ dependencies = [
|
|
152
161
|
|
153
162
|
[[package]]
|
154
163
|
name = "lazy_static"
|
155
|
-
version = "1.
|
164
|
+
version = "1.5.0"
|
156
165
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
157
|
-
checksum = "
|
166
|
+
checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
158
167
|
|
159
168
|
[[package]]
|
160
169
|
name = "lazycell"
|
@@ -164,15 +173,15 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
|
|
164
173
|
|
165
174
|
[[package]]
|
166
175
|
name = "libc"
|
167
|
-
version = "0.2.
|
176
|
+
version = "0.2.158"
|
168
177
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
169
|
-
checksum = "
|
178
|
+
checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439"
|
170
179
|
|
171
180
|
[[package]]
|
172
181
|
name = "libloading"
|
173
|
-
version = "0.8.
|
182
|
+
version = "0.8.5"
|
174
183
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
175
|
-
checksum = "
|
184
|
+
checksum = "4979f22fdb869068da03c9f7528f8297c6fd2606bc3a4affe42e6a823fdb8da4"
|
176
185
|
dependencies = [
|
177
186
|
"cfg-if",
|
178
187
|
"windows-targets",
|
@@ -180,9 +189,9 @@ dependencies = [
|
|
180
189
|
|
181
190
|
[[package]]
|
182
191
|
name = "memchr"
|
183
|
-
version = "2.7.
|
192
|
+
version = "2.7.4"
|
184
193
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
185
|
-
checksum = "
|
194
|
+
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
|
186
195
|
|
187
196
|
[[package]]
|
188
197
|
name = "minimal-lexical"
|
@@ -202,15 +211,18 @@ dependencies = [
|
|
202
211
|
|
203
212
|
[[package]]
|
204
213
|
name = "ppv-lite86"
|
205
|
-
version = "0.2.
|
214
|
+
version = "0.2.20"
|
206
215
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
207
|
-
checksum = "
|
216
|
+
checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04"
|
217
|
+
dependencies = [
|
218
|
+
"zerocopy",
|
219
|
+
]
|
208
220
|
|
209
221
|
[[package]]
|
210
222
|
name = "proc-macro2"
|
211
|
-
version = "1.0.
|
223
|
+
version = "1.0.86"
|
212
224
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
213
|
-
checksum = "
|
225
|
+
checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
|
214
226
|
dependencies = [
|
215
227
|
"unicode-ident",
|
216
228
|
]
|
@@ -256,18 +268,18 @@ dependencies = [
|
|
256
268
|
|
257
269
|
[[package]]
|
258
270
|
name = "rb-sys"
|
259
|
-
version = "0.9.
|
271
|
+
version = "0.9.102"
|
260
272
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
261
|
-
checksum = "
|
273
|
+
checksum = "df4dec4b1d304c3b308a2cd86b1216ea45dd4361f4e9fa056f108332d0a450c1"
|
262
274
|
dependencies = [
|
263
275
|
"rb-sys-build",
|
264
276
|
]
|
265
277
|
|
266
278
|
[[package]]
|
267
279
|
name = "rb-sys-build"
|
268
|
-
version = "0.9.
|
280
|
+
version = "0.9.102"
|
269
281
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
270
|
-
checksum = "
|
282
|
+
checksum = "1d71de3e29d174b8fb17b5d4470f27d7aa2605f8a9d05fda0d3aeff30e05a570"
|
271
283
|
dependencies = [
|
272
284
|
"bindgen",
|
273
285
|
"lazy_static",
|
@@ -307,9 +319,9 @@ dependencies = [
|
|
307
319
|
|
308
320
|
[[package]]
|
309
321
|
name = "regex"
|
310
|
-
version = "1.10.
|
322
|
+
version = "1.10.6"
|
311
323
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
312
|
-
checksum = "
|
324
|
+
checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619"
|
313
325
|
dependencies = [
|
314
326
|
"aho-corasick",
|
315
327
|
"memchr",
|
@@ -319,9 +331,9 @@ dependencies = [
|
|
319
331
|
|
320
332
|
[[package]]
|
321
333
|
name = "regex-automata"
|
322
|
-
version = "0.4.
|
334
|
+
version = "0.4.7"
|
323
335
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
324
|
-
checksum = "
|
336
|
+
checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df"
|
325
337
|
dependencies = [
|
326
338
|
"aho-corasick",
|
327
339
|
"memchr",
|
@@ -330,9 +342,9 @@ dependencies = [
|
|
330
342
|
|
331
343
|
[[package]]
|
332
344
|
name = "regex-syntax"
|
333
|
-
version = "0.8.
|
345
|
+
version = "0.8.4"
|
334
346
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
335
|
-
checksum = "
|
347
|
+
checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b"
|
336
348
|
|
337
349
|
[[package]]
|
338
350
|
name = "rustc-hash"
|
@@ -354,9 +366,9 @@ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
|
354
366
|
|
355
367
|
[[package]]
|
356
368
|
name = "syn"
|
357
|
-
version = "2.0.
|
369
|
+
version = "2.0.75"
|
358
370
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
359
|
-
checksum = "
|
371
|
+
checksum = "f6af063034fc1935ede7be0122941bafa9bacb949334d090b77ca98b5817c7d9"
|
360
372
|
dependencies = [
|
361
373
|
"proc-macro2",
|
362
374
|
"quote",
|
@@ -377,9 +389,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
|
|
377
389
|
|
378
390
|
[[package]]
|
379
391
|
name = "windows-targets"
|
380
|
-
version = "0.52.
|
392
|
+
version = "0.52.6"
|
381
393
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
382
|
-
checksum = "
|
394
|
+
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
|
383
395
|
dependencies = [
|
384
396
|
"windows_aarch64_gnullvm",
|
385
397
|
"windows_aarch64_msvc",
|
@@ -393,48 +405,69 @@ dependencies = [
|
|
393
405
|
|
394
406
|
[[package]]
|
395
407
|
name = "windows_aarch64_gnullvm"
|
396
|
-
version = "0.52.
|
408
|
+
version = "0.52.6"
|
397
409
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
398
|
-
checksum = "
|
410
|
+
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
|
399
411
|
|
400
412
|
[[package]]
|
401
413
|
name = "windows_aarch64_msvc"
|
402
|
-
version = "0.52.
|
414
|
+
version = "0.52.6"
|
403
415
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
404
|
-
checksum = "
|
416
|
+
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
|
405
417
|
|
406
418
|
[[package]]
|
407
419
|
name = "windows_i686_gnu"
|
408
|
-
version = "0.52.
|
420
|
+
version = "0.52.6"
|
409
421
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
410
|
-
checksum = "
|
422
|
+
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
|
411
423
|
|
412
424
|
[[package]]
|
413
425
|
name = "windows_i686_gnullvm"
|
414
|
-
version = "0.52.
|
426
|
+
version = "0.52.6"
|
415
427
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
416
|
-
checksum = "
|
428
|
+
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
|
417
429
|
|
418
430
|
[[package]]
|
419
431
|
name = "windows_i686_msvc"
|
420
|
-
version = "0.52.
|
432
|
+
version = "0.52.6"
|
421
433
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
422
|
-
checksum = "
|
434
|
+
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
|
423
435
|
|
424
436
|
[[package]]
|
425
437
|
name = "windows_x86_64_gnu"
|
426
|
-
version = "0.52.
|
438
|
+
version = "0.52.6"
|
427
439
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
428
|
-
checksum = "
|
440
|
+
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
|
429
441
|
|
430
442
|
[[package]]
|
431
443
|
name = "windows_x86_64_gnullvm"
|
432
|
-
version = "0.52.
|
444
|
+
version = "0.52.6"
|
433
445
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
434
|
-
checksum = "
|
446
|
+
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
|
435
447
|
|
436
448
|
[[package]]
|
437
449
|
name = "windows_x86_64_msvc"
|
438
|
-
version = "0.52.
|
450
|
+
version = "0.52.6"
|
451
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
452
|
+
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
|
453
|
+
|
454
|
+
[[package]]
|
455
|
+
name = "zerocopy"
|
456
|
+
version = "0.7.35"
|
457
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
458
|
+
checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0"
|
459
|
+
dependencies = [
|
460
|
+
"byteorder",
|
461
|
+
"zerocopy-derive",
|
462
|
+
]
|
463
|
+
|
464
|
+
[[package]]
|
465
|
+
name = "zerocopy-derive"
|
466
|
+
version = "0.7.35"
|
439
467
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
440
|
-
checksum = "
|
468
|
+
checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
|
469
|
+
dependencies = [
|
470
|
+
"proc-macro2",
|
471
|
+
"quote",
|
472
|
+
"syn",
|
473
|
+
]
|
@@ -3,4 +3,23 @@
|
|
3
3
|
require "mkmf"
|
4
4
|
require "rb_sys/mkmf"
|
5
5
|
|
6
|
-
|
6
|
+
# Detect when DIGEST_USE_RB_EXT_RESOLVE_SYMBOL is defined truthy,
|
7
|
+
# which indicates rb_ext_resolve_symbol("digest.so", "rb_digest_wrap_metadata")
|
8
|
+
# will work with the version of Digest we're building against.
|
9
|
+
digest_use_rb_ext_resolve_symbol = try_compile(<<~C)
|
10
|
+
#include <ruby/digest.h>
|
11
|
+
|
12
|
+
#if !defined(DIGEST_USE_RB_EXT_RESOLVE_SYMBOL)
|
13
|
+
# error DIGEST_USE_RB_EXT_RESOLVE_SYMBOL not defined
|
14
|
+
#endif
|
15
|
+
#if !DIGEST_USE_RB_EXT_RESOLVE_SYMBOL
|
16
|
+
# error DIGEST_USE_RB_EXT_RESOLVE_SYMBOL is 0
|
17
|
+
#endif
|
18
|
+
C
|
19
|
+
puts("digest_use_rb_ext_resolve_symbol=#{digest_use_rb_ext_resolve_symbol}")
|
20
|
+
|
21
|
+
create_rust_makefile("digest/blake3/blake3_ext") do |r|
|
22
|
+
if digest_use_rb_ext_resolve_symbol
|
23
|
+
r.extra_rustflags = ["--cfg digest_use_rb_ext_resolve_symbol"]
|
24
|
+
end
|
25
|
+
end
|
@@ -19,7 +19,7 @@ pub struct RbDigestMetadataT {
|
|
19
19
|
pub finish_func: RbDigestHashFinishFuncT,
|
20
20
|
}
|
21
21
|
|
22
|
-
#[cfg(
|
22
|
+
#[cfg(digest_use_rb_ext_resolve_symbol)]
|
23
23
|
pub unsafe fn rb_digest_make_metadata(meta: &'static RbDigestMetadataT) -> VALUE {
|
24
24
|
static mut WRAPPER: Option<unsafe extern "C" fn(&'static RbDigestMetadataT) -> VALUE> = None;
|
25
25
|
|
@@ -50,7 +50,7 @@ pub unsafe fn rb_digest_make_metadata(meta: &'static RbDigestMetadataT) -> VALUE
|
|
50
50
|
panic!("Failed to resolve rb_digest_wrap_metadata");
|
51
51
|
}
|
52
52
|
|
53
|
-
#[cfg(not(
|
53
|
+
#[cfg(not(digest_use_rb_ext_resolve_symbol))]
|
54
54
|
pub unsafe fn rb_digest_make_metadata(meta: &'static RbDigestMetadataT) -> VALUE {
|
55
55
|
use rb_sys::{rb_data_object_wrap, rb_obj_freeze};
|
56
56
|
let data = rb_data_object_wrap(
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blake3-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.4.
|
4
|
+
version: 1.5.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Ker-Seymer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rb_sys
|