@contentauth/c2pa-node 0.3.0 → 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.
package/Cargo.lock CHANGED
@@ -181,15 +181,10 @@ dependencies = [
181
181
  ]
182
182
 
183
183
  [[package]]
184
- name = "async-recursion"
185
- version = "1.1.1"
184
+ name = "async-task"
185
+ version = "4.7.1"
186
186
  source = "registry+https://github.com/rust-lang/crates.io-index"
187
- checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11"
188
- dependencies = [
189
- "proc-macro2",
190
- "quote",
191
- "syn 2.0.104",
192
- ]
187
+ checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de"
193
188
 
194
189
  [[package]]
195
190
  name = "async-trait"
@@ -202,6 +197,12 @@ dependencies = [
202
197
  "syn 2.0.104",
203
198
  ]
204
199
 
200
+ [[package]]
201
+ name = "atomic-waker"
202
+ version = "1.1.2"
203
+ source = "registry+https://github.com/rust-lang/crates.io-index"
204
+ checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
205
+
205
206
  [[package]]
206
207
  name = "atree"
207
208
  version = "0.5.2"
@@ -436,13 +437,12 @@ checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a"
436
437
 
437
438
  [[package]]
438
439
  name = "c2pa"
439
- version = "0.68.0"
440
+ version = "0.72.0"
440
441
  source = "registry+https://github.com/rust-lang/crates.io-index"
