zeusdb-vector-database 0.8.0__tar.gz → 0.10.0__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 (83) hide show
  1. {zeusdb_vector_database-0.8.0/vdb-core → zeusdb_vector_database-0.10.0}/Cargo.lock +84 -56
  2. zeusdb_vector_database-0.10.0/Cargo.toml +137 -0
  3. {zeusdb_vector_database-0.8.0 → zeusdb_vector_database-0.10.0}/PKG-INFO +356 -10
  4. {zeusdb_vector_database-0.8.0 → zeusdb_vector_database-0.10.0}/README.md +355 -9
  5. zeusdb_vector_database-0.10.0/bindings/python/Cargo.toml +69 -0
  6. {zeusdb_vector_database-0.8.0/vdb-core → zeusdb_vector_database-0.10.0/bindings/python}/src/conversion.rs +33 -1
  7. zeusdb_vector_database-0.10.0/bindings/python/src/hnsw_index/construct.rs +309 -0
  8. {zeusdb_vector_database-0.8.0/vdb-core → zeusdb_vector_database-0.10.0/bindings/python}/src/hnsw_index/input.rs +308 -145
  9. zeusdb_vector_database-0.10.0/bindings/python/src/hnsw_index/mod.rs +1544 -0
  10. zeusdb_vector_database-0.10.0/bindings/python/src/hnsw_index/query.rs +443 -0
  11. zeusdb_vector_database-0.10.0/bindings/python/src/lib.rs +171 -0
  12. {zeusdb_vector_database-0.8.0/vdb-core → zeusdb_vector_database-0.10.0/bindings/python}/src/logging.rs +6 -6
  13. zeusdb_vector_database-0.10.0/bindings/python/src/tokenizer.rs +124 -0
  14. zeusdb_vector_database-0.10.0/crates/core/Cargo.toml +34 -0
  15. zeusdb_vector_database-0.10.0/crates/core/src/admit.rs +270 -0
  16. {zeusdb_vector_database-0.8.0/vdb-core → zeusdb_vector_database-0.10.0/crates/core}/src/checksum.rs +1 -1
  17. {zeusdb_vector_database-0.8.0/vdb-core → zeusdb_vector_database-0.10.0/crates/core}/src/columns.rs +86 -45
  18. {zeusdb_vector_database-0.8.0/vdb-core → zeusdb_vector_database-0.10.0/crates/core}/src/distance.rs +38 -26
  19. zeusdb_vector_database-0.10.0/crates/core/src/error.rs +1390 -0
  20. {zeusdb_vector_database-0.8.0/vdb-core → zeusdb_vector_database-0.10.0/crates/core}/src/filter.rs +40 -48
  21. zeusdb_vector_database-0.10.0/crates/core/src/frame.rs +656 -0
  22. zeusdb_vector_database-0.10.0/crates/core/src/fusion.rs +306 -0
  23. {zeusdb_vector_database-0.8.0/vdb-core → zeusdb_vector_database-0.10.0/crates/core}/src/graph/dump.rs +20 -7
  24. zeusdb_vector_database-0.8.0/vdb-core/src/hnsw_index/graph_guard_tests.rs → zeusdb_vector_database-0.10.0/crates/core/src/graph/guard_tests.rs +8 -9
  25. {zeusdb_vector_database-0.8.0/vdb-core → zeusdb_vector_database-0.10.0/crates/core}/src/graph/mod.rs +253 -36
  26. {zeusdb_vector_database-0.8.0/vdb-core → zeusdb_vector_database-0.10.0/crates/core}/src/graph/mutable/insert.rs +2 -2
  27. {zeusdb_vector_database-0.8.0/vdb-core → zeusdb_vector_database-0.10.0/crates/core}/src/graph/mutable/mod.rs +1 -1
  28. {zeusdb_vector_database-0.8.0/vdb-core → zeusdb_vector_database-0.10.0/crates/core}/src/graph/store.rs +1 -1
  29. {zeusdb_vector_database-0.8.0/vdb-core → zeusdb_vector_database-0.10.0/crates/core}/src/graph/structure.rs +2 -2
  30. {zeusdb_vector_database-0.8.0/vdb-core → zeusdb_vector_database-0.10.0/crates/core}/src/graph/test_graph.rs +1 -1
  31. zeusdb_vector_database-0.10.0/crates/core/src/lib.rs +80 -0
  32. {zeusdb_vector_database-0.8.0/vdb-core → zeusdb_vector_database-0.10.0/crates/core}/src/pq.rs +7 -7
  33. {zeusdb_vector_database-0.8.0/vdb-core → zeusdb_vector_database-0.10.0/crates/core}/src/rng.rs +14 -11
  34. zeusdb_vector_database-0.10.0/crates/core/src/space.rs +811 -0
  35. {zeusdb_vector_database-0.8.0/vdb-core → zeusdb_vector_database-0.10.0/crates/core}/src/test_vectors.rs +2 -2
  36. zeusdb_vector_database-0.10.0/crates/hnsw/Cargo.toml +39 -0
  37. {zeusdb_vector_database-0.8.0/vdb-core/src/hnsw_index → zeusdb_vector_database-0.10.0/crates/hnsw/src/collection}/construct.rs +430 -417
  38. zeusdb_vector_database-0.10.0/crates/hnsw/src/collection/dense.rs +851 -0
  39. zeusdb_vector_database-0.10.0/crates/hnsw/src/collection/input.rs +102 -0
  40. {zeusdb_vector_database-0.8.0/vdb-core/src/hnsw_index → zeusdb_vector_database-0.10.0/crates/hnsw/src/collection}/insert.rs +756 -235
  41. zeusdb_vector_database-0.10.0/crates/hnsw/src/collection/mod.rs +1394 -0
  42. {zeusdb_vector_database-0.8.0/vdb-core/src/hnsw_index → zeusdb_vector_database-0.10.0/crates/hnsw/src/collection}/persist.rs +264 -230
  43. zeusdb_vector_database-0.10.0/crates/hnsw/src/collection/persist_tests.rs +678 -0
  44. zeusdb_vector_database-0.10.0/crates/hnsw/src/collection/query.rs +546 -0
  45. zeusdb_vector_database-0.10.0/crates/hnsw/src/collection/query_tests.rs +462 -0
  46. zeusdb_vector_database-0.10.0/crates/hnsw/src/collection/search.rs +1173 -0
  47. zeusdb_vector_database-0.10.0/crates/hnsw/src/collection/spaces_tests.rs +672 -0
  48. {zeusdb_vector_database-0.8.0/vdb-core/src/hnsw_index → zeusdb_vector_database-0.10.0/crates/hnsw/src/collection}/stats.rs +166 -94
  49. {zeusdb_vector_database-0.8.0/vdb-core/src/hnsw_index → zeusdb_vector_database-0.10.0/crates/hnsw/src/collection}/training.rs +115 -89
  50. zeusdb_vector_database-0.10.0/crates/hnsw/src/lib.rs +63 -0
  51. zeusdb_vector_database-0.10.0/crates/hnsw/src/locks.rs +679 -0
  52. {zeusdb_vector_database-0.8.0/vdb-core → zeusdb_vector_database-0.10.0/crates/hnsw}/src/persistence.rs +814 -624
  53. {zeusdb_vector_database-0.8.0/vdb-core → zeusdb_vector_database-0.10.0/crates/hnsw}/src/rerank.rs +44 -48
  54. zeusdb_vector_database-0.10.0/crates/sparse/Cargo.toml +25 -0
  55. zeusdb_vector_database-0.10.0/crates/sparse/src/calibrate.rs +377 -0
  56. zeusdb_vector_database-0.10.0/crates/sparse/src/corpus.rs +180 -0
  57. zeusdb_vector_database-0.10.0/crates/sparse/src/index.rs +987 -0
  58. zeusdb_vector_database-0.10.0/crates/sparse/src/lib.rs +91 -0
  59. zeusdb_vector_database-0.10.0/crates/sparse/src/persist.rs +536 -0
  60. zeusdb_vector_database-0.10.0/crates/sparse/src/search.rs +1157 -0
  61. zeusdb_vector_database-0.10.0/crates/sparse/src/verify.rs +722 -0
  62. zeusdb_vector_database-0.10.0/crates/text/Cargo.toml +21 -0
  63. zeusdb_vector_database-0.10.0/crates/text/src/dictionary.rs +305 -0
  64. zeusdb_vector_database-0.10.0/crates/text/src/lib.rs +46 -0
  65. zeusdb_vector_database-0.10.0/crates/text/src/tokenizer.rs +185 -0
  66. zeusdb_vector_database-0.10.0/crates/text/src/vectorize.rs +187 -0
  67. {zeusdb_vector_database-0.8.0 → zeusdb_vector_database-0.10.0}/pyproject.toml +13 -8
  68. {zeusdb_vector_database-0.8.0 → zeusdb_vector_database-0.10.0}/src/zeusdb_vector_database/__init__.py +3 -3
  69. {zeusdb_vector_database-0.8.0 → zeusdb_vector_database-0.10.0}/src/zeusdb_vector_database/logging_config.py +2 -2
  70. {zeusdb_vector_database-0.8.0 → zeusdb_vector_database-0.10.0}/src/zeusdb_vector_database/vector_database.py +66 -16
  71. zeusdb_vector_database-0.8.0/vdb-core/Cargo.toml +0 -101
  72. zeusdb_vector_database-0.8.0/vdb-core/clippy.toml +0 -21
  73. zeusdb_vector_database-0.8.0/vdb-core/deny.toml +0 -71
  74. zeusdb_vector_database-0.8.0/vdb-core/src/hnsw_index/locks.rs +0 -491
  75. zeusdb_vector_database-0.8.0/vdb-core/src/hnsw_index/mod.rs +0 -2115
  76. zeusdb_vector_database-0.8.0/vdb-core/src/hnsw_index/search.rs +0 -1109
  77. zeusdb_vector_database-0.8.0/vdb-core/src/lib.rs +0 -71
  78. {zeusdb_vector_database-0.8.0 → zeusdb_vector_database-0.10.0}/LICENSE +0 -0
  79. {zeusdb_vector_database-0.8.0 → zeusdb_vector_database-0.10.0}/NOTICE +0 -0
  80. {zeusdb_vector_database-0.8.0/vdb-core → zeusdb_vector_database-0.10.0/crates/core}/src/graph/fuzz.rs +0 -0
  81. {zeusdb_vector_database-0.8.0/vdb-core → zeusdb_vector_database-0.10.0/crates/core}/src/graph/levels.rs +0 -0
  82. {zeusdb_vector_database-0.8.0/vdb-core → zeusdb_vector_database-0.10.0/crates/core}/src/graph/traverse.rs +0 -0
  83. {zeusdb_vector_database-0.8.0 → zeusdb_vector_database-0.10.0}/src/zeusdb_vector_database/py.typed +0 -0
