iscc-lib 0.0.2__tar.gz → 0.0.4__tar.gz

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.
Files changed (31) hide show
  1. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/Cargo.lock +287 -6
  2. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/Cargo.toml +2 -1
  3. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/PKG-INFO +3 -1
  4. {iscc_lib-0.0.2/crates/iscc-py → iscc_lib-0.0.4}/README.md +1 -0
  5. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/crates/iscc-lib/CLAUDE.md +26 -22
  6. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/crates/iscc-lib/Cargo.toml +1 -0
  7. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/crates/iscc-lib/README.md +1 -0
  8. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/crates/iscc-lib/benches/benchmarks.rs +66 -3
  9. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/crates/iscc-lib/src/cdc.rs +70 -15
  10. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/crates/iscc-lib/src/lib.rs +688 -4
  11. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/crates/iscc-lib/src/types.rs +12 -0
  12. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/crates/iscc-py/CLAUDE.md +2 -2
  13. {iscc_lib-0.0.2 → iscc_lib-0.0.4/crates/iscc-py}/README.md +1 -0
  14. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/crates/iscc-py/src/lib.rs +65 -0
  15. iscc_lib-0.0.4/crates/iscc-py/uv.lock +7 -0
  16. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/pyproject.toml +1 -0
  17. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/python/iscc_lib/__init__.py +109 -2
  18. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/python/iscc_lib/_lowlevel.pyi +71 -0
  19. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/crates/iscc-lib/src/codec.rs +0 -0
  20. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/crates/iscc-lib/src/conformance.rs +0 -0
  21. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/crates/iscc-lib/src/dct.rs +0 -0
  22. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/crates/iscc-lib/src/minhash.rs +0 -0
  23. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/crates/iscc-lib/src/simhash.rs +0 -0
  24. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/crates/iscc-lib/src/streaming.rs +0 -0
  25. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/crates/iscc-lib/src/utils.rs +0 -0
  26. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/crates/iscc-lib/src/wtahash.rs +0 -0
  27. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/crates/iscc-lib/tests/data.json +0 -0
  28. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/crates/iscc-lib/tests/test_algorithm_primitives.rs +0 -0
  29. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/crates/iscc-lib/tests/test_text_utils.rs +0 -0
  30. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/crates/iscc-py/Cargo.toml +0 -0
  31. {iscc_lib-0.0.2 → iscc_lib-0.0.4}/python/iscc_lib/py.typed +0 -0
@@ -23,6 +23,12 @@ version = "1.0.13"
23
23
  source = "registry+https://github.com/rust-lang/crates.io-index"
24
24
  checksum = "5192cca8006f1fd4f7237516f40fa183bb07f8fbdfedaa0036de5ea9b0b45e78"
25
25
 
26
+ [[package]]
27
+ name = "anyhow"
28
+ version = "1.0.102"
29
+ source = "registry+https://github.com/rust-lang/crates.io-index"
30
+ checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
31
+
26
32
  [[package]]
27
33
  name = "arrayref"
28
34
  version = "0.3.9"
@@ -308,12 +314,40 @@ version = "1.15.0"
308
314
  source = "registry+https://github.com/rust-lang/crates.io-index"
309
315
  checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
310
316
 
317
+ [[package]]
318
+ name = "equivalent"
319
+ version = "1.0.2"
320
+ source = "registry+https://github.com/rust-lang/crates.io-index"
321
+ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
322
+
323
+ [[package]]
324
+ name = "errno"
325
+ version = "0.3.14"
326
+ source = "registry+https://github.com/rust-lang/crates.io-index"
327
+ checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
328
+ dependencies = [
329
+ "libc",
330
+ "windows-sys 0.61.2",
331
+ ]
332
+
333
+ [[package]]
334
+ name = "fastrand"
335
+ version = "2.3.0"
336
+ source = "registry+https://github.com/rust-lang/crates.io-index"
337
+ checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be"
338
+
311
339
  [[package]]
312
340
  name = "find-msvc-tools"
313
341
  version = "0.1.9"
314
342
  source = "registry+https://github.com/rust-lang/crates.io-index"
