tokenfold 0.6.0__tar.gz → 0.6.2__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.
- {tokenfold-0.6.0 → tokenfold-0.6.2}/Cargo.lock +104 -58
- {tokenfold-0.6.0 → tokenfold-0.6.2}/Cargo.toml +1 -1
- {tokenfold-0.6.0 → tokenfold-0.6.2}/PKG-INFO +4 -4
- {tokenfold-0.6.0 → tokenfold-0.6.2}/README.md +2 -2
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-adapters/Cargo.toml +1 -1
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-adapters/src/select_runtime.rs +8 -3
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-adapters/tests/select_runtime.rs +39 -1
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-py/Cargo.toml +2 -2
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-py/README.md +2 -2
- {tokenfold-0.6.0 → tokenfold-0.6.2}/pyproject.toml +1 -1
- {tokenfold-0.6.0 → tokenfold-0.6.2}/LICENSE +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-adapters/README.md +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-adapters/src/dedup.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-adapters/src/fit_request.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-adapters/src/lib.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-adapters/src/manifest.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-adapters/src/observation.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-adapters/src/select.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-adapters/src/semantic.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-adapters/src/session.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-adapters/src/tools.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-adapters/tests/fit_request.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-adapters/tests/resident_fake.py +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/Cargo.toml +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/README.md +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/benches/THRESHOLDS.toml +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/benches/compression_bench.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/allocation.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/budget.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/codec.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/errors.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/filters.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/fit/receipt.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/fit/request.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/fit.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/holdout.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/input.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/lib.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/measurement.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/modes.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/pipeline/mod.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/pipeline/tests.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/profiles.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/report.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/retrieval_store.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/safety.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/stats.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/status.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/token_estimator.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/transforms/diff.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/transforms/json.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/transforms/json_dict.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/transforms/json_fold.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/transforms/json_prune.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/transforms/log_fold.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/transforms/logs.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/transforms/mod.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/transforms/redaction.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/src/transforms/schema.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/tests/fit.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/tests/fit_boundary.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/tests/fit_resource_bounds.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/tests/fit_selection.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/tests/fit_without_assets.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/tests/golden.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/tests/integration.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-core/tests/property_tests.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-py/LICENSE +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-py/src/fit.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/crates/tokenfold-py/src/lib.rs +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/python/tokenfold/__init__.py +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/python/tokenfold/_native.pyi +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/python/tokenfold/accounting.py +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/python/tokenfold/client.py +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/python/tokenfold/errors.py +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/python/tokenfold/lowlevel.py +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/python/tokenfold/lowlevel.pyi +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/python/tokenfold/py.typed +0 -0
- {tokenfold-0.6.0 → tokenfold-0.6.2}/python/tokenfold/types.py +0 -0
|
@@ -136,6 +136,15 @@ dependencies = [
|
|
|
136
136
|
"generic-array",
|
|
137
137
|
]
|
|
138
138
|
|
|
139
|
+
[[package]]
|
|
140
|
+
name = "block-buffer"
|
|
141
|
+
version = "0.12.1"
|
|
142
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
143
|
+
checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa"
|
|
144
|
+
dependencies = [
|
|
145
|
+
"hybrid-array",
|
|
146
|
+
]
|
|
147
|
+
|
|
139
148
|
[[package]]
|
|
140
149
|
name = "block2"
|
|
141
150
|
version = "0.6.2"
|
|
@@ -238,9 +247,9 @@ checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
|
|
|
238
247
|
|
|
239
248
|
[[package]]
|
|
240
249
|
name = "const-oid"
|
|
241
|
-
version = "0.
|
|
250
|
+
version = "0.10.3"
|
|
242
251
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
243
|
-
checksum = "
|
|
252
|
+
checksum = "be95d4a884358a21a199689323c29e9256b4a1b315e22f183d155422041d3a9a"
|
|
244
253
|
|
|
245
254
|
[[package]]
|
|
246
255
|
name = "convert_case"
|
|
@@ -260,6 +269,15 @@ dependencies = [
|
|
|
260
269
|
"libc",
|
|
261
270
|
]
|
|
262
271
|
|
|
272
|
+
[[package]]
|
|
273
|
+
name = "cpufeatures"
|
|
274
|
+
version = "0.3.1"
|
|
275
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
276
|
+
checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566"
|
|
277
|
+
dependencies = [
|
|
278
|
+
"libc",
|
|
279
|
+
]
|
|
280
|
+
|
|
263
281
|
[[package]]
|
|
264
282
|
name = "crypto-common"
|
|
265
283
|
version = "0.1.7"
|
|
@@ -270,6 +288,15 @@ dependencies = [
|
|
|
270
288
|
"typenum",
|
|
271
289
|
]
|
|
272
290
|
|
|
291
|
+
[[package]]
|
|
292
|
+
name = "crypto-common"
|
|
293
|
+
version = "0.2.2"
|
|
294
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
295
|
+
checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453"
|
|
296
|
+
dependencies = [
|
|
297
|
+
"hybrid-array",
|
|
298
|
+
]
|
|
299
|
+
|
|
273
300
|
[[package]]
|
|
274
301
|
name = "ctor"
|
|
275
302
|
version = "1.0.13"
|
|
@@ -289,14 +316,14 @@ dependencies = [
|
|
|
289
316
|
|
|
290
317
|
[[package]]
|
|
291
318
|
name = "curve25519-dalek"
|
|
292
|
-
version = "
|
|
319
|
+
version = "5.1.0"
|
|
293
320
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
294
|
-
checksum = "
|
|
321
|
+
checksum = "94c1aa5a9b7626ed65ac0cf5ea9d4f1547af89017fbac20bd4de40022fff516f"
|
|
295
322
|
dependencies = [
|
|
296
323
|
"cfg-if",
|
|
297
|
-
"cpufeatures",
|
|
324
|
+
"cpufeatures 0.3.1",
|
|
298
325
|
"curve25519-dalek-derive",
|
|
299
|
-
"digest",
|
|
326
|
+
"digest 0.11.3",
|
|
300
327
|
"fiat-crypto",
|
|
301
328
|
"rustc_version",
|
|
302
329
|
"subtle",
|
|
@@ -316,9 +343,9 @@ dependencies = [
|
|
|
316
343
|
|
|
317
344
|
[[package]]
|
|
318
345
|
name = "der"
|
|
319
|
-
version = "0.
|
|
346
|
+
version = "0.8.3"
|
|
320
347
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
321
|
-
checksum = "
|
|
348
|
+
checksum = "6a996a108feb8b427a6e12fcf6af4aa83409b79d72c15337d7741368131ee004"
|
|
322
349
|
dependencies = [
|
|
323
350
|
"const-oid",
|
|
324
351
|
"zeroize",
|
|
@@ -330,8 +357,18 @@ version = "0.10.7"
|
|
|
330
357
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
331
358
|
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
|
|
332
359
|
dependencies = [
|
|
333
|
-
"block-buffer",
|
|
334
|
-
"crypto-common",
|
|
360
|
+
"block-buffer 0.10.4",
|
|
361
|
+
"crypto-common 0.1.7",
|
|
362
|
+
]
|
|
363
|
+
|
|
364
|
+
[[package]]
|
|
365
|
+
name = "digest"
|
|
366
|
+
version = "0.11.3"
|
|
367
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
368
|
+
checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2"
|
|
369
|
+
dependencies = [
|
|
370
|
+
"block-buffer 0.12.1",
|
|
371
|
+
"crypto-common 0.2.2",
|
|
335
372
|
]
|
|
336
373
|
|
|
337
374
|
[[package]]
|
|
@@ -348,9 +385,9 @@ dependencies = [
|
|
|
348
385
|
|
|
349
386
|
[[package]]
|
|
350
387
|
name = "ed25519"
|
|
351
|
-
version = "
|
|
388
|
+
version = "3.0.0"
|
|
352
389
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
353
|
-
checksum = "
|
|
390
|
+
checksum = "29fcf32e6c73d1079f83ab4d782de2d81620346a5f38c6237a86a22f8368980a"
|
|
354
391
|
dependencies = [
|
|
355
392
|
"pkcs8",
|
|
356
393
|
"signature",
|
|
@@ -358,14 +395,15 @@ dependencies = [
|
|
|
358
395
|
|
|
359
396
|
[[package]]
|
|
360
397
|
name = "ed25519-dalek"
|
|
361
|
-
version = "
|
|
398
|
+
version = "3.0.0"
|
|
362
399
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
363
|
-
checksum = "
|
|
400
|
+
checksum = "6ebaa1a2bf1290ab3bfe5a7b771d050ebffab2711c19a81691c683a5144a25de"
|
|
364
401
|
dependencies = [
|
|
365
402
|
"curve25519-dalek",
|
|
366
403
|
"ed25519",
|
|
367
404
|
"serde",
|
|
368
|
-
"sha2",
|
|
405
|
+
"sha2 0.11.3",
|
|
406
|
+
"signature",
|
|
369
407
|
"subtle",
|
|
370
408
|
"zeroize",
|
|
371
409
|
]
|
|
@@ -383,7 +421,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
383
421
|
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
|
|
384
422
|
dependencies = [
|
|
385
423
|
"libc",
|
|
386
|
-
"windows-sys 0.
|
|
424
|
+
"windows-sys 0.52.0",
|
|
387
425
|
]
|
|
388
426
|
|
|
389
427
|
[[package]]
|
|
@@ -405,9 +443,9 @@ checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6"
|
|
|
405
443
|
|
|
406
444
|
[[package]]
|
|
407
445
|
name = "fiat-crypto"
|
|
408
|
-
version = "0.
|
|
446
|
+
version = "0.3.0"
|
|
409
447
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
410
|
-
checksum = "
|
|
448
|
+
checksum = "64cd1e32ddd350061ae6edb1b082d7c54915b5c672c389143b9a63403a109f24"
|
|
411
449
|
|
|
412
450
|
[[package]]
|
|
413
451
|
name = "find-msvc-tools"
|
|
@@ -587,6 +625,15 @@ version = "1.0.3"
|
|
|
587
625
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
588
626
|
checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
|
|
589
627
|
|
|
628
|
+
[[package]]
|
|
629
|
+
name = "hybrid-array"
|
|
630
|
+
version = "0.4.15"
|
|
631
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
632
|
+
checksum = "27f864f10dfb56725ce5ce5472bc52252c8f93a4ab86327122cebf62c5f59a17"
|
|
633
|
+
dependencies = [
|
|
634
|
+
"typenum",
|
|
635
|
+
]
|
|
636
|
+
|
|
590
637
|
[[package]]
|
|
591
638
|
name = "indexmap"
|
|
592
639
|
version = "2.14.0"
|
|
@@ -775,9 +822,9 @@ checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
|
|
|
775
822
|
|
|
776
823
|
[[package]]
|
|
777
824
|
name = "pkcs8"
|
|
778
|
-
version = "0.
|
|
825
|
+
version = "0.11.0"
|
|
779
826
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
780
|
-
checksum = "
|
|
827
|
+
checksum = "451913da69c775a56034ea8d9003d27ee8948e12443eae7c038ba100a4f21cb7"
|
|
781
828
|
dependencies = [
|
|
782
829
|
"der",
|
|
783
830
|
"spki",
|
|
@@ -917,7 +964,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
917
964
|
checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41"
|
|
918
965
|
dependencies = [
|
|
919
966
|
"rand_chacha",
|
|
920
|
-
"rand_core
|
|
967
|
+
"rand_core",
|
|
921
968
|
]
|
|
922
969
|
|
|
923
970
|
[[package]]
|
|
@@ -927,16 +974,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
927
974
|
checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"
|
|
928
975
|
dependencies = [
|
|
929
976
|
"ppv-lite86",
|
|
930
|
-
"rand_core
|
|
931
|
-
]
|
|
932
|
-
|
|
933
|
-
[[package]]
|
|
934
|
-
name = "rand_core"
|
|
935
|
-
version = "0.6.4"
|
|
936
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
937
|
-
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
|
|
938
|
-
dependencies = [
|
|
939
|
-
"getrandom 0.2.17",
|
|
977
|
+
"rand_core",
|
|
940
978
|
]
|
|
941
979
|
|
|
942
980
|
[[package]]
|
|
@@ -954,7 +992,7 @@ version = "0.4.0"
|
|
|
954
992
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
955
993
|
checksum = "513962919efc330f829edb2535844d1b912b0fbe2ca165d613e4e8788bb05a5a"
|
|
956
994
|
dependencies = [
|
|
957
|
-
"rand_core
|
|
995
|
+
"rand_core",
|
|
958
996
|
]
|
|
959
997
|
|
|
960
998
|
[[package]]
|
|
@@ -1023,15 +1061,15 @@ dependencies = [
|
|
|
1023
1061
|
|
|
1024
1062
|
[[package]]
|
|
1025
1063
|
name = "rustix"
|
|
1026
|
-
version = "1.1.
|
|
1064
|
+
version = "1.1.6"
|
|
1027
1065
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1028
|
-
checksum = "
|
|
1066
|
+
checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa"
|
|
1029
1067
|
dependencies = [
|
|
1030
1068
|
"bitflags",
|
|
1031
1069
|
"errno",
|
|
1032
1070
|
"libc",
|
|
1033
1071
|
"linux-raw-sys",
|
|
1034
|
-
"windows-sys 0.
|
|
1072
|
+
"windows-sys 0.52.0",
|
|
1035
1073
|
]
|
|
1036
1074
|
|
|
1037
1075
|
[[package]]
|
|
@@ -1147,8 +1185,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
1147
1185
|
checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
|
|
1148
1186
|
dependencies = [
|
|
1149
1187
|
"cfg-if",
|
|
1150
|
-
"cpufeatures",
|
|
1151
|
-
"digest",
|
|
1188
|
+
"cpufeatures 0.2.17",
|
|
1189
|
+
"digest 0.10.7",
|
|
1190
|
+
]
|
|
1191
|
+
|
|
1192
|
+
[[package]]
|
|
1193
|
+
name = "sha2"
|
|
1194
|
+
version = "0.11.3"
|
|
1195
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1196
|
+
checksum = "820083d430c52864bf834423fc988cbcf61685d6f9d22a765a64e3f6cfe3521c"
|
|
1197
|
+
dependencies = [
|
|
1198
|
+
"cfg-if",
|
|
1199
|
+
"cpufeatures 0.3.1",
|
|
1200
|
+
"digest 0.11.3",
|
|
1152
1201
|
]
|
|
1153
1202
|
|
|
1154
1203
|
[[package]]
|
|
@@ -1159,12 +1208,9 @@ checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
|
|
|
1159
1208
|
|
|
1160
1209
|
[[package]]
|
|
1161
1210
|
name = "signature"
|
|
1162
|
-
version = "
|
|
1211
|
+
version = "3.0.0"
|
|
1163
1212
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1164
|
-
checksum = "
|
|
1165
|
-
dependencies = [
|
|
1166
|
-
"rand_core 0.6.4",
|
|
1167
|
-
]
|
|
1213
|
+
checksum = "28d567dcbaf0049cb8ac2608a76cd95ff9e4412e1899d389ee400918ca7537f5"
|
|
1168
1214
|
|
|
1169
1215
|
[[package]]
|
|
1170
1216
|
name = "slab"
|
|
@@ -1174,9 +1220,9 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
|
|
|
1174
1220
|
|
|
1175
1221
|
[[package]]
|
|
1176
1222
|
name = "spki"
|
|
1177
|
-
version = "0.
|
|
1223
|
+
version = "0.8.1"
|
|
1178
1224
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1179
|
-
checksum = "
|
|
1225
|
+
checksum = "7ef958a98b9d5da290cfc78946e9f3e61e1e62a18db0d92cac0b83cc161491a9"
|
|
1180
1226
|
dependencies = [
|
|
1181
1227
|
"base64ct",
|
|
1182
1228
|
"der",
|
|
@@ -1232,7 +1278,7 @@ dependencies = [
|
|
|
1232
1278
|
"getrandom 0.4.3",
|
|
1233
1279
|
"once_cell",
|
|
1234
1280
|
"rustix",
|
|
1235
|
-
"windows-sys 0.
|
|
1281
|
+
"windows-sys 0.52.0",
|
|
1236
1282
|
]
|
|
1237
1283
|
|
|
1238
1284
|
[[package]]
|
|
@@ -1304,7 +1350,7 @@ dependencies = [
|
|
|
1304
1350
|
|
|
1305
1351
|
[[package]]
|
|
1306
1352
|
name = "tokenfold-adapters"
|
|
1307
|
-
version = "0.6.
|
|
1353
|
+
version = "0.6.2"
|
|
1308
1354
|
dependencies = [
|
|
1309
1355
|
"serde",
|
|
1310
1356
|
"serde_json",
|
|
@@ -1313,17 +1359,17 @@ dependencies = [
|
|
|
1313
1359
|
|
|
1314
1360
|
[[package]]
|
|
1315
1361
|
name = "tokenfold-admin"
|
|
1316
|
-
version = "0.6.
|
|
1362
|
+
version = "0.6.2"
|
|
1317
1363
|
dependencies = [
|
|
1318
1364
|
"ed25519-dalek",
|
|
1319
1365
|
"serde",
|
|
1320
1366
|
"serde_json",
|
|
1321
|
-
"sha2",
|
|
1367
|
+
"sha2 0.10.9",
|
|
1322
1368
|
]
|
|
1323
1369
|
|
|
1324
1370
|
[[package]]
|
|
1325
1371
|
name = "tokenfold-cli"
|
|
1326
|
-
version = "0.6.
|
|
1372
|
+
version = "0.6.2"
|
|
1327
1373
|
dependencies = [
|
|
1328
1374
|
"clap",
|
|
1329
1375
|
"serde",
|
|
@@ -1338,13 +1384,13 @@ dependencies = [
|
|
|
1338
1384
|
|
|
1339
1385
|
[[package]]
|
|
1340
1386
|
name = "tokenfold-core"
|
|
1341
|
-
version = "0.6.
|
|
1387
|
+
version = "0.6.2"
|
|
1342
1388
|
dependencies = [
|
|
1343
1389
|
"proptest",
|
|
1344
1390
|
"regex",
|
|
1345
1391
|
"serde",
|
|
1346
1392
|
"serde_json",
|
|
1347
|
-
"sha2",
|
|
1393
|
+
"sha2 0.10.9",
|
|
1348
1394
|
"thiserror 1.0.69",
|
|
1349
1395
|
"tiktoken-rs",
|
|
1350
1396
|
"toml",
|
|
@@ -1353,18 +1399,18 @@ dependencies = [
|
|
|
1353
1399
|
|
|
1354
1400
|
[[package]]
|
|
1355
1401
|
name = "tokenfold-image"
|
|
1356
|
-
version = "0.6.
|
|
1402
|
+
version = "0.6.2"
|
|
1357
1403
|
|
|
1358
1404
|
[[package]]
|
|
1359
1405
|
name = "tokenfold-learn"
|
|
1360
|
-
version = "0.6.
|
|
1406
|
+
version = "0.6.2"
|
|
1361
1407
|
dependencies = [
|
|
1362
1408
|
"tokenfold-core",
|
|
1363
1409
|
]
|
|
1364
1410
|
|
|
1365
1411
|
[[package]]
|
|
1366
1412
|
name = "tokenfold-node"
|
|
1367
|
-
version = "0.6.
|
|
1413
|
+
version = "0.6.2"
|
|
1368
1414
|
dependencies = [
|
|
1369
1415
|
"napi",
|
|
1370
1416
|
"napi-build",
|
|
@@ -1377,14 +1423,14 @@ dependencies = [
|
|
|
1377
1423
|
|
|
1378
1424
|
[[package]]
|
|
1379
1425
|
name = "tokenfold-output"
|
|
1380
|
-
version = "0.6.
|
|
1426
|
+
version = "0.6.2"
|
|
1381
1427
|
dependencies = [
|
|
1382
1428
|
"tokenfold-core",
|
|
1383
1429
|
]
|
|
1384
1430
|
|
|
1385
1431
|
[[package]]
|
|
1386
1432
|
name = "tokenfold-proxy"
|
|
1387
|
-
version = "0.6.
|
|
1433
|
+
version = "0.6.2"
|
|
1388
1434
|
dependencies = [
|
|
1389
1435
|
"clap",
|
|
1390
1436
|
"ctrlc",
|
|
@@ -1398,7 +1444,7 @@ dependencies = [
|
|
|
1398
1444
|
|
|
1399
1445
|
[[package]]
|
|
1400
1446
|
name = "tokenfold-py"
|
|
1401
|
-
version = "0.6.
|
|
1447
|
+
version = "0.6.2"
|
|
1402
1448
|
dependencies = [
|
|
1403
1449
|
"pyo3",
|
|
1404
1450
|
"serde_json",
|
|
@@ -1408,7 +1454,7 @@ dependencies = [
|
|
|
1408
1454
|
|
|
1409
1455
|
[[package]]
|
|
1410
1456
|
name = "tokenfold-rag"
|
|
1411
|
-
version = "0.6.
|
|
1457
|
+
version = "0.6.2"
|
|
1412
1458
|
dependencies = [
|
|
1413
1459
|
"tokenfold-core",
|
|
1414
1460
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tokenfold
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.2
|
|
4
4
|
Classifier: Development Status :: 4 - Beta
|
|
5
5
|
Classifier: Intended Audience :: Developers
|
|
6
6
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
@@ -11,7 +11,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.13
|
|
12
12
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
13
13
|
Classifier: Topic :: Text Processing
|
|
14
|
-
Requires-Dist: tokenfold-select-runtime
|
|
14
|
+
Requires-Dist: tokenfold-select-runtime>=0.6.0,<0.7.0 ; extra == 'select'
|
|
15
15
|
Provides-Extra: select
|
|
16
16
|
License-File: LICENSE
|
|
17
17
|
Summary: Token-compression toolkit for LLM payloads (Python binding over the tokenfold-core Rust crate)
|
|
@@ -65,8 +65,8 @@ dependencies themselves. `warmup()` only loads that configured runtime; import a
|
|
|
65
65
|
already-fitting Core requests never start it. Provisioning the optional runtime and
|
|
66
66
|
acquiring its pinned local model are separate explicit setup actions.
|
|
67
67
|
|
|
68
|
-
Install with `pip install tokenfold==0.6.
|
|
69
|
-
`tokenfold[select]` extra adds only `tokenfold-select-runtime
|
|
68
|
+
Install with `pip install tokenfold==0.6.2`. The
|
|
69
|
+
`tokenfold[select]` extra adds only a compatible `tokenfold-select-runtime` 0.6.x, not ML packages.
|
|
70
70
|
Prebuilt targets: Linux GNU x64/arm64, macOS x64/arm64, Windows x64, gated by installed
|
|
71
71
|
artifact CI before release. See the [migration guide](https://github.com/snchimata/tokenfold/blob/main/docs/sdk-migration.md)
|
|
72
72
|
for provisioning, grouping recipes and queue/cold-start limits. The pinned tokenizer
|
|
@@ -43,8 +43,8 @@ dependencies themselves. `warmup()` only loads that configured runtime; import a
|
|
|
43
43
|
already-fitting Core requests never start it. Provisioning the optional runtime and
|
|
44
44
|
acquiring its pinned local model are separate explicit setup actions.
|
|
45
45
|
|
|
46
|
-
Install with `pip install tokenfold==0.6.
|
|
47
|
-
`tokenfold[select]` extra adds only `tokenfold-select-runtime
|
|
46
|
+
Install with `pip install tokenfold==0.6.2`. The
|
|
47
|
+
`tokenfold[select]` extra adds only a compatible `tokenfold-select-runtime` 0.6.x, not ML packages.
|
|
48
48
|
Prebuilt targets: Linux GNU x64/arm64, macOS x64/arm64, Windows x64, gated by installed
|
|
49
49
|
artifact CI before release. See the [migration guide](https://github.com/snchimata/tokenfold/blob/main/docs/sdk-migration.md)
|
|
50
50
|
for provisioning, grouping recipes and queue/cold-start limits. The pinned tokenizer
|
|
@@ -9,6 +9,6 @@ description = "Explicit, model-free provider observation adapters for Tokenfold.
|
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
|
|
11
11
|
[dependencies]
|
|
12
|
-
tokenfold-core = { version = "0.6.
|
|
12
|
+
tokenfold-core = { version = "0.6.2", path = "../tokenfold-core" }
|
|
13
13
|
serde = { version = "1", features = ["derive"] }
|
|
14
14
|
serde_json = { version = "1", features = ["preserve_order"] }
|
|
@@ -176,7 +176,12 @@ impl SelectRuntimeConfig {
|
|
|
176
176
|
]
|
|
177
177
|
.iter()
|
|
178
178
|
.any(|s| !hash(s))
|
|
179
|
-
|| a.runtime_version
|
|
179
|
+
|| a.runtime_version.is_empty()
|
|
180
|
+
|| a.runtime_version.len() > 128
|
|
181
|
+
|| !a
|
|
182
|
+
.runtime_version
|
|
183
|
+
.bytes()
|
|
184
|
+
.all(|c| c.is_ascii_alphanumeric() || matches!(c, b'.' | b'-' | b'+' | b'_'))
|
|
180
185
|
|| a.approved_by.trim().is_empty()
|
|
181
186
|
|| a.approved_by.len() > 256
|
|
182
187
|
|| !matches!(
|
|
@@ -198,8 +203,8 @@ impl SelectRuntimeConfig {
|
|
|
198
203
|
revision: self.0.revision.clone(),
|
|
199
204
|
manifest_hash: self.0.manifest_sha256.clone(),
|
|
200
205
|
runtime_id: format!(
|
|
201
|
-
"tokenfold-select-runtime/
|
|
202
|
-
self.0.runtime_source_sha256
|
|
206
|
+
"tokenfold-select-runtime/{}:{}",
|
|
207
|
+
self.0.runtime_version, self.0.runtime_source_sha256
|
|
203
208
|
),
|
|
204
209
|
device: self.0.device.clone(),
|
|
205
210
|
precision: self.0.precision.clone(),
|
|
@@ -11,6 +11,44 @@ struct Fixture {
|
|
|
11
11
|
root: PathBuf,
|
|
12
12
|
config: SelectRuntimeConfig,
|
|
13
13
|
}
|
|
14
|
+
|
|
15
|
+
#[test]
|
|
16
|
+
fn compatible_runtime_versions_keep_approval_and_report_actual_version() {
|
|
17
|
+
let fixture = Fixture::new("normal", 3000);
|
|
18
|
+
let mut approval: serde_json::Value =
|
|
19
|
+
serde_json::from_slice(&std::fs::read(fixture.root.join("approval.json")).unwrap())
|
|
20
|
+
.unwrap();
|
|
21
|
+
for version in ["0.6.0", "0.6.1", "0.6.2", "1.0.0"] {
|
|
22
|
+
approval["runtime_version"] = json!(version);
|
|
23
|
+
let config =
|
|
24
|
+
SelectRuntimeConfig::from_json(&serde_json::to_vec(&approval).unwrap()).unwrap();
|
|
25
|
+
assert!(
|
|
26
|
+
config
|
|
27
|
+
.scorer_info()
|
|
28
|
+
.runtime_id
|
|
29
|
+
.starts_with(&format!("tokenfold-select-runtime/{version}:"))
|
|
30
|
+
);
|
|
31
|
+
if matches!(version, "0.6.0" | "0.6.1") {
|
|
32
|
+
let dispatcher = ScorerDispatcher::new(config, QueuePolicy::default()).unwrap();
|
|
33
|
+
let completion = submit(&dispatcher, "normal").wait();
|
|
34
|
+
assert_eq!(completion.outcome.unwrap()[0].score, 1.25);
|
|
35
|
+
assert!(
|
|
36
|
+
completion
|
|
37
|
+
.scorer
|
|
38
|
+
.runtime_id
|
|
39
|
+
.starts_with(&format!("tokenfold-select-runtime/{version}:"))
|
|
40
|
+
);
|
|
41
|
+
dispatcher.close();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
for version in ["", "0.6.1\nforged", &"a".repeat(129)] {
|
|
45
|
+
approval["runtime_version"] = json!(version);
|
|
46
|
+
assert!(SelectRuntimeConfig::from_json(&serde_json::to_vec(&approval).unwrap()).is_err());
|
|
47
|
+
}
|
|
48
|
+
approval["runtime_version"] = json!("0.6.0");
|
|
49
|
+
approval["runtime_source_sha256"] = json!("0".repeat(64));
|
|
50
|
+
assert!(SelectRuntimeConfig::from_json(&serde_json::to_vec(&approval).unwrap()).is_err());
|
|
51
|
+
}
|
|
14
52
|
impl Fixture {
|
|
15
53
|
fn new(mode: &str, startup: u64) -> Self {
|
|
16
54
|
Self::with_inference(mode, startup, 1000)
|
|
@@ -64,7 +102,7 @@ impl Fixture {
|
|
|
64
102
|
let python = PathBuf::from(String::from_utf8(python.stdout).unwrap().trim())
|
|
65
103
|
.canonicalize()
|
|
66
104
|
.unwrap();
|
|
67
|
-
let value = json!({"python_executable":python,"python_sha256":hex_sha256(&std::fs::read(&python).unwrap()),"runtime_source":source,"runtime_source_sha256":hex_sha256(&data),"runtime_version":"0.6.
|
|
105
|
+
let value = json!({"python_executable":python,"python_sha256":hex_sha256(&std::fs::read(&python).unwrap()),"runtime_source":source,"runtime_source_sha256":hex_sha256(&data),"runtime_version":"0.6.1","bundle":root,"manifest_sha256":hex_sha256(&manifest),"revision":revision,"device":"cpu","precision":"fp32","approved_by":"test","scratch_root":root,"startup_timeout_ms":startup,"inference_timeout_ms":inference,"cleanup_timeout_ms":100});
|
|
68
106
|
std::fs::write(
|
|
69
107
|
root.join("approval.json"),
|
|
70
108
|
serde_json::to_vec(&value).unwrap(),
|
|
@@ -17,9 +17,9 @@ name = "tokenfold_py"
|
|
|
17
17
|
crate-type = ["cdylib", "rlib"]
|
|
18
18
|
|
|
19
19
|
[dependencies]
|
|
20
|
-
tokenfold-core = { version = "0.6.
|
|
20
|
+
tokenfold-core = { version = "0.6.2", path = "../tokenfold-core" }
|
|
21
21
|
serde_json = { workspace = true }
|
|
22
|
-
tokenfold-adapters = { version = "0.6.
|
|
22
|
+
tokenfold-adapters = { version = "0.6.2", path = "../tokenfold-adapters" }
|
|
23
23
|
pyo3 = { version = "0.29.0", features = ["abi3-py312"] }
|
|
24
24
|
|
|
25
25
|
[features]
|
|
@@ -43,8 +43,8 @@ dependencies themselves. `warmup()` only loads that configured runtime; import a
|
|
|
43
43
|
already-fitting Core requests never start it. Provisioning the optional runtime and
|
|
44
44
|
acquiring its pinned local model are separate explicit setup actions.
|
|
45
45
|
|
|
46
|
-
Install with `pip install tokenfold==0.6.
|
|
47
|
-
`tokenfold[select]` extra adds only `tokenfold-select-runtime
|
|
46
|
+
Install with `pip install tokenfold==0.6.2`. The
|
|
47
|
+
`tokenfold[select]` extra adds only a compatible `tokenfold-select-runtime` 0.6.x, not ML packages.
|
|
48
48
|
Prebuilt targets: Linux GNU x64/arm64, macOS x64/arm64, Windows x64, gated by installed
|
|
49
49
|
artifact CI before release. See the [migration guide](https://github.com/snchimata/tokenfold/blob/main/docs/sdk-migration.md)
|
|
50
50
|
for provisioning, grouping recipes and queue/cold-start limits. The pinned tokenizer
|
|
@@ -25,7 +25,7 @@ classifiers = [
|
|
|
25
25
|
dynamic = ["version"]
|
|
26
26
|
|
|
27
27
|
[project.optional-dependencies]
|
|
28
|
-
select = ["tokenfold-select-runtime
|
|
28
|
+
select = ["tokenfold-select-runtime>=0.6.0,<0.7.0"]
|
|
29
29
|
|
|
30
30
|
[tool.maturin]
|
|
31
31
|
# The compiled Cargo artifact is named "tokenfold_py" (see ../Cargo.toml's [lib] comment,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|