@@ -80,6 +80,17 @@ version = "1.0.4"
80
80
  source = "registry+https://github.com/rust-lang/crates.io-index"
81
81
  checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
82
82
 
83
+ [[package]]
84
+ name = "chacha20"
85
+ version = "0.10.2"
86
+ source = "registry+https://github.com/rust-lang/crates.io-index"
87
+ checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06"
88
+ dependencies = [
89
+ "cfg-if",
90
+ "cpufeatures",
91
+ "rand_core",
92
+ ]
93
+
83
94
  [[package]]
84
95
  name = "chrono"
85
96
  version = "0.4.45"
@@ -100,6 +111,15 @@ version = "0.8.7"
100
111
  source = "registry+https://github.com/rust-lang/crates.io-index"
101
112
  checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
102
113
 
114
+ [[package]]
115
+ name = "cpufeatures"
116
+ version = "0.3.0"
117
+ source = "registry+https://github.com/rust-lang/crates.io-index"
118
+ checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201"
119
+ dependencies = [
120
+ "libc",
121
+ ]
122
+
103
123
  [[package]]
104
124
  name = "crossbeam-channel"
105
125
  version = "0.5.16"
@@ -192,18 +212,6 @@ dependencies = [
192
212
  "slab",
193
213
  ]