315
343
  checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
316
344
 
345
+ [[package]]
346
+ name = "foldhash"
347
+ version = "0.1.5"
348
+ source = "registry+https://github.com/rust-lang/crates.io-index"
349
+ checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
350
+
317
351
  [[package]]
318
352
  name = "futures"
319
353
  version = "0.3.32"
@@ -402,6 +436,19 @@ dependencies = [
402
436
  "slab",
403
437
  ]
404
438
 
439
+ [[package]]
440
+ name = "getrandom"
441
+ version = "0.4.1"
442
+ source = "registry+https://github.com/rust-lang/crates.io-index"
443
+ checksum = "139ef39800118c7683f2fd3c98c1b23c09ae076556b435f8e9064ae108aaeeec"
444
+ dependencies = [
445
+ "cfg-if",
446
+ "libc",
447
+ "r-efi",
448
+ "wasip2",
449
+ "wasip3",
450
+ ]
451
+
405
452
  [[package]]
406
453
  name = "half"
407
454
  version = "2.7.1"
@@ -413,6 +460,21 @@ dependencies = [
413
460
  "zerocopy",
414
461
  ]
415
462
 
463
+ [[package]]
464
+ name = "hashbrown"
465
+ version = "0.15.5"
466
+ source = "registry+https://github.com/rust-lang/crates.io-index"
467
+ checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
468
+ dependencies = [
469
+ "foldhash",
470
+ ]
471
+
472
+ [[package]]
473
+ name = "hashbrown"
474
+ version = "0.16.1"
475
+ source = "registry+https://github.com/rust-lang/crates.io-index"
476
+ checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
477
+
416
478
  [[package]]
417
479
  name = "heck"
418
480
  version = "0.5.0"
@@ -431,6 +493,24 @@ version = "0.4.3"
431
493
  source = "registry+https://github.com/rust-lang/crates.io-index"
432
494
  checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
433
495
 
496
+ [[package]]
497
+ name = "id-arena"
498
+ version = "2.3.0"
499
+ source = "registry+https://github.com/rust-lang/crates.io-index"
500
+ checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954"
501
+
502
+ [[package]]
503
+ name = "indexmap"
504
+ version = "2.13.0"
505
+ source = "registry+https://github.com/rust-lang/crates.io-index"
506
+ checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017"
507
+ dependencies = [
508
+ "equivalent",
509
+ "hashbrown 0.16.1",
510
+ "serde",
511
+ "serde_core",
512
+ ]
513
+
434
514
  [[package]]
435
515
  name = "indoc"
436
516
  version = "2.0.7"
