@contentauth/c2pa-node 0.5.0 → 0.5.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 +221 -109
- package/Cargo.toml +1 -1
- package/dist/Reader.spec.js +23 -0
- package/dist/index.node +0 -0
- package/package.json +1 -1
- package/src/neon_builder.rs +6 -3
- package/src/neon_reader.rs +8 -6
package/Cargo.lock
CHANGED
|
@@ -89,6 +89,56 @@ dependencies = [
|
|
|
89
89
|
"libc",
|
|
90
90
|
]
|
|
91
91
|
|
|
92
|
+
[[package]]
|
|
93
|
+
name = "anstream"
|
|
94
|
+
version = "0.6.21"
|
|
95
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
96
|
+
checksum = "43d5b281e737544384e969a5ccad3f1cdd24b48086a0fc1b2a5262a26b8f4f4a"
|
|
97
|
+
dependencies = [
|
|
98
|
+
"anstyle",
|
|
99
|
+
"anstyle-parse",
|
|
100
|
+
"anstyle-query",
|
|
101
|
+
"anstyle-wincon",
|
|
102
|
+
"colorchoice",
|
|
103
|
+
"is_terminal_polyfill",
|
|
104
|
+
"utf8parse",
|
|
105
|
+
]
|
|
106
|
+
|
|
107
|
+
[[package]]
|
|
108
|
+
name = "anstyle"
|
|
109
|
+
version = "1.0.13"
|
|
110
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
111
|
+
checksum = "5192cca8006f1fd4f7237516f40fa183bb07f8fbdfedaa0036de5ea9b0b45e78"
|
|
112
|
+
|
|
113
|
+
[[package]]
|
|
114
|
+
name = "anstyle-parse"
|
|
115
|
+
version = "0.2.7"
|
|
116
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
117
|
+
checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2"
|
|
118
|
+
dependencies = [
|
|
119
|
+
"utf8parse",
|
|
120
|
+
]
|
|
121
|
+
|
|
122
|
+
[[package]]
|
|
123
|
+
name = "anstyle-query"
|
|
124
|
+
version = "1.1.5"
|
|
125
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
126
|
+
checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
|
|
127
|
+
dependencies = [
|
|
128
|
+
"windows-sys 0.60.2",
|
|
129
|
+
]
|
|
130
|
+
|
|
131
|
+
[[package]]
|
|
132
|
+
name = "anstyle-wincon"
|
|
133
|
+
version = "3.0.11"
|
|
134
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
135
|
+
checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
|
|
136
|
+
dependencies = [
|
|
137
|
+
"anstyle",
|
|
138
|
+
"once_cell_polyfill",
|
|
139
|
+
"windows-sys 0.60.2",
|
|
140
|
+
]
|
|
141
|
+
|
|
92
142
|
[[package]]
|
|
93
143
|
name = "anyhow"
|
|
94
144
|
version = "1.0.98"
|
|
@@ -123,9 +173,9 @@ checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"
|
|
|
123
173
|
|
|
124
174
|
[[package]]
|
|
125
175
|
name = "asn1-rs"
|
|
126
|
-
version = "0.
|
|
176
|
+
version = "0.7.1"
|
|
127
177
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
128
|
-
checksum = "
|
|
178
|
+
checksum = "56624a96882bb8c26d61312ae18cb45868e5a9992ea73c58e45c3101e56a1e60"
|
|
129
179
|
dependencies = [
|
|
130
180
|
"asn1-rs-derive",
|
|
131
181
|
"asn1-rs-impl",
|
|
@@ -133,15 +183,15 @@ dependencies = [
|
|
|
133
183
|
"nom 7.1.3",
|
|
134
184
|
"num-traits",
|
|
135
185
|
"rusticata-macros",
|
|
136
|
-
"thiserror
|
|
186
|
+
"thiserror 2.0.17",
|
|
137
187
|
"time",
|
|
138
188
|
]
|
|
139
189
|
|
|
140
190
|
[[package]]
|
|
141
191
|
name = "asn1-rs-derive"
|
|
142
|
-
version = "0.
|
|
192
|
+
version = "0.6.0"
|
|
143
193
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
144
|
-
checksum = "
|
|
194
|
+
checksum = "3109e49b1e4909e9db6515a30c633684d68cdeaa252f215214cb4fa1a5bfee2c"
|
|
145
195
|
dependencies = [
|
|
146
196
|
"proc-macro2",
|
|
147
197
|
"quote",
|
|
@@ -448,9 +498,9 @@ checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a"
|
|
|
448
498
|
|
|
449
499
|
[[package]]
|
|
450
500
|
name = "c2pa"
|
|
451
|
-
version = "0.
|
|
501
|
+
version = "0.75.6"
|
|
452
502
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
453
|
-
checksum = "
|
|
503
|
+
checksum = "ec84a99bf4acb2db1f9459f9668cac78fe26cf04c21ed7a04b3ce1044a02c7d6"
|
|
454
504
|
dependencies = [
|
|
455
505
|
"asn1-rs",
|
|
456
506
|
"async-generic",
|
|
@@ -502,7 +552,7 @@ dependencies = [
|
|
|
502
552
|
"png_pong",
|
|
503
553
|
"quick-xml",
|
|
504
554
|
"rand 0.8.5",
|
|
505
|
-
"rand_chacha 0.
|
|
555
|
+
"rand_chacha 0.9.0",
|
|
506
556
|
"range-set",
|
|
507
557
|
"rasn",
|
|
508
558
|
"rasn-cms",
|
|
@@ -526,7 +576,7 @@ dependencies = [
|
|
|
526
576
|
"static-iref",
|
|
527
577
|
"tempfile",
|
|
528
578
|
"thiserror 2.0.17",
|
|
529
|
-
"toml",
|
|
579
|
+
"toml 0.9.11+spec-1.1.0",
|
|
530
580
|
"ureq 3.1.2",
|
|
531
581
|
"url",
|
|
532
582
|
"uuid",
|
|
@@ -538,7 +588,8 @@ dependencies = [
|
|
|
538
588
|
"wstd",
|
|
539
589
|
"x509-parser",
|
|
540
590
|
"zeroize",
|
|
541
|
-
"zip",
|
|
591
|
+
"zip 6.0.0",
|
|
592
|
+
"zip 7.2.0",
|
|
542
593
|
]
|
|
543
594
|
|
|
544
595
|
[[package]]
|
|
@@ -561,7 +612,7 @@ dependencies = [
|
|
|
561
612
|
"thiserror 1.0.69",
|
|
562
613
|
"tokio",
|
|
563
614
|
"tokio-util",
|
|
564
|
-
"toml",
|
|
615
|
+
"toml 0.8.23",
|
|
565
616
|
"trustmark",
|
|
566
617
|
]
|
|
567
618
|
|
|
@@ -673,6 +724,12 @@ version = "1.1.0"
|
|
|
673
724
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
674
725
|
checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b"
|
|
675
726
|
|
|
727
|
+
[[package]]
|
|
728
|
+
name = "colorchoice"
|
|
729
|
+
version = "1.0.4"
|
|
730
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
731
|
+
checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
|
|
732
|
+
|
|
676
733
|
[[package]]
|
|
677
734
|
name = "config"
|
|
678
735
|
version = "0.14.1"
|
|
@@ -683,7 +740,7 @@ dependencies = [
|
|
|
683
740
|
"pathdiff",
|
|
684
741
|
"serde",
|
|
685
742
|
"serde_json",
|
|
686
|
-
"toml",
|
|
743
|
+
"toml 0.8.23",
|
|
687
744
|
]
|
|
688
745
|
|
|
689
746
|
[[package]]
|
|
@@ -905,9 +962,9 @@ dependencies = [
|
|
|
905
962
|
|
|
906
963
|
[[package]]
|
|
907
964
|
name = "der-parser"
|
|
908
|
-
version = "
|
|
965
|
+
version = "10.0.0"
|
|
909
966
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
910
|
-
checksum = "
|
|
967
|
+
checksum = "07da5016415d5a3c4dd39b11ed26f915f52fc4e0dc197d87908bc916e51bc1a6"
|
|
911
968
|
dependencies = [
|
|
912
969
|
"asn1-rs",
|
|
913
970
|
"displaydoc",
|
|
@@ -1063,16 +1120,26 @@ dependencies = [
|
|
|
1063
1120
|
]
|
|
1064
1121
|
|
|
1065
1122
|
[[package]]
|
|
1066
|
-
name = "
|
|
1067
|
-
version = "0.
|
|
1123
|
+
name = "env_filter"
|
|
1124
|
+
version = "0.1.4"
|
|
1068
1125
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1069
|
-
checksum = "
|
|
1126
|
+
checksum = "1bf3c259d255ca70051b30e2e95b5446cdb8949ac4cd22c0d7fd634d89f568e2"
|
|
1070
1127
|
dependencies = [
|
|
1071
|
-
"humantime",
|
|
1072
|
-
"is-terminal",
|
|
1073
1128
|
"log",
|
|
1074
1129
|
"regex",
|
|
1075
|
-
|
|
1130
|
+
]
|
|
1131
|
+
|
|
1132
|
+
[[package]]
|
|
1133
|
+
name = "env_logger"
|
|
1134
|
+
version = "0.11.8"
|
|
1135
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1136
|
+
checksum = "13c863f0904021b108aa8b2f55046443e6b1ebde8fd4a15c399893aae4fa069f"
|
|
1137
|
+
dependencies = [
|
|
1138
|
+
"anstream",
|
|
1139
|
+
"anstyle",
|
|
1140
|
+
"env_filter",
|
|
1141
|
+
"jiff",
|
|
1142
|
+
"log",
|
|
1076
1143
|
]
|
|
1077
1144
|
|
|
1078
1145
|
[[package]]
|
|
@@ -1128,9 +1195,9 @@ dependencies = [
|
|
|
1128
1195
|
|
|
1129
1196
|
[[package]]
|
|
1130
1197
|
name = "extfmt"
|
|
1131
|
-
version = "0.
|
|
1198
|
+
version = "0.2.0"
|
|
1132
1199
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1133
|
-
checksum = "
|
|
1200
|
+
checksum = "4a61bffc6f807b136c3efeeac295edde2c65b1e345de7ea777e75f63de7436c6"
|
|
1134
1201
|
|
|
1135
1202
|
[[package]]
|
|
1136
1203
|
name = "fast_image_resize"
|
|
@@ -1387,7 +1454,7 @@ dependencies = [
|
|
|
1387
1454
|
"futures-core",
|
|
1388
1455
|
"futures-sink",
|
|
1389
1456
|
"http",
|
|
1390
|
-
"indexmap 2.
|
|
1457
|
+
"indexmap 2.13.0",
|
|
1391
1458
|
"slab",
|
|
1392
1459
|
"tokio",
|
|
1393
1460
|
"tokio-util",
|
|
@@ -1418,9 +1485,9 @@ checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
|
|
|
1418
1485
|
|
|
1419
1486
|
[[package]]
|
|
1420
1487
|
name = "hashbrown"
|
|
1421
|
-
version = "0.
|
|
1488
|
+
version = "0.16.1"
|
|
1422
1489
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1423
|
-
checksum = "
|
|
1490
|
+
checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
|
|
1424
1491
|
|
|
1425
1492
|
[[package]]
|
|
1426
1493
|
name = "heck"
|
|
@@ -1428,12 +1495,6 @@ version = "0.5.0"
|
|
|
1428
1495
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1429
1496
|
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
1430
1497
|
|
|
1431
|
-
[[package]]
|
|
1432
|
-
name = "hermit-abi"
|
|
1433
|
-
version = "0.5.2"
|
|
1434
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1435
|
-
checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"
|
|
1436
|
-
|
|
1437
1498
|
[[package]]
|
|
1438
1499
|
name = "hex"
|
|
1439
1500
|
version = "0.4.3"
|
|
@@ -1510,12 +1571,6 @@ version = "1.10.1"
|
|
|
1510
1571
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1511
1572
|
checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
|
|
1512
1573
|
|
|
1513
|
-
[[package]]
|
|
1514
|
-
name = "humantime"
|
|
1515
|
-
version = "2.2.0"
|
|
1516
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1517
|
-
checksum = "9b112acc8b3adf4b107a8ec20977da0273a8c386765a3ec0229bd500a1443f9f"
|
|
1518
|
-
|
|
1519
1574
|
[[package]]
|
|
1520
1575
|
name = "hyper"
|
|
1521
1576
|
version = "1.6.0"
|
|
@@ -1691,9 +1746,9 @@ dependencies = [
|
|
|
1691
1746
|
|
|
1692
1747
|
[[package]]
|
|
1693
1748
|
name = "id3"
|
|
1694
|
-
version = "1.16.
|
|
1749
|
+
version = "1.16.4"
|
|
1695
1750
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1696
|
-
checksum = "
|
|
1751
|
+
checksum = "965c5e6a62a241f2f673df956ea5f52c27780bc1031855890a551ed9b869e2d1"
|
|
1697
1752
|
dependencies = [
|
|
1698
1753
|
"bitflags 2.9.1",
|
|
1699
1754
|
"byteorder",
|
|
@@ -1762,9 +1817,9 @@ dependencies = [
|
|
|
1762
1817
|
|
|
1763
1818
|
[[package]]
|
|
1764
1819
|
name = "img-parts"
|
|
1765
|
-
version = "0.
|
|
1820
|
+
version = "0.4.0"
|
|
1766
1821
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1767
|
-
checksum = "
|
|
1822
|
+
checksum = "19734e3c43b2a850f5889c077056e47c874095f2d87e853c7c41214ae67375f0"
|
|
1768
1823
|
dependencies = [
|
|
1769
1824
|
"bytes",
|
|
1770
1825
|
"crc32fast",
|
|
@@ -1790,13 +1845,14 @@ dependencies = [
|
|
|
1790
1845
|
|
|
1791
1846
|
[[package]]
|
|
1792
1847
|
name = "indexmap"
|
|
1793
|
-
version = "2.
|
|
1848
|
+
version = "2.13.0"
|
|
1794
1849
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1795
|
-
checksum = "
|
|
1850
|
+
checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017"
|
|
1796
1851
|
dependencies = [
|
|
1797
1852
|
"equivalent",
|
|
1798
|
-
"hashbrown 0.
|
|
1853
|
+
"hashbrown 0.16.1",
|
|
1799
1854
|
"serde",
|
|
1855
|
+
"serde_core",
|
|
1800
1856
|
]
|
|
1801
1857
|
|
|
1802
1858
|
[[package]]
|
|
@@ -1876,15 +1932,10 @@ dependencies = [
|
|
|
1876
1932
|
]
|
|
1877
1933
|
|
|
1878
1934
|
[[package]]
|
|
1879
|
-
name = "
|
|
1880
|
-
version = "
|
|
1935
|
+
name = "is_terminal_polyfill"
|
|
1936
|
+
version = "1.70.2"
|
|
1881
1937
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1882
|
-
checksum = "
|
|
1883
|
-
dependencies = [
|
|
1884
|
-
"hermit-abi",
|
|
1885
|
-
"libc",
|
|
1886
|
-
"windows-sys 0.59.0",
|
|
1887
|
-
]
|
|
1938
|
+
checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
|
|
1888
1939
|
|
|
1889
1940
|
[[package]]
|
|
1890
1941
|
name = "itertools"
|
|
@@ -2096,9 +2147,9 @@ dependencies = [
|
|
|
2096
2147
|
|
|
2097
2148
|
[[package]]
|
|
2098
2149
|
name = "lopdf"
|
|
2099
|
-
version = "0.
|
|
2150
|
+
version = "0.39.0"
|
|
2100
2151
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2101
|
-
checksum = "
|
|
2152
|
+
checksum = "f560f57dfb9142a02d673e137622fd515d4231e51feb8b4af28d92647d83f35b"
|
|
2102
2153
|
dependencies = [
|
|
2103
2154
|
"aes",
|
|
2104
2155
|
"bitflags 2.9.1",
|
|
@@ -2108,7 +2159,7 @@ dependencies = [
|
|
|
2108
2159
|
"encoding_rs",
|
|
2109
2160
|
"flate2",
|
|
2110
2161
|
"getrandom 0.3.4",
|
|
2111
|
-
"indexmap 2.
|
|
2162
|
+
"indexmap 2.13.0",
|
|
2112
2163
|
"itoa",
|
|
2113
2164
|
"jiff",
|
|
2114
2165
|
"log",
|
|
@@ -2302,9 +2353,9 @@ dependencies = [
|
|
|
2302
2353
|
|
|
2303
2354
|
[[package]]
|
|
2304
2355
|
name = "non-empty-string"
|
|
2305
|
-
version = "0.2.
|
|
2356
|
+
version = "0.2.6"
|
|
2306
2357
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2307
|
-
checksum = "
|
|
2358
|
+
checksum = "260010741d90def3ca7c4b5ec0bbe28c26d0c775d3c7d291b38642514136677a"
|
|
2308
2359
|
dependencies = [
|
|
2309
2360
|
"delegate",
|
|
2310
2361
|
"serde",
|
|
@@ -2312,9 +2363,9 @@ dependencies = [
|
|
|
2312
2363
|
|
|
2313
2364
|
[[package]]
|
|
2314
2365
|
name = "nonempty-collections"
|
|
2315
|
-
version = "
|
|
2366
|
+
version = "1.3.0"
|
|
2316
2367
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2317
|
-
checksum = "
|
|
2368
|
+
checksum = "3d127e00b37b19c36c28ac00e874240a61faeea14c7b759b1d9c77efa048322a"
|
|
2318
2369
|
dependencies = [
|
|
2319
2370
|
"serde",
|
|
2320
2371
|
]
|
|
@@ -2444,9 +2495,9 @@ dependencies = [
|
|
|
2444
2495
|
|
|
2445
2496
|
[[package]]
|
|
2446
2497
|
name = "oid-registry"
|
|
2447
|
-
version = "0.
|
|
2498
|
+
version = "0.8.1"
|
|
2448
2499
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2449
|
-
checksum = "
|
|
2500
|
+
checksum = "12f40cff3dde1b6087cc5d5f5d4d65712f34016a03ed60e9c08dcc392736b5b7"
|
|
2450
2501
|
dependencies = [
|
|
2451
2502
|
"asn1-rs",
|
|
2452
2503
|
]
|
|
@@ -2457,6 +2508,12 @@ version = "1.21.3"
|
|
|
2457
2508
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2458
2509
|
checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
|
|
2459
2510
|
|
|
2511
|
+
[[package]]
|
|
2512
|
+
name = "once_cell_polyfill"
|
|
2513
|
+
version = "1.70.2"
|
|
2514
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2515
|
+
checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
|
|
2516
|
+
|
|
2460
2517
|
[[package]]
|
|
2461
2518
|
name = "ort"
|
|
2462
2519
|
version = "2.0.0-rc.8"
|
|
@@ -2780,9 +2837,9 @@ checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3"
|
|
|
2780
2837
|
|
|
2781
2838
|
[[package]]
|
|
2782
2839
|
name = "quick-xml"
|
|
2783
|
-
version = "0.
|
|
2840
|
+
version = "0.39.0"
|
|
2784
2841
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2785
|
-
checksum = "
|
|
2842
|
+
checksum = "f2e3bf4aa9d243beeb01a7b3bc30b77cfe2c44e24ec02d751a7104a53c2c49a1"
|
|
2786
2843
|
dependencies = [
|
|
2787
2844
|
"memchr",
|
|
2788
2845
|
]
|
|
@@ -2933,9 +2990,9 @@ dependencies = [
|
|
|
2933
2990
|
|
|
2934
2991
|
[[package]]
|
|
2935
2992
|
name = "range-set"
|
|
2936
|
-
version = "0.0
|
|
2993
|
+
version = "0.1.0"
|
|
2937
2994
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2938
|
-
checksum = "
|
|
2995
|
+
checksum = "2d49e572143755710377fda7cbd3f46e8523b912339759636ab2770abb16c4c3"
|
|
2939
2996
|
dependencies = [
|
|
2940
2997
|
"num-traits",
|
|
2941
2998
|
"smallvec",
|
|
@@ -2955,13 +3012,14 @@ checksum = "973443cf09a9c8656b574a866ab68dfa19f0867d0340648c7d2f6a71b8a8ea68"
|
|
|
2955
3012
|
|
|
2956
3013
|
[[package]]
|
|
2957
3014
|
name = "rasn"
|
|
2958
|
-
version = "0.
|
|
3015
|
+
version = "0.28.6"
|
|
2959
3016
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2960
|
-
checksum = "
|
|
3017
|
+
checksum = "f6826672fcb973bda1fbc24f26c44f310d5a3a94e2203c65b431a7129c98d045"
|
|
2961
3018
|
dependencies = [
|
|
2962
3019
|
"bitvec",
|
|
2963
3020
|
"bitvec-nom2",
|
|
2964
3021
|
"bytes",
|
|
3022
|
+
"cfg-if",
|
|
2965
3023
|
"chrono",
|
|
2966
3024
|
"either",
|
|
2967
3025
|
"nom 7.1.3",
|
|
@@ -2977,9 +3035,9 @@ dependencies = [
|
|
|
2977
3035
|
|
|
2978
3036
|
[[package]]
|
|
2979
3037
|
name = "rasn-cms"
|
|
2980
|
-
version = "0.
|
|
3038
|
+
version = "0.28.6"
|
|
2981
3039
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2982
|
-
checksum = "
|
|
3040
|
+
checksum = "63663a1b4e04736a7d30b382afcb850e04252a0fdfc27df64355ed7bb89979b6"
|
|
2983
3041
|
dependencies = [
|
|
2984
3042
|
"rasn",
|
|
2985
3043
|
"rasn-pkix",
|
|
@@ -2987,9 +3045,9 @@ dependencies = [
|
|
|
2987
3045
|
|
|
2988
3046
|
[[package]]
|
|
2989
3047
|
name = "rasn-derive"
|
|
2990
|
-
version = "0.
|
|
3048
|
+
version = "0.28.6"
|
|
2991
3049
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2992
|
-
checksum = "
|
|
3050
|
+
checksum = "fb0bd5a6f3cca9813e59b84dcddd9fa801fb8f8fb2ac00b4dcfa3d2fcf551549"
|
|
2993
3051
|
dependencies = [
|
|
2994
3052
|
"proc-macro2",
|
|
2995
3053
|
"rasn-derive-impl",
|
|
@@ -2998,9 +3056,9 @@ dependencies = [
|
|
|
2998
3056
|
|
|
2999
3057
|
[[package]]
|
|
3000
3058
|
name = "rasn-derive-impl"
|
|
3001
|
-
version = "0.
|
|
3059
|
+
version = "0.28.6"
|
|
3002
3060
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3003
|
-
checksum = "
|
|
3061
|
+
checksum = "3d556b967fead7bbcd6b95a70a688c9edd46a4b2868409aaa49295c6583a27af"
|
|
3004
3062
|
dependencies = [
|
|
3005
3063
|
"either",
|
|
3006
3064
|
"itertools 0.13.0",
|
|
@@ -3012,9 +3070,9 @@ dependencies = [
|
|
|
3012
3070
|
|
|
3013
3071
|
[[package]]
|
|
3014
3072
|
name = "rasn-ocsp"
|
|
3015
|
-
version = "0.
|
|
3073
|
+
version = "0.28.6"
|
|
3016
3074
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3017
|
-
checksum = "
|
|
3075
|
+
checksum = "bfec303ac3a04490191e4cd032eb33eb0a04e5b6ce1ce9f63d537b4d142e9365"
|
|
3018
3076
|
dependencies = [
|
|
3019
3077
|
"rasn",
|
|
3020
3078
|
"rasn-pkix",
|
|
@@ -3022,9 +3080,9 @@ dependencies = [
|
|
|
3022
3080
|
|
|
3023
3081
|
[[package]]
|
|
3024
3082
|
name = "rasn-pkix"
|
|
3025
|
-
version = "0.
|
|
3083
|
+
version = "0.28.6"
|
|
3026
3084
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3027
|
-
checksum = "
|
|
3085
|
+
checksum = "5ad9d81988559e392ac2feab9b4a8731eff8e6176e8339ae930a949ae265a1d0"
|
|
3028
3086
|
dependencies = [
|
|
3029
3087
|
"rasn",
|
|
3030
3088
|
]
|
|
@@ -3488,7 +3546,7 @@ version = "1.0.145"
|
|
|
3488
3546
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3489
3547
|
checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c"
|
|
3490
3548
|
dependencies = [
|
|
3491
|
-
"indexmap 2.
|
|
3549
|
+
"indexmap 2.13.0",
|
|
3492
3550
|
"itoa",
|
|
3493
3551
|
"memchr",
|
|
3494
3552
|
"ryu",
|
|
@@ -3505,6 +3563,15 @@ dependencies = [
|
|
|
3505
3563
|
"serde",
|
|
3506
3564
|
]
|
|
3507
3565
|
|
|
3566
|
+
[[package]]
|
|
3567
|
+
name = "serde_spanned"
|
|
3568
|
+
version = "1.0.4"
|
|
3569
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3570
|
+
checksum = "f8bbf91e5a4d6315eee45e704372590b30e260ee83af6639d64557f51b067776"
|
|
3571
|
+
dependencies = [
|
|
3572
|
+
"serde_core",
|
|
3573
|
+
]
|
|
3574
|
+
|
|
3508
3575
|
[[package]]
|
|
3509
3576
|
name = "serde_urlencoded"
|
|
3510
3577
|
version = "0.7.1"
|
|
@@ -3527,7 +3594,7 @@ dependencies = [
|
|
|
3527
3594
|
"chrono",
|
|
3528
3595
|
"hex",
|
|
3529
3596
|
"indexmap 1.9.3",
|
|
3530
|
-
"indexmap 2.
|
|
3597
|
+
"indexmap 2.13.0",
|
|
3531
3598
|
"schemars 0.9.0",
|
|
3532
3599
|
"schemars 1.0.4",
|
|
3533
3600
|
"serde_core",
|
|
@@ -3823,7 +3890,7 @@ dependencies = [
|
|
|
3823
3890
|
"cfg-expr",
|
|
3824
3891
|
"heck",
|
|
3825
3892
|
"pkg-config",
|
|
3826
|
-
"toml",
|
|
3893
|
+
"toml 0.8.23",
|
|
3827
3894
|
"version-compare",
|
|
3828
3895
|
]
|
|
3829
3896
|
|
|
@@ -3863,15 +3930,6 @@ dependencies = [
|
|
|
3863
3930
|
"windows-sys 0.60.2",
|
|
3864
3931
|
]
|
|
3865
3932
|
|
|
3866
|
-
[[package]]
|
|
3867
|
-
name = "termcolor"
|
|
3868
|
-
version = "1.4.1"
|
|
3869
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3870
|
-
checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"
|
|
3871
|
-
dependencies = [
|
|
3872
|
-
"winapi-util",
|
|
3873
|
-
]
|
|
3874
|
-
|
|
3875
3933
|
[[package]]
|
|
3876
3934
|
name = "thiserror"
|
|
3877
3935
|
version = "1.0.69"
|
|
@@ -4026,11 +4084,26 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
4026
4084
|
checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362"
|
|
4027
4085
|
dependencies = [
|
|
4028
4086
|
"serde",
|
|
4029
|
-
"serde_spanned",
|
|
4030
|
-
"toml_datetime",
|
|
4087
|
+
"serde_spanned 0.6.9",
|
|
4088
|
+
"toml_datetime 0.6.11",
|
|
4031
4089
|
"toml_edit",
|
|
4032
4090
|
]
|
|
4033
4091
|
|
|
4092
|
+
[[package]]
|
|
4093
|
+
name = "toml"
|
|
4094
|
+
version = "0.9.11+spec-1.1.0"
|
|
4095
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
4096
|
+
checksum = "f3afc9a848309fe1aaffaed6e1546a7a14de1f935dc9d89d32afd9a44bab7c46"
|
|
4097
|
+
dependencies = [
|
|
4098
|
+
"indexmap 2.13.0",
|
|
4099
|
+
"serde_core",
|
|
4100
|
+
"serde_spanned 1.0.4",
|
|
4101
|
+
"toml_datetime 0.7.5+spec-1.1.0",
|
|
4102
|
+
"toml_parser",
|
|
4103
|
+
"toml_writer",
|
|
4104
|
+
"winnow",
|
|
4105
|
+
]
|
|
4106
|
+
|
|
4034
4107
|
[[package]]
|
|
4035
4108
|
name = "toml_datetime"
|
|
4036
4109
|
version = "0.6.11"
|
|
@@ -4040,26 +4113,50 @@ dependencies = [
|
|
|
4040
4113
|
"serde",
|
|
4041
4114
|
]
|
|
4042
4115
|
|
|
4116
|
+
[[package]]
|
|
4117
|
+
name = "toml_datetime"
|
|
4118
|
+
version = "0.7.5+spec-1.1.0"
|
|
4119
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
4120
|
+
checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347"
|
|
4121
|
+
dependencies = [
|
|
4122
|
+
"serde_core",
|
|
4123
|
+
]
|
|
4124
|
+
|
|
4043
4125
|
[[package]]
|
|
4044
4126
|
name = "toml_edit"
|
|
4045
4127
|
version = "0.22.27"
|
|
4046
4128
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
4047
4129
|
checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a"
|
|
4048
4130
|
dependencies = [
|
|
4049
|
-
"indexmap 2.
|
|
4131
|
+
"indexmap 2.13.0",
|
|
4050
4132
|
"serde",
|
|
4051
|
-
"serde_spanned",
|
|
4052
|
-
"toml_datetime",
|
|
4133
|
+
"serde_spanned 0.6.9",
|
|
4134
|
+
"toml_datetime 0.6.11",
|
|
4053
4135
|
"toml_write",
|
|
4054
4136
|
"winnow",
|
|
4055
4137
|
]
|
|
4056
4138
|
|
|
4139
|
+
[[package]]
|
|
4140
|
+
name = "toml_parser"
|
|
4141
|
+
version = "1.0.6+spec-1.1.0"
|
|
4142
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
4143
|
+
checksum = "a3198b4b0a8e11f09dd03e133c0280504d0801269e9afa46362ffde1cbeebf44"
|
|
4144
|
+
dependencies = [
|
|
4145
|
+
"winnow",
|
|
4146
|
+
]
|
|
4147
|
+
|
|
4057
4148
|
[[package]]
|
|
4058
4149
|
name = "toml_write"
|
|
4059
4150
|
version = "0.1.2"
|
|
4060
4151
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
4061
4152
|
checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801"
|
|
4062
4153
|
|
|
4154
|
+
[[package]]
|
|
4155
|
+
name = "toml_writer"
|
|
4156
|
+
version = "1.0.6+spec-1.1.0"
|
|
4157
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
4158
|
+
checksum = "ab16f14aed21ee8bfd8ec22513f7287cd4a91aa92e44edfe2c17ddd004e92607"
|
|
4159
|
+
|
|
4063
4160
|
[[package]]
|
|
4064
4161
|
name = "tower"
|
|
4065
4162
|
version = "0.5.2"
|
|
@@ -4161,6 +4258,12 @@ version = "0.25.1"
|
|
|
4161
4258
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
4162
4259
|
checksum = "d2df906b07856748fa3f6e0ad0cbaa047052d4a7dd609e231c4f72cee8c36f31"
|
|
4163
4260
|
|
|
4261
|
+
[[package]]
|
|
4262
|
+
name = "typed-path"
|
|
4263
|
+
version = "0.12.0"
|
|
4264
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
4265
|
+
checksum = "7922f2cdc51280d47b491af9eafc41eb0cdab85eabcb390c854412fcbf26dbe8"
|
|
4266
|
+
|
|
4164
4267
|
[[package]]
|
|
4165
4268
|
name = "typenum"
|
|
4166
4269
|
version = "1.18.0"
|
|
@@ -4280,6 +4383,12 @@ version = "1.0.4"
|
|
|
4280
4383
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
4281
4384
|
checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
|
|
4282
4385
|
|
|
4386
|
+
[[package]]
|
|
4387
|
+
name = "utf8parse"
|
|
4388
|
+
version = "0.2.2"
|
|
4389
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
4390
|
+
checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
|
|
4391
|
+
|
|
4283
4392
|
[[package]]
|
|
4284
4393
|
name = "uuid"
|
|
4285
4394
|
version = "1.18.1"
|
|
@@ -4466,15 +4575,6 @@ version = "0.4.0"
|
|
|
4466
4575
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
4467
4576
|
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
|
4468
4577
|
|
|
4469
|
-
[[package]]
|
|
4470
|
-
name = "winapi-util"
|
|
4471
|
-
version = "0.1.9"
|
|
4472
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
4473
|
-
checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
|
|
4474
|
-
dependencies = [
|
|
4475
|
-
"windows-sys 0.59.0",
|
|
4476
|
-
]
|
|
4477
|
-
|
|
4478
4578
|
[[package]]
|
|
4479
4579
|
name = "winapi-x86_64-pc-windows-gnu"
|
|
4480
4580
|
version = "0.4.0"
|
|
@@ -4714,9 +4814,9 @@ checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486"
|
|
|
4714
4814
|
|
|
4715
4815
|
[[package]]
|
|
4716
4816
|
name = "winnow"
|
|
4717
|
-
version = "0.7.
|
|
4817
|
+
version = "0.7.14"
|
|
4718
4818
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
4719
|
-
checksum = "
|
|
4819
|
+
checksum = "5a5364e9d77fcdeeaa6062ced926ee3381faa2ee02d3eb83a5c27a8825540829"
|
|
4720
4820
|
dependencies = [
|
|
4721
4821
|
"memchr",
|
|
4722
4822
|
]
|
|
@@ -4774,9 +4874,9 @@ dependencies = [
|
|
|
4774
4874
|
|
|
4775
4875
|
[[package]]
|
|
4776
4876
|
name = "x509-parser"
|
|
4777
|
-
version = "0.
|
|
4877
|
+
version = "0.18.0"
|
|
4778
4878
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
4779
|
-
checksum = "
|
|
4879
|
+
checksum = "eb3e137310115a65136898d2079f003ce33331a6c4b0d51f1531d1be082b6425"
|
|
4780
4880
|
dependencies = [
|
|
4781
4881
|
"asn1-rs",
|
|
4782
4882
|
"data-encoding",
|
|
@@ -4785,7 +4885,7 @@ dependencies = [
|
|
|
4785
4885
|
"nom 7.1.3",
|
|
4786
4886
|
"oid-registry",
|
|
4787
4887
|
"rusticata-macros",
|
|
4788
|
-
"thiserror
|
|
4888
|
+
"thiserror 2.0.17",
|
|
4789
4889
|
"time",
|
|
4790
4890
|
]
|
|
4791
4891
|
|
|
@@ -4931,8 +5031,20 @@ checksum = "eb2a05c7c36fde6c09b08576c9f7fb4cda705990f73b58fe011abf7dfb24168b"
|
|
|
4931
5031
|
dependencies = [
|
|
4932
5032
|
"arbitrary",
|
|
4933
5033
|
"crc32fast",
|
|
4934
|
-
"indexmap 2.
|
|
5034
|
+
"indexmap 2.13.0",
|
|
5035
|
+
"memchr",
|
|
5036
|
+
]
|
|
5037
|
+
|
|
5038
|
+
[[package]]
|
|
5039
|
+
name = "zip"
|
|
5040
|
+
version = "7.2.0"
|
|
5041
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
5042
|
+
checksum = "c42e33efc22a0650c311c2ef19115ce232583abbe80850bc8b66509ebef02de0"
|
|
5043
|
+
dependencies = [
|
|
5044
|
+
"crc32fast",
|
|
5045
|
+
"indexmap 2.13.0",
|
|
4935
5046
|
"memchr",
|
|
5047
|
+
"typed-path",
|
|
4936
5048
|
]
|
|
4937
5049
|
|
|
4938
5050
|
[[package]]
|
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.
|
|
14
|
+
c2pa = { version = "0.75.6", 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/Reader.spec.js
CHANGED
|
@@ -22,6 +22,7 @@ describe("Reader", () => {
|
|
|
22
22
|
"manifests": {
|
|
23
23
|
"contentauth:urn:uuid:c2677d4b-0a93-4444-876f-ed2f2d40b8cf": {
|
|
24
24
|
"claim_generator": "make_test_images/0.33.1 c2pa-rs/0.33.1",
|
|
25
|
+
"claim_version": 1,
|
|
25
26
|
"claim_generator_info": [
|
|
26
27
|
{
|
|
27
28
|
"name": "make_test_images",
|
|
@@ -152,6 +153,28 @@ describe("Reader", () => {
|
|
|
152
153
|
});
|
|
153
154
|
const json = reader.json();
|
|
154
155
|
expect(json.manifests).toEqual(manifestStore.manifests);
|
|
156
|
+
expect(json.validation_status[0].code).toEqual("signingCredential.untrusted");
|
|
157
|
+
}));
|
|
158
|
+
it("should read from manifest data and file with settings context", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
159
|
+
const manifestData = yield fs.readFile("./tests/fixtures/CA/manifest_data.c2pa");
|
|
160
|
+
const buffer = yield fs.readFile("./tests/fixtures/CA.jpg");
|
|
161
|
+
const settings = {
|
|
162
|
+
verify: {
|
|
163
|
+
verify_after_reading: false,
|
|
164
|
+
verify_trust: false,
|
|
165
|
+
},
|
|
166
|
+
};
|
|
167
|
+
const reader = yield Reader.fromManifestDataAndAsset(manifestData, {
|
|
168
|
+
buffer,
|
|
169
|
+
mimeType: "jpeg",
|
|
170
|
+
}, settings);
|
|
171
|
+
expect(reader).not.toBeNull();
|
|
172
|
+
const json = reader.json();
|
|
173
|
+
// Settings should affect validation behavior
|
|
174
|
+
// With verify_after_reading: false, validation_status should be undefined
|
|
175
|
+
expect(json.validation_status).toBeUndefined();
|
|
176
|
+
expect(json.manifests).toBeDefined();
|
|
177
|
+
expect(json.active_manifest).toEqual(manifestStore.active_manifest);
|
|
155
178
|
}));
|
|
156
179
|
it("should write to a file", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
157
180
|
var _a;
|
package/dist/index.node
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/neon_builder.rs
CHANGED
|
@@ -293,14 +293,17 @@ impl NeonBuilder {
|
|
|
293
293
|
.argument::<JsObject>(0)
|
|
294
294
|
.and_then(|obj| parse_asset(&mut cx, obj))?;
|
|
295
295
|
|
|
296
|
-
|
|
297
|
-
let _context_opt =
|
|
296
|
+
let context_opt =
|
|
298
297
|
parse_settings(&mut cx, 1, "Builder").or_else(|err| cx.throw_error(err.to_string()))?;
|
|
299
298
|
|
|
300
299
|
let promise = cx
|
|
301
300
|
.task(move || {
|
|
302
301
|
let source_stream = source.into_read_stream()?;
|
|
303
|
-
let builder =
|
|
302
|
+
let builder = if let Some(context) = context_opt {
|
|
303
|
+
Builder::from_context(context).with_archive(source_stream)?
|
|
304
|
+
} else {
|
|
305
|
+
Builder::from_archive(source_stream)?
|
|
306
|
+
};
|
|
304
307
|
Ok(builder)
|
|
305
308
|
})
|
|
306
309
|
.promise(
|
package/src/neon_reader.rs
CHANGED
|
@@ -110,7 +110,7 @@ impl NeonReader {
|
|
|
110
110
|
|
|
111
111
|
// Parse optional settings parameter (argument 2) - note: settings are not currently used
|
|
112
112
|
// for from_manifest_data_and_asset as the c2pa-rs API doesn't support context for this method yet
|
|
113
|
-
let
|
|
113
|
+
let context_opt =
|
|
114
114
|
parse_settings(&mut cx, 2, "Reader").or_else(|err| cx.throw_error(err.to_string()))?;
|
|
115
115
|
|
|
116
116
|
let c2pa_data = manifest_data.as_slice(&cx).to_vec();
|
|
@@ -125,11 +125,13 @@ impl NeonReader {
|
|
|
125
125
|
.to_owned();
|
|
126
126
|
let stream = asset.into_read_stream()?;
|
|
127
127
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
128
|
+
let reader = if let Some(context) = context_opt {
|
|
129
|
+
Reader::from_context(context)
|
|
130
|
+
.with_manifest_data_and_stream_async(&c2pa_data, &format, stream)
|
|
131
|
+
.await?
|
|
132
|
+
} else {
|
|
133
|
+
Reader::from_manifest_data_and_stream_async(&c2pa_data, &format, stream).await?
|
|
134
|
+
};
|
|
133
135
|
|
|
134
136
|
Ok(reader)
|
|
135
137
|
}
|