194
214
 
195
- [[package]]
196
- name = "getrandom"
197
- version = "0.3.4"
198
- source = "registry+https://github.com/rust-lang/crates.io-index"
199
- checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
200
- dependencies = [
201
- "cfg-if",
202
- "libc",
203
- "r-efi 5.3.0",
204
- "wasip2",
205
- ]
206
-
207
215
  [[package]]
208
216
  name = "getrandom"
209
217
  version = "0.4.3"
@@ -212,7 +220,8 @@ checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
212
220
  dependencies = [
213
221
  "cfg-if",
214
222
  "libc",
215
- "r-efi 6.0.0",
223
+ "r-efi",
224
+ "rand_core",
216
225
  ]
217
226
 
218
227
  [[package]]
@@ -501,12 +510,6 @@ dependencies = [
501
510
  "proc-macro2",
502
511
  ]
503
512
 
504
- [[package]]
505
- name = "r-efi"
506
- version = "5.3.0"
507
- source = "registry+https://github.com/rust-lang/crates.io-index"
508
- checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
509
-
510
513
  [[package]]
511
514
  name = "r-efi"
512
515
  version = "6.0.0"
@@ -515,19 +518,20 @@ checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
515
518
 
516
519
  [[package]]
517
520
  name = "rand"
