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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 88b32261c080720b09e08ed347dc233f42ce2789e78337265808065ae0291a3c
4
- data.tar.gz: 0c38d6a0f176f3530e934822c3ff5affbd35f6a19815d3f6620592dae6ca57eb
3
+ metadata.gz: b6b8cca7ab593d87ce6fc73be0759d71de3e76a6362e356db485a20e99010c22
4
+ data.tar.gz: e635e62bcc8b0490d662171e2f389519b21dcda8cf0f5bc8cb8862ceadca2d0c
5
5
  SHA512:
6
- metadata.gz: a0d01e8a6de2dd27f76276bea362139057e0a51e307c0bfaf96f5bd033c66dabfb559b5c34f108a7ade103bd671259473d48cf49cc8df3fa98891c244289e6f0
7
- data.tar.gz: 916625f8630da12bebd77c8ddccd3c4e9a63cf6ebec1d921c93df0c423e46c52a620904b4928500e46d71dc29f7a869c4a48f20bd5d237ad721f32a28d86af4b
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
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.8"
16
+ version = "0.3.9"
17
17
  source = "registry+https://github.com/rust-lang/crates.io-index"
18
- checksum = "9d151e35f61089500b617991b791fc8bfd237ae50cd5950803758a179b41e67a"
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.4"
28
+ version = "0.69.5"
29
29
  source = "registry+https://github.com/rust-lang/crates.io-index"
30
- checksum = "a00dc851838a2120612785d195287475a3ac45514741da670b735818822129a0"
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.6.0"
48
+ version = "2.7.0"
49
49
  source = "registry+https://github.com/rust-lang/crates.io-index"
50
- checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
50
+ checksum = "1be3f42a67d6d345ecd59f675f3f012d6974981560836e938c22b424b85ce1be"
51
51
 
52
52
  [[package]]
53
53
  name = "blake3"
54
- version = "1.5.4"
54
+ version = "1.5.5"
55
55
  source = "registry+https://github.com/rust-lang/crates.io-index"
56
- checksum = "d82033247fd8e890df8f740e407ad4d038debb9eb1f40533fffb32e7d17dc6f7"
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.1.13"
85
+ version = "1.2.8"
86
86
  source = "registry+https://github.com/rust-lang/crates.io-index"
87
- checksum = "72db2f7947ecee9b03b510377e8bb9077afa27176fdbff55c51027e976fdcc48"
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.0"
120
+ version = "0.3.1"
121
121
  source = "registry+https://github.com/rust-lang/crates.io-index"
122
- checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2"
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.1"
143
+ version = "0.3.2"
144
144
  source = "registry+https://github.com/rust-lang/crates.io-index"
145
- checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
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.158"
176
+ version = "0.2.169"
177
177
  source = "registry+https://github.com/rust-lang/crates.io-index"
178
- checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439"
178
+ checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a"
179
179
 
180
180
  [[package]]
181
181
  name = "libloading"
182
- version = "0.8.5"
182
+ version = "0.8.6"
183
183
  source = "registry+https://github.com/rust-lang/crates.io-index"
184
- checksum = "4979f22fdb869068da03c9f7528f8297c6fd2606bc3a4affe42e6a823fdb8da4"
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.86"
223
+ version = "1.0.93"
224
224
  source = "registry+https://github.com/rust-lang/crates.io-index"
225
- checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
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.36"
232
+ version = "1.0.38"
233
233
  source = "registry+https://github.com/rust-lang/crates.io-index"
234
- checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7"
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.102"
271
+ version = "0.9.107"
272
272
  source = "registry+https://github.com/rust-lang/crates.io-index"
273
- checksum = "df4dec4b1d304c3b308a2cd86b1216ea45dd4361f4e9fa056f108332d0a450c1"
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.102"
280
+ version = "0.9.107"
281
281
  source = "registry+https://github.com/rust-lang/crates.io-index"
282
- checksum = "1d71de3e29d174b8fb17b5d4470f27d7aa2605f8a9d05fda0d3aeff30e05a570"
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.1.2"
295
+ version = "0.2.2"
296
296
  source = "registry+https://github.com/rust-lang/crates.io-index"
297
- checksum = "a35802679f07360454b418a5d1735c89716bde01d35b1560fc953c1415a0b3bb"
297
+ checksum = "08f8d2924cf136a1315e2b4c7460a39f62ef11ee5d522df9b2750fab55b868b6"
298
298
 
299
299
  [[package]]
300
300
  name = "rb-sys-test-helpers"
301
- version = "0.2.0"
301
+ version = "0.2.2"
302
302
  source = "registry+https://github.com/rust-lang/crates.io-index"
303
- checksum = "bbd592029353df7955a76ca0b1bf0d9ccc57feab96615f80d1fe756462864949"
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.0"
312
+ version = "0.2.2"
313
313
  source = "registry+https://github.com/rust-lang/crates.io-index"
314
- checksum = "c21f156459adb755d58f73dbd783dc1de8b403635e637f7d1daec1c7a920c1f5"
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.10.6"
322
+ version = "1.11.1"
323
323
  source = "registry+https://github.com/rust-lang/crates.io-index"
324
- checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619"
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.7"
334
+ version = "0.4.9"
335
335
  source = "registry+https://github.com/rust-lang/crates.io-index"
336
- checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df"
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.4"
345
+ version = "0.8.5"
346
346
  source = "registry+https://github.com/rust-lang/crates.io-index"
347
- checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b"
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.75"
369
+ version = "2.0.96"
370
370
  source = "registry+https://github.com/rust-lang/crates.io-index"
371
- checksum = "f6af063034fc1935ede7be0122941bafa9bacb949334d090b77ca98b5817c7d9"
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.12"
380
+ version = "1.0.14"
381
381
  source = "registry+https://github.com/rust-lang/crates.io-index"
382
- checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
382
+ checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83"
383
383
 
384
384
  [[package]]
385
385
  name = "wasi"
@@ -19,7 +19,7 @@ rand = "0.8.5"
19
19
  rb-sys-test-helpers = "0.2.0"
20
20
 
21
21
  [build-dependencies]
22
- rb-sys-env = "0.1.2"
22
+ rb-sys-env = "0.2.1"
23
23
 
24
24
 
25
25
  [lints.rust]
@@ -19,9 +19,12 @@ pub struct RbDigestMetadataT {
19
19
  pub finish_func: RbDigestHashFinishFuncT,
20
20
  }
21
21
 
22
- #[cfg(digest_use_rb_ext_resolve_symbol)]
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<unsafe extern "C" fn(&'static RbDigestMetadataT) -> VALUE> = None;
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(
@@ -1,3 +1,4 @@
1
+ #![allow(clippy::manual_c_str_literals)]
1
2
  mod bindings;
2
3
 
3
4
  use blake3::Hasher;
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
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: 2024-08-20 00:00:00.000000000 Z
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: []