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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ab3f1082c343de16df3d08889bde6ef229bb70889a6e6587e56fbb85e16489d
4
- data.tar.gz: aaf3164981b071fe3c06897c67bbc76503c564adf98170048350589b3008a323
3
+ metadata.gz: 88b32261c080720b09e08ed347dc233f42ce2789e78337265808065ae0291a3c
4
+ data.tar.gz: 0c38d6a0f176f3530e934822c3ff5affbd35f6a19815d3f6620592dae6ca57eb
5
5
  SHA512:
6
- metadata.gz: 77561b2a749a2f8fd5d80d1a603ff36657bbb3263089a6d832810ccd1a25c5444373d9c7d1bc3c8b7a782794ef099cc021b363952bca657496f44558850fc19c
7
- data.tar.gz: 7335f1d78da1f485ca638a5b3cb60ccbf805642293555bfd37a8fad72bdf45ad1cc8ee5b7dad19e71b2a69ab61908375ae206c8c432e8cf363099cd60a8cbf42
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.7"
16
+ version = "0.3.8"
17
17
  source = "registry+https://github.com/rust-lang/crates.io-index"
18
- checksum = "6b4930d2cb77ce62f89ee5d5289b4ac049559b1c45539271f5ed4fdc7db34545"
18
+ checksum = "9d151e35f61089500b617991b791fc8bfd237ae50cd5950803758a179b41e67a"
19
19
 
20
20
  [[package]]
21
21
  name = "arrayvec"
22
- version = "0.7.4"
22
+ version = "0.7.6"
23
23
  source = "registry+https://github.com/rust-lang/crates.io-index"
24
- checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711"
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.5.0"
48
+ version = "2.6.0"
49
49
  source = "registry+https://github.com/rust-lang/crates.io-index"
50
- checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1"
50
+ checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
51
51
 
52
52
  [[package]]
53
53
  name = "blake3"
54
- version = "1.5.1"
54
+ version = "1.5.4"
55
55
  source = "registry+https://github.com/rust-lang/crates.io-index"
56
- checksum = "30cca6d3674597c30ddf2c587bf8d9d65c9a84d2326d941cc79c9842dfe0ef52"
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.0.97"
85
+ version = "1.1.13"
80
86
  source = "registry+https://github.com/rust-lang/crates.io-index"
81
- checksum = "099a5357d84c4c61eb35fc8eafa9a79a902c2f76911e5747ced4e032edd8d9b4"
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.7.0"
109
+ version = "1.8.1"
101
110
  source = "registry+https://github.com/rust-lang/crates.io-index"
102
- checksum = "67523a3b4be3ce1989d607a828d036249522dd9c1c8de7f4dd2dae43a37369d1"
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.11.0"
126
+ version = "1.13.0"
118
127
  source = "registry+https://github.com/rust-lang/crates.io-index"
119
- checksum = "a47c1c47d2f5964e29c61246e81db715514cd532db6b5116a25ea3c03d6780a2"
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.4.0"
164
+ version = "1.5.0"
156
165
  source = "registry+https://github.com/rust-lang/crates.io-index"
157
- checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
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.154"
176
+ version = "0.2.158"
168
177
  source = "registry+https://github.com/rust-lang/crates.io-index"
169
- checksum = "ae743338b92ff9146ce83992f766a31066a91a8c84a45e0e9f21e7cf6de6d346"
178
+ checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439"
170
179
 
171
180
  [[package]]
172
181
  name = "libloading"
173
- version = "0.8.3"
182
+ version = "0.8.5"
174
183
  source = "registry+https://github.com/rust-lang/crates.io-index"
175
- checksum = "0c2a198fb6b0eada2a8df47933734e6d35d350665a33a3593d7164fa52c75c19"
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.2"
192
+ version = "2.7.4"
184
193
  source = "registry+https://github.com/rust-lang/crates.io-index"
185
- checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d"
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.17"
214
+ version = "0.2.20"
206
215
  source = "registry+https://github.com/rust-lang/crates.io-index"
207
- checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
216
+ checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04"
217
+ dependencies = [
218
+ "zerocopy",
219
+ ]
208
220
 
209
221
  [[package]]
210
222
  name = "proc-macro2"
211
- version = "1.0.82"
223
+ version = "1.0.86"
212
224
  source = "registry+https://github.com/rust-lang/crates.io-index"
213
- checksum = "8ad3d49ab951a01fbaafe34f2ec74122942fe18a3f9814c3268f1bb72042131b"
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.97"
271
+ version = "0.9.102"
260
272
  source = "registry+https://github.com/rust-lang/crates.io-index"
261
- checksum = "47d30bcad206b51f2f66121190ca678dce1fdf3a2eae0ac5d838d1818b19bdf5"
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.97"
280
+ version = "0.9.102"
269
281
  source = "registry+https://github.com/rust-lang/crates.io-index"
