blake3-rb 1.5.4.4 → 1.5.5.pre0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Cargo.lock +43 -43
- data/ext/digest/blake3_ext/Cargo.toml +1 -1
- data/ext/digest/blake3_ext/src/bindings.rs +7 -4
- data/ext/digest/blake3_ext/src/lib.rs +1 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6b8cca7ab593d87ce6fc73be0759d71de3e76a6362e356db485a20e99010c22
|
4
|
+
data.tar.gz: e635e62bcc8b0490d662171e2f389519b21dcda8cf0f5bc8cb8862ceadca2d0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bff79327e22e9dfacba8da428ff9a3db9c4a9b9c38ec862cea0a1164b5b4e4e5da2f7efc3ca9fef2f350efc9550282aff90d5d4c7adc1ec5195b90bf37012119
|
7
|
+
data.tar.gz: 6b198ad658862780f0dd0e5e0aae3e9e355a587266c5792e0b6a8a75f31e27988e26e4834d65be6fe0ccb7bbe338e7dff8f36ab0935d516a503bebef90627a0e
|
data/Cargo.lock
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This file is automatically @generated by Cargo.
|
2
2
|
# It is not intended for manual editing.
|
3
|
-
version =
|
3
|
+
version = 4
|
4
4
|
|
5
5
|
[[package]]
|
6
6
|
name = "aho-corasick"
|
@@ -13,9 +13,9 @@ dependencies = [
|
|
13
13
|
|
14
14
|
[[package]]
|
15
15
|
name = "arrayref"
|
16
|
-
version = "0.3.
|
16
|
+
version = "0.3.9"
|
17
17
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
18
|
-
checksum = "
|
18
|
+
checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb"
|
19
19
|
|
20
20
|
[[package]]
|
21
21
|
name = "arrayvec"
|
@@ -25,9 +25,9 @@ checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"
|
|
25
25
|
|
26
26
|
[[package]]
|
27
27
|
name = "bindgen"
|
28
|
-
version = "0.69.
|
28
|
+
version = "0.69.5"
|
29
29
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
30
|
-
checksum = "
|
30
|
+
checksum = "271383c67ccabffb7381723dea0672a673f292304fcb45c01cc648c7a8d58088"
|
31
31
|
dependencies = [
|
32
32
|
"bitflags",
|
33
33
|
"cexpr",
|
@@ -45,15 +45,15 @@ dependencies = [
|
|
45
45
|
|
46
46
|
[[package]]
|
47
47
|
name = "bitflags"
|
48
|
-
version = "2.
|
48
|
+
version = "2.7.0"
|
49
49
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
50
|
-
checksum = "
|
50
|
+
checksum = "1be3f42a67d6d345ecd59f675f3f012d6974981560836e938c22b424b85ce1be"
|
51
51
|
|
52
52
|
[[package]]
|
53
53
|
name = "blake3"
|
54
|
-
version = "1.5.
|
54
|
+
version = "1.5.5"
|
55
55
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
56
|
-
checksum = "
|
56
|
+
checksum = "b8ee0c1824c4dea5b5f81736aff91bae041d2c07ee1192bec91054e10e3e601e"
|
57
57
|
dependencies = [
|
58
58
|
"arrayref",
|
59
59
|
"arrayvec",
|
@@ -82,9 +82,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
|
|
82
82
|
|
83
83
|
[[package]]
|
84
84
|
name = "cc"
|
85
|
-
version = "1.
|
85
|
+
version = "1.2.8"
|
86
86
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
87
|
-
checksum = "
|
87
|
+
checksum = "ad0cf6e91fde44c773c6ee7ec6bba798504641a8bc2eb7e37a04ffbf4dfaa55a"
|
88
88
|
dependencies = [
|
89
89
|
"shlex",
|
90
90
|
]
|
@@ -117,9 +117,9 @@ dependencies = [
|
|
117
117
|
|
118
118
|
[[package]]
|
119
119
|
name = "constant_time_eq"
|
120
|
-
version = "0.3.
|
120
|
+
version = "0.3.1"
|
121
121
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
122
|
-
checksum = "
|
122
|
+
checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6"
|
123
123
|
|
124
124
|
[[package]]
|
125
125
|
name = "either"
|
@@ -140,9 +140,9 @@ dependencies = [
|
|
140
140
|
|
141
141
|
[[package]]
|
142
142
|
name = "glob"
|
143
|
-
version = "0.3.
|
143
|
+
version = "0.3.2"
|
144
144
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
145
|
-
checksum = "
|
145
|
+
checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
|
146
146
|
|
147
147
|
[[package]]
|
148
148
|
name = "hex"
|
@@ -173,15 +173,15 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
|
|
173
173
|
|
174
174
|
[[package]]
|
175
175
|
name = "libc"
|
176
|
-
version = "0.2.
|
176
|
+
version = "0.2.169"
|
177
177
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
178
|
-
checksum = "
|
178
|
+
checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a"
|
179
179
|
|
180
180
|
[[package]]
|
181
181
|
name = "libloading"
|
182
|
-
version = "0.8.
|
182
|
+
version = "0.8.6"
|
183
183
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
184
|
-
checksum = "
|
184
|
+
checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34"
|
185
185
|
dependencies = [
|
186
186
|
"cfg-if",
|
187
187
|
"windows-targets",
|
@@ -220,18 +220,18 @@ dependencies = [
|
|
220
220
|
|
221
221
|
[[package]]
|
222
222
|
name = "proc-macro2"
|
223
|
-
version = "1.0.
|
223
|
+
version = "1.0.93"
|
224
224
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
225
|
-
checksum = "
|
225
|
+
checksum = "60946a68e5f9d28b0dc1c21bb8a97ee7d018a8b322fa57838ba31cc878e22d99"
|
226
226
|
dependencies = [
|
227
227
|
"unicode-ident",
|
228
228
|
]
|
229
229
|
|
230
230
|
[[package]]
|
231
231
|
name = "quote"
|
232
|
-
version = "1.0.
|
232
|
+
version = "1.0.38"
|
233
233
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
234
|
-
checksum = "
|
234
|
+
checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc"
|
235
235
|
dependencies = [
|
236
236
|
"proc-macro2",
|
237
237
|
]
|
@@ -268,18 +268,18 @@ dependencies = [
|
|
268
268
|
|
269
269
|
[[package]]
|
270
270
|
name = "rb-sys"
|
271
|
-
version = "0.9.
|
271
|
+
version = "0.9.107"
|
272
272
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
273
|
-
checksum = "
|
273
|
+
checksum = "56aaf81d9efc195606456e91896297ee5ab2002381539f8ed1ba6b4f2e467f3b"
|
274
274
|
dependencies = [
|
275
275
|
"rb-sys-build",
|
276
276
|
]
|
277
277
|
|
278
278
|
[[package]]
|
279
279
|
name = "rb-sys-build"
|
280
|
-
version = "0.9.
|
280
|
+
version = "0.9.107"
|
281
281
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
282
|
-
checksum = "
|
282
|
+
checksum = "035b513baded6df2b90a8559efb1973c47ba42e16c21c5f0863dd2aa4dbd6abe"
|
283
283
|
dependencies = [
|
284
284
|
"bindgen",
|
285
285
|
"lazy_static",
|
@@ -292,15 +292,15 @@ dependencies = [
|
|
292
292
|
|
293
293
|
[[package]]
|
294
294
|
name = "rb-sys-env"
|
295
|
-
version = "0.
|
295
|
+
version = "0.2.2"
|
296
296
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
297
|
-
checksum = "
|
297
|
+
checksum = "08f8d2924cf136a1315e2b4c7460a39f62ef11ee5d522df9b2750fab55b868b6"
|
298
298
|
|
299
299
|
[[package]]
|
300
300
|
name = "rb-sys-test-helpers"
|
301
|
-
version = "0.2.
|
301
|
+
version = "0.2.2"
|
302
302
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
303
|
-
checksum = "
|
303
|
+
checksum = "d6ccb543252549fc28f5d290322e041cd682bd199a8e1caaa813fb6e63dd221e"
|
304
304
|
dependencies = [
|
305
305
|
"rb-sys",
|
306
306
|
"rb-sys-env",
|
@@ -309,9 +309,9 @@ dependencies = [
|
|
309
309
|
|
310
310
|
[[package]]
|
311
311
|
name = "rb-sys-test-helpers-macros"
|
312
|
-
version = "0.2.
|
312
|
+
version = "0.2.2"
|
313
313
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
314
|
-
checksum = "
|
314
|
+
checksum = "1508caed999cb659ab1b3308e7b2985186b3b550ef5492dc18da71b560c55615"
|
315
315
|
dependencies = [
|
316
316
|
"quote",
|
317
317
|
"syn",
|
@@ -319,9 +319,9 @@ dependencies = [
|
|
319
319
|
|
320
320
|
[[package]]
|
321
321
|
name = "regex"
|
322
|
-
version = "1.
|
322
|
+
version = "1.11.1"
|
323
323
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
324
|
-
checksum = "
|
324
|
+
checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
|
325
325
|
dependencies = [
|
326
326
|
"aho-corasick",
|
327
327
|
"memchr",
|
@@ -331,9 +331,9 @@ dependencies = [
|
|
331
331
|
|
332
332
|
[[package]]
|
333
333
|
name = "regex-automata"
|
334
|
-
version = "0.4.
|
334
|
+
version = "0.4.9"
|
335
335
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
336
|
-
checksum = "
|
336
|
+
checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
|
337
337
|
dependencies = [
|
338
338
|
"aho-corasick",
|
339
339
|
"memchr",
|
@@ -342,9 +342,9 @@ dependencies = [
|
|
342
342
|
|
343
343
|
[[package]]
|
344
344
|
name = "regex-syntax"
|
345
|
-
version = "0.8.
|
345
|
+
version = "0.8.5"
|
346
346
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
347
|
-
checksum = "
|
347
|
+
checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
|
348
348
|
|
349
349
|
[[package]]
|
350
350
|
name = "rustc-hash"
|
@@ -366,9 +366,9 @@ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
|
366
366
|
|
367
367
|
[[package]]
|
368
368
|
name = "syn"
|
369
|
-
version = "2.0.
|
369
|
+
version = "2.0.96"
|
370
370
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
371
|
-
checksum = "
|
371
|
+
checksum = "d5d0adab1ae378d7f53bdebc67a39f1f151407ef230f0ce2883572f5d8985c80"
|
372
372
|
dependencies = [
|
373
373
|
"proc-macro2",
|
374
374
|
"quote",
|
@@ -377,9 +377,9 @@ dependencies = [
|
|
377
377
|
|
378
378
|
[[package]]
|
379
379
|
name = "unicode-ident"
|
380
|
-
version = "1.0.
|
380
|
+
version = "1.0.14"
|
381
381
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
382
|
-
checksum = "
|
382
|
+
checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83"
|
383
383
|
|
384
384
|
[[package]]
|
385
385
|
name = "wasi"
|
@@ -19,9 +19,12 @@ pub struct RbDigestMetadataT {
|
|
19
19
|
pub finish_func: RbDigestHashFinishFuncT,
|
20
20
|
}
|
21
21
|
|
22
|
-
#[
|
22
|
+
#[allow(dead_code)]
|
23
|
+
type WrapperType = unsafe extern "C" fn(&'static RbDigestMetadataT) -> VALUE;
|
24
|
+
|
25
|
+
#[cfg(any(digest_use_rb_ext_resolve_symbol, ruby_gte_3_4))]
|
23
26
|
pub unsafe fn rb_digest_make_metadata(meta: &'static RbDigestMetadataT) -> VALUE {
|
24
|
-
static mut WRAPPER: Option<
|
27
|
+
static mut WRAPPER: Option<WrapperType> = None;
|
25
28
|
|
26
29
|
unsafe fn load_wrapper() {
|
27
30
|
use rb_sys::rb_ext_resolve_symbol;
|
@@ -36,7 +39,7 @@ pub unsafe fn rb_digest_make_metadata(meta: &'static RbDigestMetadataT) -> VALUE
|
|
36
39
|
let symbol_ptr = rb_ext_resolve_symbol(lib_name, symbol_name);
|
37
40
|
|
38
41
|
if !symbol_ptr.is_null() {
|
39
|
-
WRAPPER = Some(std::mem::transmute(symbol_ptr));
|
42
|
+
WRAPPER = Some(std::mem::transmute::<*mut c_void, WrapperType>(symbol_ptr));
|
40
43
|
} else {
|
41
44
|
panic!("Failed to resolve rb_digest_wrap_metadata");
|
42
45
|
}
|
@@ -50,7 +53,7 @@ pub unsafe fn rb_digest_make_metadata(meta: &'static RbDigestMetadataT) -> VALUE
|
|
50
53
|
panic!("Failed to resolve rb_digest_wrap_metadata");
|
51
54
|
}
|
52
55
|
|
53
|
-
#[cfg(not(digest_use_rb_ext_resolve_symbol))]
|
56
|
+
#[cfg(not(any(digest_use_rb_ext_resolve_symbol, ruby_gte_3_4)))]
|
54
57
|
pub unsafe fn rb_digest_make_metadata(meta: &'static RbDigestMetadataT) -> VALUE {
|
55
58
|
use rb_sys::{rb_data_object_wrap, rb_obj_freeze};
|
56
59
|
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
|
+
version: 1.5.5.pre0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Ker-Seymer
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rb_sys
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0.9'
|
27
27
|
description: Provides native bindings to the Blake3 hash function for Ruby.
|
28
|
-
email:
|
28
|
+
email:
|
29
29
|
executables: []
|
30
30
|
extensions:
|
31
31
|
- ext/digest/blake3_ext/extconf.rb
|
@@ -49,7 +49,7 @@ metadata:
|
|
49
49
|
allowed_push_host: https://rubygems.org
|
50
50
|
homepage_uri: https://github.com/Shopify/blake3-ruby
|
51
51
|
source_code_uri: https://github.com/Shopify/blake3-ruby
|
52
|
-
post_install_message:
|
52
|
+
post_install_message:
|
53
53
|
rdoc_options: []
|
54
54
|
require_paths:
|
55
55
|
- lib
|
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
65
|
version: '0'
|
66
66
|
requirements: []
|
67
67
|
rubygems_version: 3.5.3
|
68
|
-
signing_key:
|
68
|
+
signing_key:
|
69
69
|
specification_version: 4
|
70
70
|
summary: Blake3 hash function bindings for Ruby.
|
71
71
|
test_files: []
|