441
- checksum = "46613af072ed8a145e9a726459074a0693aeb43c207efa0340b96967c2aced69"
442
+ checksum = "76be5521025341618a0dfb13f783a034a2dde59c5ebee2eb5470a62f298e8638"
442
443
  dependencies = [
443
444
  "asn1-rs",
444
445
  "async-generic",
445
- "async-recursion",
446
446
  "async-trait",
447
447
  "atree",
448
448
  "base64 0.22.1",
@@ -462,6 +462,8 @@ dependencies = [
462
462
  "ed25519-dalek",
463
463
  "env_logger",
464
464
  "extfmt",
465
+ "getrandom 0.2.16",
466
+ "getrandom 0.3.4",
465
467
  "hex",
466
468
  "hex-literal",
467
469
  "http",
@@ -498,7 +500,6 @@ dependencies = [
498
500
  "regex",
499
501
  "reqwest",
500
502
  "riff",
501
- "ring",
502
503
  "rsa",
503
504
  "serde",
504
505
  "serde-transcode",
@@ -513,19 +514,18 @@ dependencies = [
513
514
  "spki",
514
515
  "static-iref",
515
516
  "tempfile",
516
- "thiserror 2.0.12",
517
+ "thiserror 2.0.17",
517
518
  "toml",
518
519
  "ureq 3.1.2",
519
520
  "url",
520
521
  "uuid",
521
- "wasi 0.14.2+wasi-0.2.4",
522
+ "wasi 0.14.7+wasi-0.2.4",
522
523
  "wasm-bindgen",
523
524
  "wasm-bindgen-futures",
524
525
  "web-sys",
525
526
  "web-time",
526
527
  "windows-core",
527
528
  "wstd",
528
- "x509-certificate",
529
529
  "x509-parser",
530
530
  "zeroize",
531
531
  "zip",
@@ -711,6 +711,16 @@ dependencies = [
711
711
  "tiny-keccak",
712
712
  ]
713
713
 
714
+ [[package]]
715
+ name = "core-foundation"
716
+ version = "0.9.4"
717
+ source = "registry+https://github.com/rust-lang/crates.io-index"
718
+ checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
719
+ dependencies = [
720
+ "core-foundation-sys",
721
+ "libc",
722
+ ]
723
+
714
724
  [[package]]
715
725
  name = "core-foundation-sys"
716
726
  version = "0.8.7"
@@ -719,9 +729,9 @@ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
719
729
 
720
730
  [[package]]
721
731
  name = "coset"
722
- version = "0.3.8"
732
+ version = "0.4.0"
723
733
  source = "registry+https://github.com/rust-lang/crates.io-index"
724
- checksum = "f4c8cc80f631f8307b887faca24dcc3abc427cd0367f6eb6188f6e8f5b7ad8fb"
734
+ checksum = "2aeb90e56027edc2a7d7f71cbc500e742e2520bede7a3f8a3bfb1dac7aed623e"
725
735
  dependencies = [
726
736
  "ciborium",
727
737
  "ciborium-io",
@@ -1321,15 +1331,15 @@ dependencies = [
1321
1331
 
1322
1332
  [[package]]
1323
1333
  name = "getrandom"
1324
- version = "0.3.3"
1334
+ version = "0.3.4"
1325
1335
  source = "registry+https://github.com/rust-lang/crates.io-index"
1326
- checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4"
1336
+ checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
1327
1337
  dependencies = [
1328
1338
  "cfg-if",
1329
1339
  "js-sys",
1330
1340
  "libc",
1331
1341
  "r-efi",
1332
- "wasi 0.14.2+wasi-0.2.4",
1342
+ "wasip2",
1333
1343
  "wasm-bindgen",
1334
1344
  ]
1335
1345
 
@@ -1360,6 +1370,25 @@ dependencies = [
1360
1370
  "subtle",
1361
1371
  ]
1362
1372
 
1373
+ [[package]]
1374
+ name = "h2"
1375
+ version = "0.4.12"
1376
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1377
+ checksum = "f3c0b69cfcb4e1b9f1bf2f53f95f766e4661169728ec61cd3fe5a0166f2d1386"
1378
+ dependencies = [
1379
+ "atomic-waker",
1380
+ "bytes",
1381
+ "fnv",
1382
+ "futures-core",
1383
+ "futures-sink",
1384
+ "http",
1385
+ "indexmap 2.10.0",
1386
+ "slab",
1387
+ "tokio",
1388
+ "tokio-util",
1389
+ "tracing",
1390
+ ]
1391
+
1363
1392
  [[package]]
1364
1393
  name = "half"
1365
1394
  version = "1.8.3"
@@ -1414,9 +1443,9 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
1414
1443
 
1415
1444
  [[package]]
1416
1445
  name = "hex-literal"
1417
- version = "0.4.1"
1446
+ version = "1.1.0"
1418
1447
  source = "registry+https://github.com/rust-lang/crates.io-index"
1419
- checksum = "6fe2267d4ed49bc07b63801559be28c718ea06c4738b7a03c94df7386d2cde46"
1448
+ checksum = "e712f64ec3850b98572bffac52e2c6f282b29fe6c5fa6d42334b30be438d95c1"
1420
1449
 
1421
1450
  [[package]]
1422
1451
  name = "hex_fmt"
@@ -1497,6 +1526,7 @@ dependencies = [
1497
1526
  "bytes",
1498
1527
  "futures-channel",
1499
1528
  "futures-util",
1529
+ "h2",
1500
1530
  "http",
1501
1531
  "http-body",
1502
1532
  "httparse",
@@ -1543,9 +1573,11 @@ dependencies = [
1543
1573
  "percent-encoding",
1544
1574
  "pin-project-lite",
1545
1575
  "socket2 0.6.0",
1576
+ "system-configuration",
1546
1577
  "tokio",
1547
1578
  "tower-service",
1548
1579
  "tracing",
1580
+ "windows-registry",
1549
1581
  ]
1550
1582
 
1551
1583
  [[package]]
@@ -1881,7 +1913,7 @@ version = "0.1.33"
1881
1913
  source = "registry+https://github.com/rust-lang/crates.io-index"
1882
1914
  checksum = "38f262f097c174adebe41eb73d66ae9c06b2844fb0da69969647bbddd9b0538a"
1883
1915
  dependencies = [
1884
- "getrandom 0.3.3",
1916
+ "getrandom 0.3.4",
1885
1917
  "libc",
1886
1918
  ]
1887
1919
 
@@ -1893,9 +1925,9 @@ checksum = "00810f1d8b74be64b13dbf3db89ac67740615d6c891f0e7b6179326533011a07"
1893
1925
 
1894
1926
  [[package]]
1895
1927
  name = "js-sys"
1896
- version = "0.3.77"
1928
+ version = "0.3.82"
1897
1929
  source = "registry+https://github.com/rust-lang/crates.io-index"
1898
- checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f"
1930
+ checksum = "b011eec8cc36da2aab2d5cff675ec18454fad408585853910a202391cf9f8e65"
1899
1931
  dependencies = [
1900
1932
  "once_cell",
1901
1933
  "wasm-bindgen",
@@ -2498,7 +2530,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
2498
2530
  checksum = "1db05f56d34358a8b1066f67cbb203ee3e7ed2ba674a6263a1d5ec6db2204323"
2499
2531
  dependencies = [
2500
2532
  "memchr",
2501
- "thiserror 2.0.12",
2533
+ "thiserror 2.0.17",
2502
2534
  "ucd-trie",
2503
2535
  ]
2504
2536
 
@@ -2760,7 +2792,7 @@ dependencies = [
2760
2792
  "rustc-hash",
2761
2793
  "rustls",
2762
2794
  "socket2 0.5.10",
2763
- "thiserror 2.0.12",
2795
+ "thiserror 2.0.17",
2764
2796
  "tokio",
2765
2797
  "tracing",
2766
2798
  "web-time",
@@ -2773,7 +2805,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
2773
2805
  checksum = "49df843a9161c85bb8aae55f101bc0bac8bcafd637a620d9122fd7e0b2f7422e"
2774
2806
  dependencies = [
2775
2807
  "bytes",
2776
- "getrandom 0.3.3",
2808
+ "getrandom 0.3.4",
2777
2809
  "lru-slab",
2778
2810
  "rand 0.9.2",
2779
2811
  "ring",
@@ -2781,7 +2813,7 @@ dependencies = [
2781
2813
  "rustls",
2782
2814
  "rustls-pki-types",
2783
2815
  "slab",
2784
- "thiserror 2.0.12",
2816
+ "thiserror 2.0.17",
2785
2817
  "tinyvec",
2786
2818
  "tracing",
2787
2819
  "web-time",
@@ -2878,7 +2910,7 @@ version = "0.9.3"
2878
2910
  source = "registry+https://github.com/rust-lang/crates.io-index"
2879
2911
  checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38"
2880
2912
  dependencies = [
2881
- "getrandom 0.3.3",
2913
+ "getrandom 0.3.4",
2882
2914
  ]
2883
2915
 
2884
2916
  [[package]]
@@ -3118,9 +3150,9 @@ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
3118
3150
 
3119
3151
  [[package]]
3120
3152
  name = "reqwest"
3121
- version = "0.12.22"
3153
+ version = "0.12.24"
3122
3154
  source = "registry+https://github.com/rust-lang/crates.io-index"
3123
- checksum = "cbc931937e6ca3a06e3b6c0aa7841849b160a90351d6ab467a8b9b9959767531"
3155
+ checksum = "9d0946410b9f7b082a427e4ef5c8ff541a88b357bc6c637c40db3a68ac70a36f"
3124
3156
  dependencies = [
3125
3157
  "async-compression",
3126
3158
  "base64 0.22.1",
@@ -3128,6 +3160,7 @@ dependencies = [
3128
3160
  "futures-channel",
3129
3161
  "futures-core",
3130
3162
  "futures-util",
3163
+ "h2",
3131
3164
  "http",
3132
3165
  "http-body",
3133
3166
  "http-body-util",
@@ -3769,6 +3802,27 @@ dependencies = [
3769
3802
  "syn 2.0.104",
3770
3803
  ]
3771
3804
 
3805
+ [[package]]
3806
+ name = "system-configuration"
3807
+ version = "0.6.1"
3808
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3809
+ checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b"
3810
+ dependencies = [
3811
+ "bitflags 2.9.1",
3812
+ "core-foundation",
3813
+ "system-configuration-sys",
3814
+ ]
3815
+
3816
+ [[package]]
3817
+ name = "system-configuration-sys"
3818
+ version = "0.6.0"
3819
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3820
+ checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"
3821
+ dependencies = [
3822
+ "core-foundation-sys",
3823
+ "libc",
3824
+ ]
3825
+
3772
3826
  [[package]]
3773
3827
  name = "system-deps"
3774
3828
  version = "6.2.2"
@@ -3839,11 +3893,11 @@ dependencies = [
3839
3893
 
3840
3894
  [[package]]
3841
3895
  name = "thiserror"
3842
- version = "2.0.12"
3896
+ version = "2.0.17"
3843
3897
  source = "registry+https://github.com/rust-lang/crates.io-index"
3844
- checksum = "567b8a2dae586314f7be2a752ec7474332959c6460e02bde30d702a66d488708"
3898
+ checksum = "f63587ca0f12b72a0600bcba1d40081f830876000bb46dd2337a3051618f4fc8"
3845
3899
  dependencies = [
3846
- "thiserror-impl 2.0.12",
3900
+ "thiserror-impl 2.0.17",
3847
3901
  ]
3848
3902
 
3849
3903
  [[package]]
@@ -3859,9 +3913,9 @@ dependencies = [
3859
3913
 
3860
3914
  [[package]]
3861
3915
  name = "thiserror-impl"
3862
- version = "2.0.12"
3916
+ version = "2.0.17"
3863
3917
  source = "registry+https://github.com/rust-lang/crates.io-index"
3864
- checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d"
3918
+ checksum = "3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913"
3865
3919
  dependencies = [
3866
3920
  "proc-macro2",
3867
3921
  "quote",
@@ -4173,7 +4227,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
4173
4227
  checksum = "99ba1025f18a4a3fc3e9b48c868e9beb4f24f4b4b1a325bada26bd4119f46537"
4174
4228
  dependencies = [
4175
4229
  "base64 0.22.1",
4176
- "flate2",
4177
4230
  "log",
4178
4231
  "percent-encoding",
4179
4232
  "rustls",
@@ -4231,7 +4284,7 @@ version = "1.18.1"
4231
4284
  source = "registry+https://github.com/rust-lang/crates.io-index"
4232
4285
  checksum = "2f87b8aa10b915a06587d0dec516c282ff295b475d94abf425d62b57710070a2"
4233
4286
  dependencies = [
4234
- "getrandom 0.3.3",
4287
+ "getrandom 0.3.4",
4235
4288
  "js-sys",
4236
4289
  "serde",
4237
4290
  "wasm-bindgen",
@@ -4277,44 +4330,40 @@ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
4277
4330
 
4278
4331
  [[package]]
4279
4332
  name = "wasi"
4280
- version = "0.14.2+wasi-0.2.4"
4333
+ version = "0.14.7+wasi-0.2.4"
4281
4334
  source = "registry+https://github.com/rust-lang/crates.io-index"
4282
- checksum = "9683f9a5a998d873c0d21fcbe3c083009670149a8fab228644b8bd36b2c48cb3"
4335
+ checksum = "883478de20367e224c0090af9cf5f9fa85bed63a95c1abf3afc5c083ebc06e8c"
4283
4336
  dependencies = [
4284
- "wit-bindgen-rt",
4337
+ "wasip2",
4285
4338
  ]
4286
4339
 
4287
4340
  [[package]]
4288
- name = "wasm-bindgen"
4289
- version = "0.2.100"
4341
+ name = "wasip2"
4342
+ version = "1.0.1+wasi-0.2.4"
4290
4343
  source = "registry+https://github.com/rust-lang/crates.io-index"
4291
- checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5"
4344
+ checksum = "0562428422c63773dad2c345a1882263bbf4d65cf3f42e90921f787ef5ad58e7"
4292
4345
  dependencies = [
4293
- "cfg-if",
4294
- "once_cell",
4295
- "rustversion",
4296
- "wasm-bindgen-macro",
4346
+ "wit-bindgen",
4297
4347
  ]
4298
4348
 
4299
4349
  [[package]]
4300
- name = "wasm-bindgen-backend"
4301
- version = "0.2.100"
4350
+ name = "wasm-bindgen"
4351
+ version = "0.2.105"
4302
4352
  source = "registry+https://github.com/rust-lang/crates.io-index"
4303
- checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6"
4353
+ checksum = "da95793dfc411fbbd93f5be7715b0578ec61fe87cb1a42b12eb625caa5c5ea60"
4304
4354
  dependencies = [
4305
- "bumpalo",
4306
- "log",
4307
- "proc-macro2",
4308
- "quote",
4309
- "syn 2.0.104",
4355
+ "cfg-if",
4356
+ "once_cell",
4357
+ "rustversion",
4358
+ "wasm-bindgen-macro",
4310
4359
  "wasm-bindgen-shared",
4311
4360
  ]
4312
4361
 
4313
4362
  [[package]]
4314
4363
  name = "wasm-bindgen-futures"
4315
- version = "0.4.50"
4364
+ version = "0.4.55"
4316
4365
  source = "registry+https://github.com/rust-lang/crates.io-index"
4317
- checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61"
4366
+ checksum = "551f88106c6d5e7ccc7cd9a16f312dd3b5d36ea8b4954304657d5dfba115d4a0"
4318
4367
  dependencies = [
4319
4368
  "cfg-if",
4320
4369
  "js-sys",
@@ -4325,9 +4374,9 @@ dependencies = [
4325
4374
 
4326
4375
  [[package]]
4327
4376
  name = "wasm-bindgen-macro"
4328
- version = "0.2.100"
4377
+ version = "0.2.105"
4329
4378
  source = "registry+https://github.com/rust-lang/crates.io-index"
4330
- checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407"
4379
+ checksum = "04264334509e04a7bf8690f2384ef5265f05143a4bff3889ab7a3269adab59c2"
4331
4380
  dependencies = [
4332
4381
  "quote",
4333
4382
  "wasm-bindgen-macro-support",
@@ -4335,31 +4384,31 @@ dependencies = [
4335
4384
 
4336
4385
  [[package]]
4337
4386
  name = "wasm-bindgen-macro-support"
4338
- version = "0.2.100"
4387
+ version = "0.2.105"
4339
4388
  source = "registry+https://github.com/rust-lang/crates.io-index"
4340
- checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de"
4389
+ checksum = "420bc339d9f322e562942d52e115d57e950d12d88983a14c79b86859ee6c7ebc"
4341
4390
  dependencies = [
4391
+ "bumpalo",
4342
4392
  "proc-macro2",
4343
4393
  "quote",
4344
4394
  "syn 2.0.104",
4345
- "wasm-bindgen-backend",
4346
4395
  "wasm-bindgen-shared",
4347
4396
  ]
4348
4397
 
4349
4398
  [[package]]
4350
4399
  name = "wasm-bindgen-shared"
4351
- version = "0.2.100"
4400
+ version = "0.2.105"
4352
4401
  source = "registry+https://github.com/rust-lang/crates.io-index"
4353
- checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d"
4402
+ checksum = "76f218a38c84bcb33c25ec7059b07847d465ce0e0a76b995e134a45adcb6af76"
4354
4403
  dependencies = [
4355
4404
  "unicode-ident",
4356
4405
  ]
4357
4406
 
4358
4407
  [[package]]
4359
4408
  name = "web-sys"
4360
- version = "0.3.77"
4409
+ version = "0.3.82"
4361
4410
  source = "registry+https://github.com/rust-lang/crates.io-index"
4362
- checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2"
4411
+ checksum = "3a1f95c0d03a47f4ae1f7a64643a6bb97465d9b740f0fa8f90ea33915c99a9a1"
4363
4412
  dependencies = [
4364
4413
  "js-sys",
4365
4414
  "wasm-bindgen",
@@ -4471,6 +4520,17 @@ version = "0.1.3"
4471
4520
  source = "registry+https://github.com/rust-lang/crates.io-index"
4472
4521
  checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a"
4473
4522
 
4523
+ [[package]]
4524
+ name = "windows-registry"
4525
+ version = "0.5.3"
4526
+ source = "registry+https://github.com/rust-lang/crates.io-index"
4527
+ checksum = "5b8a9ed28765efc97bbc954883f4e6796c33a06546ebafacbabee9696967499e"
4528
+ dependencies = [
4529
+ "windows-link",
4530
+ "windows-result",
4531
+ "windows-strings",
4532
+ ]
4533
+
4474
4534
  [[package]]
4475
4535
  name = "windows-result"
4476
4536
  version = "0.3.4"
@@ -4654,10 +4714,10 @@ dependencies = [
4654
4714
  ]
4655
4715
 
4656
4716
  [[package]]
4657
- name = "wit-bindgen-rt"
4658
- version = "0.39.0"
4717
+ name = "wit-bindgen"
4718
+ version = "0.46.0"
4659
4719
  source = "registry+https://github.com/rust-lang/crates.io-index"
4660
- checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1"
4720
+ checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59"
4661
4721
  dependencies = [
4662
4722
  "bitflags 2.9.1",
4663
4723
  ]
@@ -4670,26 +4730,26 @@ checksum = "ea2f10b9bb0928dfb1b42b65e1f9e36f7f54dbdf08457afefb38afcdec4fa2bb"
4670
4730
 
4671
4731
  [[package]]
4672
4732
  name = "wstd"
4673
- version = "0.5.3"
4733
+ version = "0.5.6"
4674
4734
  source = "registry+https://github.com/rust-lang/crates.io-index"
4675
- checksum = "6515b13373b9dfbbe62e4426972253a15b74d93b1e2e95f92bbb2801c239a1d3"
4735
+ checksum = "d0736607b57fcb58dd3148cf34d6a6ca63ba041fde8a12ab3f2c48ddf6d11877"
4676
4736
  dependencies = [
4677
- "futures-core",
4737
+ "async-task",
4678
4738
  "http",
4679
4739
  "itoa",
4680
4740
  "pin-project-lite",
4681
4741
  "serde",
4682
4742
  "serde_json",
4683
4743
  "slab",
4684
- "wasi 0.14.2+wasi-0.2.4",
4744
+ "wasip2",
4685
4745
  "wstd-macro",
4686
4746
  ]
4687
4747
 
4688
4748
  [[package]]
4689
4749
  name = "wstd-macro"
4690
- version = "0.5.3"
4750
+ version = "0.5.6"
4691
4751
  source = "registry+https://github.com/rust-lang/crates.io-index"
4692
- checksum = "23d1758ed5cdf081802c60bc000a9cb90db8bcdf140fa8a7251a22b32af37d7b"
4752
+ checksum = "cb142608f932022fa7d155d8ed99649d02c56a50532e71913a5a03c7c4e288d3"
4693
4753
  dependencies = [
4694
4754
  "quote",
4695
4755
  "syn 2.0.104",
@@ -4704,25 +4764,6 @@ dependencies = [
4704
4764
  "tap",
4705
4765
  ]
4706
4766
 
4707
- [[package]]
4708
- name = "x509-certificate"
4709
- version = "0.24.0"
4710
- source = "registry+https://github.com/rust-lang/crates.io-index"
4711
- checksum = "e57b9f8bcae7c1f36479821ae826d75050c60ce55146fd86d3553ed2573e2762"
4712
- dependencies = [
4713
- "bcder",
4714
- "bytes",
4715
- "chrono",
4716
- "der",
4717
- "hex",
4718
- "pem",
4719
- "ring",
4720
- "signature",
4721
- "spki",
4722
- "thiserror 1.0.69",
4723
- "zeroize",
4724
- ]
4725
-
4726
4767
  [[package]]
4727
4768
  name = "x509-parser"
4728
4769
  version = "0.16.0"
@@ -4876,9 +4917,9 @@ dependencies = [
4876
4917
 
4877
4918
  [[package]]
4878
4919
  name = "zip"
4879
- version = "3.0.0"
4920
+ version = "6.0.0"
4880
4921
  source = "registry+https://github.com/rust-lang/crates.io-index"
4881
- checksum = "12598812502ed0105f607f941c386f43d441e00148fce9dec3ca5ffb0bde9308"
4922
+ checksum = "eb2a05c7c36fde6c09b08576c9f7fb4cda705990f73b58fe011abf7dfb24168b"
4882
4923
  dependencies = [
4883
4924
  "arbitrary",
4884
4925
  "crc32fast",
package/Cargo.toml CHANGED
@@ -11,7 +11,7 @@ crate-type = ["cdylib"]
11
11
  [dependencies]
12
12
  async-trait = "0.1.77"
13
13
  ciborium = "0.2.2"
14
- c2pa = { version = "0.68", default-features = false, features = ["file_io", "pdf", "fetch_remote_manifests", "add_thumbnails", "rust_native_crypto"] }
14
+ c2pa = { version = "0.72.0", default-features = false, features = ["file_io", "pdf", "fetch_remote_manifests", "add_thumbnails", "rust_native_crypto", "default_http"] }
15
15
  futures = "0.3"
16
16
  image = "0.25.6"
17
17
  neon = { version = "1.0.0", default-features = false, features = [
package/dist/Builder.js CHANGED
@@ -47,6 +47,9 @@ export class Builder {
47
47
  setRemoteUrl(remoteUrl) {
48
48
  getNeonBinary().builderSetRemoteUrl.call(this.builder, remoteUrl);
49
49
  }
50
+ addAction(actionJson) {
51
+ return getNeonBinary().builderAddAction.call(this.builder, actionJson);
52
+ }
50
53
  addAssertion(label, assertion, assertionKind) {
51
54
  return getNeonBinary().builderAddAssertion.call(this.builder, label, assertion, assertionKind);
52
55
  }
@@ -57,9 +60,19 @@ export class Builder {
57
60
  }
58
61
  addIngredient(ingredientJson, ingredient) {
59
62
  return __awaiter(this, void 0, void 0, function* () {
60
- return getNeonBinary().builderAddIngredient.call(this.builder, ingredientJson, ingredient);
63
+ if (ingredient) {
64
+ return getNeonBinary().builderAddIngredientFromAsset.call(this.builder, ingredientJson, ingredient);
65
+ }
66
+ else {
67
+ return getNeonBinary().builderAddIngredient.call(this.builder, ingredientJson);
68
+ }
61
69
  });
62
70
  }
71
+ addIngredientFromReader(reader) {
72
+ const readerHandle = reader.getHandle();
73
+ const result = getNeonBinary().builderAddIngredientFromReader.call(this.builder, readerHandle);
74
+ return JSON.parse(result);
75
+ }
63
76
  toArchive(asset) {
64
77
  return __awaiter(this, void 0, void 0, function* () {
65
78
  return getNeonBinary().builderToArchive.call(this.builder, asset);
@@ -71,11 +84,11 @@ export class Builder {
71
84
  });
72
85
  }
73
86
  sign(signer, input, output) {
74
- return getNeonBinary().builderSign.call(this.builder, signer.signer(), input, output);
87
+ return getNeonBinary().builderSign.call(this.builder, signer.getHandle(), input, output);
75
88
  }
76
89
  signFile(signer, filePath, output) {
77
90
  const input = { path: filePath };
78
- return getNeonBinary().builderSign.call(this.builder, signer.signer(), input, output);
91
+ return getNeonBinary().builderSign.call(this.builder, signer.getHandle(), input, output);
79
92
  }
80
93
  signConfigAsync(callback, signerConfig, input, output) {
81
94
  return __awaiter(this, void 0, void 0, function* () {
@@ -104,7 +117,7 @@ export class Builder {
104
117
  }
105
118
  signAsync(signer, input, output) {
106
119
  return __awaiter(this, void 0, void 0, function* () {
107
- const neonHandle = signer.signer();
120
+ const neonHandle = signer.getHandle();
108
121
  const isIdentity = signer instanceof IdentityAssertionSigner;
109
122
  const neonFn = isIdentity
110
123
  ? getNeonBinary().builderIdentitySignAsync