@@ -453,14 +533,14 @@ dependencies = [
453
533
 
454
534
  [[package]]
455
535
  name = "iscc-ffi"
456
- version = "0.0.2"
536
+ version = "0.0.4"
457
537
  dependencies = [
458
538
  "iscc-lib",
459
539
  ]
460
540
 
461
541
  [[package]]
462
542
  name = "iscc-jni"
463
- version = "0.0.2"
543
+ version = "0.0.4"
464
544
  dependencies = [
465
545
  "iscc-lib",
466
546
  "jni",
@@ -468,7 +548,7 @@ dependencies = [
468
548
 
469
549
  [[package]]
470
550
  name = "iscc-lib"
471
- version = "0.0.2"
551
+ version = "0.0.4"
472
552
  dependencies = [
473
553
  "blake3",
474
554
  "criterion",
@@ -477,6 +557,7 @@ dependencies = [
477
557
  "serde",
478
558
  "serde_json",
479
559
  "serde_json_canonicalizer",
560
+ "tempfile",
480
561
  "thiserror 2.0.18",
481
562
  "unicode-general-category",
482
563
  "unicode-normalization",
@@ -485,7 +566,7 @@ dependencies = [
485
566
 
486
567
  [[package]]
487
568
  name = "iscc-napi"
488
- version = "0.0.2"
569
+ version = "0.0.4"
489
570
  dependencies = [
490
571
  "iscc-lib",
491
572
  "napi",
@@ -495,7 +576,7 @@ dependencies = [
495
576
 
496
577
  [[package]]
497
578
  name = "iscc-py"
498
- version = "0.0.2"
579
+ version = "0.0.4"
499
580
  dependencies = [
500
581
  "iscc-lib",
501
582
  "pyo3",
@@ -503,7 +584,7 @@ dependencies = [
503
584
 
504
585
  [[package]]
505
586
  name = "iscc-wasm"
506
- version = "0.0.2"
587
+ version = "0.0.4"
507
588
  dependencies = [
508
589
  "hex",
509
590
  "iscc-lib",
@@ -561,6 +642,12 @@ dependencies = [
561
642
  "wasm-bindgen",
562
643
  ]
563
644
 
645
+ [[package]]
646
+ name = "leb128fmt"
647
+ version = "0.1.0"
648
+ source = "registry+https://github.com/rust-lang/crates.io-index"
649
+ checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"
650
+
564
651
  [[package]]
565
652
  name = "libc"
566
653
  version = "0.2.182"
@@ -583,6 +670,12 @@ version = "0.2.16"
583
670
  source = "registry+https://github.com/rust-lang/crates.io-index"
584
671
  checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
585
672
 
673
+ [[package]]
674
+ name = "linux-raw-sys"
675
+ version = "0.12.1"
676
+ source = "registry+https://github.com/rust-lang/crates.io-index"
677
+ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
678
+
586
679
  [[package]]
587
680
  name = "log"
588
681
  version = "0.4.29"
@@ -748,6 +841,16 @@ version = "1.13.1"
748
841
  source = "registry+https://github.com/rust-lang/crates.io-index"
749
842
  checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
750
843
 
844
+ [[package]]
845
+ name = "prettyplease"
846
+ version = "0.2.37"
847
+ source = "registry+https://github.com/rust-lang/crates.io-index"
848
+ checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"
849
+ dependencies = [
850
+ "proc-macro2",
851
+ "syn",
852
+ ]
853
+
751
854
  [[package]]
752
855
  name = "proc-macro2"
753
856
  version = "1.0.106"
@@ -829,6 +932,12 @@ dependencies = [
829
932
  "proc-macro2",
830
933
  ]
831
934
 
935
+ [[package]]
936
+ name = "r-efi"
937
+ version = "5.3.0"
938
+ source = "registry+https://github.com/rust-lang/crates.io-index"
939
+ checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
940
+
832
941
  [[package]]
833
942
  name = "rayon"
834
943
  version = "1.11.0"
@@ -884,6 +993,19 @@ version = "2.1.1"
884
993
  source = "registry+https://github.com/rust-lang/crates.io-index"
885
994
  checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d"
886
995
 
996
+ [[package]]
997
+ name = "rustix"
998
+ version = "1.1.4"
999
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1000
+ checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
1001
+ dependencies = [
1002
+ "bitflags",
1003
+ "errno",
1004
+ "libc",
1005
+ "linux-raw-sys",
1006
+ "windows-sys 0.61.2",
1007
+ ]
1008
+
887
1009
  [[package]]
888
1010
  name = "rustversion"
889
1011
  version = "1.0.22"
@@ -1005,6 +1127,19 @@ version = "0.12.16"
1005
1127
  source = "registry+https://github.com/rust-lang/crates.io-index"
1006
1128
  checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
1007
1129
 
1130
+ [[package]]
1131
+ name = "tempfile"
1132
+ version = "3.26.0"
1133
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1134
+ checksum = "82a72c767771b47409d2345987fda8628641887d5466101319899796367354a0"
1135
+ dependencies = [
1136
+ "fastrand",
1137
+ "getrandom",
1138
+ "once_cell",
1139
+ "rustix",
1140
+ "windows-sys 0.61.2",
1141
+ ]
1142
+
1008
1143
  [[package]]
1009
1144
  name = "thiserror"
1010
1145
  version = "1.0.69"
@@ -1097,6 +1232,12 @@ version = "1.12.0"
1097
1232
  source = "registry+https://github.com/rust-lang/crates.io-index"
1098
1233
  checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493"
1099
1234
 
1235
+ [[package]]
1236
+ name = "unicode-xid"
1237
+ version = "0.2.6"
1238
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1239
+ checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
1240
+
1100
1241
  [[package]]
1101
1242
  name = "unindent"
1102
1243
  version = "0.2.4"
@@ -1113,6 +1254,24 @@ dependencies = [
1113
1254
  "winapi-util",
1114
1255
  ]
1115
1256
 
1257
+ [[package]]
1258
+ name = "wasip2"
1259
+ version = "1.0.2+wasi-0.2.9"
1260
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1261
+ checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5"
1262
+ dependencies = [
1263
+ "wit-bindgen",
1264
+ ]
1265
+
1266
+ [[package]]
1267
+ name = "wasip3"
1268
+ version = "0.4.0+wasi-0.3.0-rc-2026-01-06"
1269
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1270
+ checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5"
1271
+ dependencies = [
1272
+ "wit-bindgen",
1273
+ ]
1274
+
1116
1275
  [[package]]
1117
1276
  name = "wasm-bindgen"
1118
1277
  version = "0.2.111"
@@ -1211,6 +1370,40 @@ version = "0.2.111"
1211
1370
  source = "registry+https://github.com/rust-lang/crates.io-index"
1212
1371
  checksum = "0000397743a3b549ddba01befd1a26020eff98a028429630281c4203b4cc538d"
1213
1372
 
1373
+ [[package]]
1374
+ name = "wasm-encoder"
1375
+ version = "0.244.0"
1376
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1377
+ checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319"
1378
+ dependencies = [
1379
+ "leb128fmt",
1380
+ "wasmparser",
1381
+ ]
1382
+
1383
+ [[package]]
1384
+ name = "wasm-metadata"
1385
+ version = "0.244.0"
1386
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1387
+ checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909"
1388
+ dependencies = [
1389
+ "anyhow",
1390
+ "indexmap",
1391
+ "wasm-encoder",
1392
+ "wasmparser",
1393
+ ]
1394
+
1395
+ [[package]]
1396
+ name = "wasmparser"
1397
+ version = "0.244.0"
1398
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1399
+ checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe"
1400
+ dependencies = [
1401
+ "bitflags",
1402
+ "hashbrown 0.15.5",
1403
+ "indexmap",
1404
+ "semver",
1405
+ ]
1406
+
1214
1407
  [[package]]
1215
1408
  name = "web-sys"
1216
1409
  version = "0.3.88"
@@ -1311,6 +1504,94 @@ version = "0.42.2"
1311
1504
  source = "registry+https://github.com/rust-lang/crates.io-index"
1312
1505
  checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0"
1313
1506
 
1507
+ [[package]]
1508
+ name = "wit-bindgen"
1509
+ version = "0.51.0"
1510
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1511
+ checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5"
1512
+ dependencies = [
1513
+ "wit-bindgen-rust-macro",
1514
+ ]
1515
+
1516
+ [[package]]
1517
+ name = "wit-bindgen-core"
1518
+ version = "0.51.0"
1519
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1520
+ checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc"
1521
+ dependencies = [
1522
+ "anyhow",
1523
+ "heck",
1524
+ "wit-parser",
1525
+ ]
1526
+
1527
+ [[package]]
1528
+ name = "wit-bindgen-rust"
1529
+ version = "0.51.0"
1530
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1531
+ checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21"
1532
+ dependencies = [
1533
+ "anyhow",
1534
+ "heck",
1535
+ "indexmap",
1536
+ "prettyplease",
1537
+ "syn",
1538
+ "wasm-metadata",
1539
+ "wit-bindgen-core",
1540
+ "wit-component",
1541
+ ]
1542
+
1543
+ [[package]]
1544
+ name = "wit-bindgen-rust-macro"
1545
+ version = "0.51.0"
1546
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1547
+ checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a"
1548
+ dependencies = [
1549
+ "anyhow",
1550
+ "prettyplease",
1551
+ "proc-macro2",
1552
+ "quote",
1553
+ "syn",
1554
+ "wit-bindgen-core",
1555
+ "wit-bindgen-rust",
1556
+ ]
1557
+
1558
+ [[package]]
1559
+ name = "wit-component"
1560
+ version = "0.244.0"
1561
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1562
+ checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2"
1563
+ dependencies = [
1564
+ "anyhow",
1565
+ "bitflags",
1566
+ "indexmap",
1567
+ "log",
1568
+ "serde",
1569
+ "serde_derive",
1570
+ "serde_json",
1571
+ "wasm-encoder",
1572
+ "wasm-metadata",
1573
+ "wasmparser",
1574
+ "wit-parser",
1575
+ ]
1576
+
1577
+ [[package]]
1578
+ name = "wit-parser"
1579
+ version = "0.244.0"
1580
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1581
+ checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736"
1582
+ dependencies = [
1583
+ "anyhow",
1584
+ "id-arena",
1585
+ "indexmap",
1586
+ "log",
1587
+ "semver",
1588
+ "serde",
1589
+ "serde_derive",
1590
+ "serde_json",
1591
+ "unicode-xid",
1592
+ "wasmparser",
1593
+ ]
1594
+
1314
1595
  [[package]]
1315
1596
  name = "xxhash-rust"
1316
1597
  version = "0.8.15"
@@ -3,7 +3,7 @@ resolver = "2"
3
3
  members = ["crates/iscc-lib", "crates/iscc-py"]
4
4
 
5
5
  [workspace.package]
6
- version = "0.0.2"
6
+ version = "0.0.4"
7
7
  edition = "2024"
8
8
  rust-version = "1.85"
9
9
  authors = ["Titusz Pan <tp@py7.de>"]
@@ -31,6 +31,7 @@ wasm-bindgen = "0.2"
31
31
  wasm-bindgen-test = "0.3"
32
32
  serde-wasm-bindgen = "0.6"
33
33
  criterion = { version = "0.5", features = ["html_reports"] }
34
+ tempfile = "3"
34
35
  jni = "0.21"
35
36
 
36
37
  [profile.release]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: iscc-lib
3
- Version: 0.0.2
3
+ Version: 0.0.4
4
4
  Classifier: Development Status :: 2 - Pre-Alpha
5
5
  Classifier: Intended Audience :: Developers
6
6
  Classifier: License :: OSI Approved :: Apache Software License
@@ -11,6 +11,7 @@ Classifier: Programming Language :: Python :: 3.10
11
11
  Classifier: Programming Language :: Python :: 3.11
12
12
  Classifier: Programming Language :: Python :: 3.12
13
13
  Classifier: Programming Language :: Python :: 3.13
14
+ Classifier: Programming Language :: Python :: 3.14
14
15
  Classifier: Topic :: Multimedia
15
16
  Classifier: Topic :: Scientific/Engineering :: Information Analysis
16
17
  Classifier: Topic :: Software Development :: Libraries
@@ -75,6 +76,7 @@ print(f"Meta-Code: {result['iscc']}")
75
76
  | `gen_data_code_v0` | Generate a Data-Code from bytes or stream |
76
77
  | `gen_instance_code_v0` | Generate an Instance-Code from bytes or stream |
77
78
  | `gen_iscc_code_v0` | Generate a composite ISCC-CODE |
79
+ | `gen_sum_code_v0` | Generate an ISCC-SUM from a file path |
78
80
 
79
81
  ### Utilities
80
82
 
@@ -48,6 +48,7 @@ print(f"Meta-Code: {result['iscc']}")
48
48
  | `gen_data_code_v0` | Generate a Data-Code from bytes or stream |
49
49
  | `gen_instance_code_v0` | Generate an Instance-Code from bytes or stream |
50
50
  | `gen_iscc_code_v0` | Generate a composite ISCC-CODE |
51
+ | `gen_sum_code_v0` | Generate an ISCC-SUM from a file path |
51
52
 
52
53
  ### Utilities
53
54
 
@@ -5,39 +5,41 @@ Pure Rust implementation of ISO 24138:2024 (ISCC) -- the hub of the hub-and-spok
5
5
  ## Crate Role
6
6
 
7
7
  - This is the **core crate** that all binding crates (`iscc-py`, `iscc-napi`, `iscc-wasm`,
8
- `iscc-ffi`) depend on
8
+ `iscc-ffi`, `iscc-jni`) depend on
9
9
  - Must remain **pure Rust** -- zero binding dependencies (no PyO3, napi, wasm-bindgen)
10
10
  - Publishable to crates.io as `iscc-lib`
11
11
  - All ISCC algorithm logic lives here; binding crates only translate the API
12
12
 
13
13
  ## Module Layout
14
14
 
15
- | Module | Visibility | Purpose |
16
- | ---------------- | ------------ | ---------------------------------------------------------------------------------------------------------------- |
17
- | `lib.rs` | public | Crate root: re-exports, `IsccError`/`IsccResult`, all 9 `gen_*_v0` functions |
18
- | `types.rs` | `pub` | Result structs (`MetaCodeResult`, `TextCodeResult`, etc.) |
19
- | `codec.rs` | `pub` | Tier 2: `MainType`/`SubType`/`Version` enums, header encode/decode, base32, `encode_component`, `iscc_decompose` |
20
- | `streaming.rs` | `pub` | `DataHasher` and `InstanceHasher` streaming types |
21
- | `conformance.rs` | `pub` | `conformance_selftest()` -- runtime conformance checker |
22
- | `utils.rs` | `pub` | `text_clean`, `text_remove_newlines`, `text_trim`, `text_collapse`, `multi_hash_blake3` (pub(crate)) |
23
- | `cdc.rs` | `pub` | Content-defined chunking (`alg_cdc_chunks`) |
24
- | `minhash.rs` | `pub` | MinHash algorithm (`alg_minhash_256`) |
25
- | `simhash.rs` | `pub` | SimHash and sliding window (`alg_simhash`, `sliding_window`) |
26
- | `dct.rs` | `pub(crate)` | Discrete Cosine Transform for image hashing |
27
- | `wtahash.rs` | `pub(crate)` | Winner-Take-All hash for video fingerprinting |
15
+ | Module | Visibility | Purpose |
16
+ | ---------------- | ------------ | ---------------------------------------------------------------------------------------------------- |
17
+ | `lib.rs` | public | Crate root: re-exports, `IsccError`/`IsccResult`, all 10 `gen_*_v0` functions |
18
+ | `types.rs` | `pub` | Result structs (`MetaCodeResult`, `TextCodeResult`, etc.) |
19
+ | `codec.rs` | `pub` | Tier 2: `MainType`/`SubType`/`Version` enums, header encode/decode, base32, `iscc_decompose` |
20
+ | `streaming.rs` | `pub` | `DataHasher` and `InstanceHasher` streaming types |
21
+ | `conformance.rs` | `pub` | `conformance_selftest()` -- runtime conformance checker |
22
+ | `utils.rs` | `pub` | `text_clean`, `text_remove_newlines`, `text_trim`, `text_collapse`, `multi_hash_blake3` (pub(crate)) |
23
+ | `cdc.rs` | `pub` | Content-defined chunking (`alg_cdc_chunks`) |
24
+ | `minhash.rs` | `pub` | MinHash algorithm (`alg_minhash_256`) |
25
+ | `simhash.rs` | `pub` | SimHash and sliding window (`alg_simhash`, `sliding_window`) |
26
+ | `dct.rs` | `pub(crate)` | Discrete Cosine Transform for image hashing |
27
+ | `wtahash.rs` | `pub(crate)` | Winner-Take-All hash for video fingerprinting |
28
28
 
29
29
  ## API Tier Rules
30
30
 
31
- **Tier 1 -- public API, bound in all languages (22 symbols at crate root):**
31
+ **Tier 1 -- public API, bound in all languages (30 symbols at crate root):**
32
32
 
33
- - 9 gen functions: `gen_meta_code_v0`, `gen_text_code_v0`, `gen_image_code_v0`, `gen_audio_code_v0`,
34
- `gen_video_code_v0`, `gen_mixed_code_v0`, `gen_data_code_v0`, `gen_instance_code_v0`,
35
- `gen_iscc_code_v0`
33
+ - 10 gen functions: `gen_meta_code_v0`, `gen_text_code_v0`, `gen_image_code_v0`,
34
+ `gen_audio_code_v0`, `gen_video_code_v0`, `gen_mixed_code_v0`, `gen_data_code_v0`,
35
+ `gen_instance_code_v0`, `gen_iscc_code_v0`, `gen_sum_code_v0`
36
36
  - 4 text utilities: `text_clean`, `text_remove_newlines`, `text_trim`, `text_collapse`
37
37
  - 4 algorithm primitives: `sliding_window`, `alg_minhash_256`, `alg_cdc_chunks`, `alg_simhash`
38
38
  - 1 soft hash: `soft_hash_video_v0`
39
- - 1 encoding utility: `encode_base64`
40
- - 1 codec operation: `iscc_decompose`
39
+ - 2 encoding utilities: `encode_base64`, `json_to_data_url`
40
+ - 3 codec operations: `iscc_decompose`, `encode_component`, `iscc_decode`
41
+ - 4 algorithm constants: `META_TRIM_NAME`, `META_TRIM_DESCRIPTION`, `IO_READ_SIZE`,
42
+ `TEXT_NGRAM_SIZE`
41
43
  - 2 streaming types: `DataHasher`, `InstanceHasher`
42
44
  - 1 diagnostic: `conformance_selftest`
43
45
 
@@ -45,7 +47,7 @@ Pure Rust implementation of ISO 24138:2024 (ISCC) -- the hub of the hub-and-spok
45
47
 
46
48
  - `MainType`, `SubType`, `Version` enums
47
49
  - `encode_header`, `decode_header`, `encode_base32`, `decode_base32`
48
- - `encode_component`, `encode_length`, `decode_length`, `encode_units`, `decode_units`
50
+ - `encode_length`, `decode_length`, `encode_units`, `decode_units`
49
51
 
50
52
  **Internal -- `pub(crate)` or private, free to change:**
51
53
 
@@ -90,7 +92,7 @@ new() -> update(&[u8]) -> ... -> update(&[u8]) -> finalize(bits) -> IsccResult<*
90
92
  ## Conformance Rules
91
93
 
92
94
  - Correctness baseline: vendored `tests/data.json` from `iscc-core`
93
- - All 9 `gen_*_v0` functions must match `iscc-core` output for every test vector
95
+ - All 10 `gen_*_v0` functions must match `iscc-core` output for every test vector
94
96
  - `conformance_selftest()` runs all vectors at runtime (non-panicking, returns bool)
95
97
  - Each `gen_*_v0` also has `#[test]` functions that run the same vectors and panic on mismatch
96
98
  - Streaming types (`DataHasher`/`InstanceHasher`) are tested against one-shot functions at multiple
@@ -118,6 +120,8 @@ cargo bench -p iscc-lib # Criterion benchmarks
118
120
  - `unicode-general-category` -- Unicode category classification for text filtering
119
121
  - `thiserror` -- error derive macro
120
122
  - `serde_json` -- JSON parsing for meta processing and conformance vectors
123
+ - `serde_json_canonicalizer` -- RFC 8785 (JCS) compliant JSON serialization for metadata
124
+ canonicalization
121
125
  - `serde` + `criterion` -- dev-dependencies only
122
126
 
123
127
  ## Common Pitfalls
@@ -26,6 +26,7 @@ xxhash-rust.workspace = true
26
26
  [dev-dependencies]
27
27
  serde = { workspace = true }
28
28
  criterion = { workspace = true }
29
+ tempfile = { workspace = true }
29
30
 
30
31
  [[bench]]
31
32
  name = "benchmarks"
@@ -47,6 +47,7 @@ println!("Meta-Code: {}", result.iscc);
47
47
  | `gen_data_code_v0` | Generate a Data-Code from raw bytes |
48
48
  | `gen_instance_code_v0` | Generate an Instance-Code from raw bytes |
49
49
  | `gen_iscc_code_v0` | Generate a composite ISCC-CODE |
50
+ | `gen_sum_code_v0` | Generate an ISCC-SUM from a file path |
50
51
 
51
52
  ### Utilities
52
53