518
- version = "0.9.5"
521
+ version = "0.10.2"
519
522
  source = "registry+https://github.com/rust-lang/crates.io-index"
520
- checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41"
523
+ checksum = "c7f5fa3a058cd35567ef9bfa5e75732bee0f9e4c55fa90477bef2dfcdbc4be80"
521
524
  dependencies = [
522
- "rand_chacha",
525
+ "chacha20",
526
+ "getrandom",
523
527
  "rand_core",
524
528
  ]
525
529
 
526
530
  [[package]]
527
531
  name = "rand_chacha"
528
- version = "0.9.0"
532
+ version = "0.10.0"
529
533
  source = "registry+https://github.com/rust-lang/crates.io-index"
530
- checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"
534
+ checksum = "3e6af7f3e25ded52c41df4e0b1af2d047e45896c2f3281792ed68a1c243daedb"
531
535
  dependencies = [
532
536
  "ppv-lite86",
533
537
  "rand_core",
@@ -535,12 +539,9 @@ dependencies = [
535
539
 
536
540
  [[package]]
537
541
  name = "rand_core"
538
- version = "0.9.5"
542
+ version = "0.10.1"
539
543
  source = "registry+https://github.com/rust-lang/crates.io-index"
540
- checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c"
541
- dependencies = [
542
- "getrandom 0.3.4",
543
- ]
544
+ checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"
544
545
 
545
546
  [[package]]
546
547
  name = "rawpointer"
@@ -612,9 +613,9 @@ checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
612
613
 
613
614
  [[package]]
614
615
  name = "safe_arch"
615
- version = "1.1.0"
616
+ version = "1.2.0"
616
617
  source = "registry+https://github.com/rust-lang/crates.io-index"
617
- checksum = "3a52ec151f024d703f9fd65abb7cbe81e7cdb39f18917a3a37e3014470dc7c59"
618
+ checksum = "42c6efa15875e6ecb39ca61fb0b0c1a40b84fac5a5ffe71eef7d1000c8eb3f5f"
618
619
  dependencies = [
619
620
  "bytemuck",
620
621
  ]
@@ -724,7 +725,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
724
725
  checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
725
726
  dependencies = [
726
727
  "fastrand",
727
- "getrandom 0.4.3",
728
+ "getrandom",
728
729
  "once_cell",
729
730
  "rustix",
730
731
  "windows-sys",
@@ -888,15 +889,6 @@ version = "0.0.18"
888
889
  source = "registry+https://github.com/rust-lang/crates.io-index"
889
890
  checksum = "051eb1abcf10076295e815102942cc58f9d5e3b4560e46e53c21e8ff6f3af7b1"
890
891
 
891
- [[package]]
892
- name = "wasip2"
893
- version = "1.0.4+wasi-0.2.12"
894
- source = "registry+https://github.com/rust-lang/crates.io-index"
895
- checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487"
896
- dependencies = [
897
- "wit-bindgen",
898
- ]
899
-
900
892
  [[package]]
901
893
  name = "wasm-bindgen"
902
894
  version = "0.2.127"
@@ -944,9 +936,9 @@ dependencies = [
944
936
 
945
937
  [[package]]
946
938
  name = "wide"
947
- version = "1.6.1"
939
+ version = "1.7.0"
948
940
  source = "registry+https://github.com/rust-lang/crates.io-index"
949
- checksum = "de2aaf408e58689c2096682331b1f42bb2d9f2ed6b11560407d023cd0a6c634e"
941
+ checksum = "8cf05ca94c9fba0c51316899caa1d1e74a064fc310a5efa7375e614343d415be"
950
942
  dependencies = [
951
943
  "bytemuck",
952
944
  "safe_arch",
@@ -1020,12 +1012,6 @@ dependencies = [
1020
1012
  "windows-link",
1021
1013
  ]
1022
1014
 
1023
- [[package]]
1024
- name = "wit-bindgen"
1025
- version = "0.57.1"
1026
- source = "registry+https://github.com/rust-lang/crates.io-index"
1027
- checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
1028
-
1029
1015
  [[package]]
1030
1016
  name = "zerocopy"
1031
1017
  version = "0.8.56"
@@ -1047,23 +1033,65 @@ dependencies = [
1047
1033
  ]
1048
1034
 
1049
1035
  [[package]]
1050
- name = "zeusdb-vector-database"
1051
- version = "0.8.0"
1036
+ name = "zeusdb-vector-core"
1037
+ version = "0.10.0"
1038
+ dependencies = [
1039
+ "rand",
1040
+ "rand_chacha",
1041
+ "rayon",
1042
+ "serde_json",
1043
+ "tempfile",
1044
+ "tracing",
1045
+ "wide",
1046
+ ]
1047
+
1048
+ [[package]]
1049
+ name = "zeusdb-vector-hnsw"
1050
+ version = "0.10.0"
1052
1051
  dependencies = [
1053
1052
  "bincode",
1054
1053
  "chrono",
1055
- "numpy",
1056
- "pyo3",
1057
1054
  "rand",
1058
- "rand_chacha",
1059
1055
  "rayon",
1060
1056
  "serde",
1061
1057
  "serde_json",
1062
- "tempfile",
1058
+ "tracing",
1059
+ "zeusdb-vector-core",
1060
+ "zeusdb-vector-sparse",
1061
+ "zeusdb-vector-text",
1062
+ ]
1063
+
1064
+ [[package]]
1065
+ name = "zeusdb-vector-python"
1066
+ version = "0.10.0"
1067
+ dependencies = [
1068
+ "chrono",
1069
+ "numpy",
1070
+ "pyo3",
1071
+ "serde_json",
1063
1072
  "tracing",
1064
1073
  "tracing-appender",
1065
1074
  "tracing-subscriber",
1066
- "wide",
1075
+ "zeusdb-vector-core",
1076
+ "zeusdb-vector-hnsw",
1077
+ ]
1078
+
1079
+ [[package]]
1080
+ name = "zeusdb-vector-sparse"
1081
+ version = "0.10.0"
1082
+ dependencies = [
1083
+ "serde",
1084
+ "tempfile",
1085
+ "tracing",
1086
+ "zeusdb-vector-core",
1087
+ ]
1088
+
1089
+ [[package]]
1090
+ name = "zeusdb-vector-text"
1091
+ version = "0.10.0"
1092
+ dependencies = [
1093
+ "serde",
1094
+ "zeusdb-vector-core",
1067
1095
  ]
1068
1096
 
1069
1097
  [[package]]
@@ -0,0 +1,137 @@
1
+ # The workspace. Every crate in the tree is a member, the binding under
2
+ # bindings/ and the engine crates under crates/, and this is the manifest
3
+ # every cargo command reads from the repository root.
4
+ #
5
+ # Three things live here and nowhere else.
6
+ #
7
+ # [workspace.package] holds the version, the edition and the licence, and a
8
+ # member takes each one with `<key>.workspace = true`. The version is the one
9
+ # pyproject.toml and src/zeusdb_vector_database/__init__.py declare, and the
10
+ # release gate in .github/workflows/publish-pypi.yml reads it from this table.
11
+ #
12
+ # [workspace.dependencies] holds every dependency once, the external crates at
13
+ # one version and the workspace's own crates by path. A member names a
14
+ # dependency as `{ workspace = true }`, so a version or a path moves in one
15
+ # place and two members cannot resolve the same crate twice.
16
+ #
17
+ # [profile.*] is read from the workspace root only. A profile table in a
18
+ # member manifest is ignored, so every profile is declared here.
19
+
20
+ [workspace]
21
+ # Explicit, because a virtual manifest does not take the resolver from an
22
+ # edition the way a package manifest does.
23
+ resolver = "2"
24
+ # Every directory under crates/ and bindings/ that holds a manifest is a
25
+ # member. cargo treats a glob that matches nothing as a literal path and
26
+ # fails on it, so each of the two directories has to hold at least one crate.
27
+ members = ["crates/*", "bindings/*"]
28
+
29
+ [workspace.package]
30
+ version = "0.10.0"
31
+ edition = "2021"
32
+ # The same licence pyproject.toml declares, LICENSE holds and NOTICE restates.
33
+ # cargo-deny reads this field. The wheel's metadata is unaffected, because
34
+ # maturin takes it from pyproject.toml.
35
+ license = "Apache-2.0"
36
+
37
+ [workspace.dependencies]
38
+ # The workspace's own crates, by path. Each takes the workspace's version, so
39
+ # a member names one with `{ workspace = true }` and no version at all, and
40
+ # cargo-deny's allow-wildcard-paths admits the versionless edge.
41
+ zeusdb-vector-core = { path = "crates/core" }
42
+ zeusdb-vector-hnsw = { path = "crates/hnsw" }
43
+ zeusdb-vector-sparse = { path = "crates/sparse" }
44
+ zeusdb-vector-text = { path = "crates/text" }
45
+ # abi3-py310 builds against CPython's stable ABI, so one wheel per platform
46
+ # loads on every CPython from 3.10 up, including versions that do not exist
47
+ # yet. The feature lives here rather than in pyproject's [tool.maturin]
48
+ # features, so that cargo build, cargo clippy and cargo test all compile the
49
+ # same configuration the wheel ships. The floor matches requires-python.
50
+ #
51
+ # The cost is PyPy and the free-threaded builds. Neither is expressible in the
52
+ # stable ABI, and the abi3t feature that PEP 803 adds for free-threading is
53
+ # 3.15 only, so it buys nothing at a 3.10 floor.
54
+ #
55
+ # `extension-module` is not here. It is the binding crate's own feature, on by
56
+ # default, so `cargo build`, `cargo clippy` and the wheel are unchanged and
57
+ # only `cargo test --no-default-features` differs. See bindings/python/Cargo.toml.
58
+ pyo3 = { version = "0.29.0", features = ["abi3-py310"] }
59
+ numpy = "0.29.0"
60
+ serde_json = "1.0"
61
+ serde = { version = "1.0", features = ["derive"] }
62
+ rayon = "1.10"
63
+ rand = "0.10"
64
+ # The generator itself, named rather than taken from `rand::rngs::StdRng`,
65
+ # which `rand` documents as non-portable and free to change algorithm in any
66
+ # release. Every seeded draw in the engine runs on it, being the level stream a
67
+ # graph is built from and both of the product quantizer's. See
68
+ # crates/core/src/rng.rs.
69
+ #
70
+ # `rand` 0.10 builds `StdRng` on the `chacha20` crate rather than on
71
+ # `rand_chacha`, so this is a dependency of its own. The two crates
72
+ # implement the same generator and produce the same stream word for word,
73
+ # which crates/core/src/rng.rs holds by test.
74
+ rand_chacha = "0.10"
75
+ # The distance kernels' vector type. See the "How they are compiled" section of
76
+ # crates/core/src/distance.rs. It pulls in safe_arch and bytemuck, and it
77
+ # is a build-time abstraction over the target's own vector registers with no
78
+ # run time component, so it adds nothing to the wheel beyond the code it
79
+ # generates.
80
+ wide = "1"
81
+ bincode = "2.0.1"
82
+ chrono = { version = "0.4.41", features = ["serde"] } # <-- For timestamps
83
+ # Modern structured logging
84
+ tracing = "0.1"
85
+ tracing-appender = "0.2"
86
+ tracing-subscriber = { version = "0.3", default-features = false, features = ["fmt", "env-filter", "json", "time", "ansi", "registry"] }
87
+ # Terminal detection is `std::io::IsTerminal`, stable since Rust 1.70. The
88
+ # `atty` crate this replaced was unmaintained and carried RUSTSEC-2021-0145.
89
+ tempfile = "3"
90
+
91
+ # The profile the wheel is built with.
92
+ #
93
+ # Fat LTO with one codegen unit. Thin LTO rebuilds an edit in a fraction of
94
+ # the time and produces the same results, and whether it changes search
95
+ # latency is not decided, because on a developer machine two fat builds of one
96
+ # source differ from each other by as much as a fat build differs from a thin
97
+ # one. The wheel keeps fat so that two wheels built from two commits differ by
98
+ # the code between them alone. What would settle it is a paired comparison of
99
+ # a fat wheel and a thin wheel loaded into one interpreter on the runner that
100
+ # builds the wheel, which is where the wheel runs, rather than on a developer
101
+ # machine.
102
+ [profile.release]
103
+ lto = true # Fat link-time optimization
104
+ codegen-units = 1 # Single compilation unit
105
+ opt-level = 3 # Full optimization
106
+
107
+ # An optimised build that keeps `debug_assertions` on.
108
+ #
109
+ # The lock rank registry in crates/hnsw/src/locks.rs is gated
110
+ # on `cfg(debug_assertions)` and on nothing else, so it is live in any profile
111
+ # that leaves them on. This profile is the release profile with the assertions
112
+ # turned back on, so the registry runs at release speed. Build it with
113
+ #
114
+ # maturin develop --profile checked
115
+ #
116
+ # and run the suite as usual.
117
+ #
118
+ # Thin LTO rather than the release profile's fat, because this profile is
119
+ # built many times a day and thin LTO builds each edit in a fraction of the
120
+ # time, with the same results. The published wheel keeps fat; see the release
121
+ # profile.
122
+ [profile.checked]
123
+ inherits = "release"
124
+ debug-assertions = true
125
+ lto = "thin"
126
+ codegen-units = 16
127
+
128
+ # The release profile for a developer's own builds, being release with thin
129
+ # LTO so that an edit rebuilds in a fraction of the fat-LTO time. Its output is
130
+ # not what the wheel ships, so a wheel is built with `--release` and a working
131
+ # copy with
132
+ #
133
+ # maturin develop --profile dev-release
134
+ [profile.dev-release]
135
+ inherits = "release"
136
+ lto = "thin"
137
+ codegen-units = 16