270
- checksum = "3cbd92f281615f3c2dcb9dcb0f0576624752afbf9a7f99173b37c4b55b62dd8a"
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.4"
322
+ version = "1.10.6"
311
323
  source = "registry+https://github.com/rust-lang/crates.io-index"
312
- checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c"
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.6"
334
+ version = "0.4.7"
323
335
  source = "registry+https://github.com/rust-lang/crates.io-index"
324
- checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea"
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.3"
345
+ version = "0.8.4"
334
346
  source = "registry+https://github.com/rust-lang/crates.io-index"
335
- checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56"
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.64"
369
+ version = "2.0.75"
358
370
  source = "registry+https://github.com/rust-lang/crates.io-index"
359
- checksum = "7ad3dee41f36859875573074334c200d1add8e4a87bb37113ebd31d926b7b11f"
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.5"
392
+ version = "0.52.6"
381
393
  source = "registry+https://github.com/rust-lang/crates.io-index"
382
- checksum = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb"
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.5"
408
+ version = "0.52.6"
397
409
  source = "registry+https://github.com/rust-lang/crates.io-index"
398
- checksum = "7088eed71e8b8dda258ecc8bac5fb1153c5cffaf2578fc8ff5d61e23578d3263"
410
+ checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
399
411
 
400
412
  [[package]]
401
413
  name = "windows_aarch64_msvc"
402
- version = "0.52.5"
414
+ version = "0.52.6"
403
415
  source = "registry+https://github.com/rust-lang/crates.io-index"
404
- checksum = "9985fd1504e250c615ca5f281c3f7a6da76213ebd5ccc9561496568a2752afb6"
416
+ checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
405
417
 
406
418
  [[package]]
407
419
  name = "windows_i686_gnu"
408
- version = "0.52.5"
420
+ version = "0.52.6"
409
421
  source = "registry+https://github.com/rust-lang/crates.io-index"
410
- checksum = "88ba073cf16d5372720ec942a8ccbf61626074c6d4dd2e745299726ce8b89670"
422
+ checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
411
423
 
412
424
  [[package]]
413
425
  name = "windows_i686_gnullvm"
414
- version = "0.52.5"
426
+ version = "0.52.6"
415
427
  source = "registry+https://github.com/rust-lang/crates.io-index"
416
- checksum = "87f4261229030a858f36b459e748ae97545d6f1ec60e5e0d6a3d32e0dc232ee9"
428
+ checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
417
429
 
418
430
  [[package]]
419
431
  name = "windows_i686_msvc"
420
- version = "0.52.5"
432
+ version = "0.52.6"
421
433
  source = "registry+https://github.com/rust-lang/crates.io-index"
422
- checksum = "db3c2bf3d13d5b658be73463284eaf12830ac9a26a90c717b7f771dfe97487bf"
434
+ checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
423
435
 
424
436
  [[package]]
425
437
  name = "windows_x86_64_gnu"
426
- version = "0.52.5"
438
+ version = "0.52.6"
427
439
  source = "registry+https://github.com/rust-lang/crates.io-index"
428
- checksum = "4e4246f76bdeff09eb48875a0fd3e2af6aada79d409d33011886d3e1581517d9"
440
+ checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
429
441
 
430
442
  [[package]]
431
443
  name = "windows_x86_64_gnullvm"
432
- version = "0.52.5"
444
+ version = "0.52.6"
433
445
  source = "registry+https://github.com/rust-lang/crates.io-index"
434
- checksum = "852298e482cd67c356ddd9570386e2862b5673c85bd5f88df9ab6802b334c596"
446
+ checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
435
447
 
436
448
  [[package]]
437
449
  name = "windows_x86_64_msvc"
438
- version = "0.52.5"
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 = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0"
468
+ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
469
+ dependencies = [
470
+ "proc-macro2",
471
+ "quote",
472
+ "syn",
473
+ ]
@@ -20,3 +20,9 @@ rb-sys-test-helpers = "0.2.0"
20
20
 
21
21
  [build-dependencies]
22
22
  rb-sys-env = "0.1.2"
23
+
24
+
25
+ [lints.rust]
26
+ unexpected_cfgs = { level = "warn", check-cfg = [
27
+ 'cfg(digest_use_rb_ext_resolve_symbol)',
28
+ ] }
@@ -3,4 +3,23 @@
3
3
  require "mkmf"
4
4
  require "rb_sys/mkmf"
5
5
 
6
- create_rust_makefile("digest/blake3/blake3_ext")
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(ruby_gt_3_3)]
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(ruby_gt_3_3))]
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.2
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-06-10 00:00:00.000000000 Z
11
+ date: 2024-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys