usearch 2.8.7 → 2.8.9
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/CITATION.cff +1 -1
- package/CMakeLists.txt +3 -3
- package/CONTRIBUTING.md +26 -3
- package/Cargo.toml +1 -1
- package/Dockerfile +16 -0
- package/README.md +41 -38
- package/VERSION +1 -0
- package/binding.gyp +57 -8
- package/conanfile.py +1 -1
- package/include/usearch/index.hpp +1 -1
- package/include/usearch/index_plugins.hpp +28 -24
- package/javascript/README.md +64 -12
- package/javascript/lib.cpp +11 -3
- package/javascript/usearch.js +4 -2
- package/javascript/usearch.test.js +15 -0
- package/package.json +1 -2
- package/setup.py +76 -15
- package/simsimd/README.md +14 -13
- package/simsimd/include/simsimd/probability.h +2 -2
- package/simsimd/package.json +1 -1
- package/wasmer.toml +1 -1
- package/. npmignore +0 -14
- package/.gitignore +0 -95
- package/.vscode/launch.json +0 -181
- package/.vscode/settings.json +0 -180
- package/.vscode/tasks.json +0 -71
- package/Package.swift +0 -41
- package/csharp/.editorconfig +0 -361
- package/csharp/Cloud.Unum.USearch.sln +0 -34
- package/csharp/DEV_SETUP.md +0 -51
- package/csharp/Directory.Build.props +0 -29
- package/csharp/README.md +0 -74
- package/csharp/build_and_test.cmd +0 -31
- package/csharp/build_and_test.sh +0 -30
- package/csharp/nuget/nuget-package.props +0 -33
- package/csharp/pack.sh +0 -56
- package/csharp/src/Cloud.Unum.USearch.Tests/Cloud.Unum.USearch.Tests.csproj +0 -39
- package/csharp/src/Cloud.Unum.USearch.Tests/USearchIndexTests.cs +0 -1013
- package/csharp/src/Cloud.Unum.USearch.Tests/Usings.cs +0 -1
- package/docs/_static/custom.css +0 -26
- package/docs/_static/custom.js +0 -7
- package/docs/benchmarks.md +0 -245
- package/docs/benchmarks.rst +0 -5
- package/docs/c/index.rst +0 -11
- package/docs/c/reference.rst +0 -7
- package/docs/conf.dox +0 -2668
- package/docs/conf.py +0 -53
- package/docs/contributing.rst +0 -5
- package/docs/cpp/index.rst +0 -11
- package/docs/cpp/reference.rst +0 -17
- package/docs/csharp/index.rst +0 -6
- package/docs/format.md +0 -86
- package/docs/format.rst +0 -5
- package/docs/golang/index.rst +0 -6
- package/docs/index.rst +0 -33
- package/docs/java/index.rst +0 -11
- package/docs/java/reference.rst +0 -7
- package/docs/javascript/index.rst +0 -11
- package/docs/javascript/reference.rst +0 -12
- package/docs/python/index.rst +0 -11
- package/docs/python/reference.rst +0 -42
- package/docs/rust/index.rst +0 -6
- package/docs/swift/index.rst +0 -6
- package/docs/wolfram/index.rst +0 -6
- package/golang/README.md +0 -95
- package/golang/go.mod +0 -3
- package/golang/lib.go +0 -379
- package/golang/lib_test.go +0 -108
- package/java/README.md +0 -22
- package/java/cloud/unum/usearch/Index.java +0 -337
- package/java/cloud/unum/usearch/cloud_unum_usearch_Index.cpp +0 -197
- package/java/cloud/unum/usearch/cloud_unum_usearch_Index.h +0 -125
- package/java/test/IndexTest.java +0 -30
- package/objc/USearchObjective.mm +0 -299
- package/objc/include/USearchObjective.h +0 -154
- package/python/README.md +0 -292
- package/python/lib.cpp +0 -1216
- package/python/scripts/bench.ipynb +0 -193
- package/python/scripts/bench.py +0 -137
- package/python/scripts/bench_exact.py +0 -44
- package/python/scripts/cluster.ipynb +0 -160
- package/python/scripts/index_faiss.py +0 -100
- package/python/scripts/join.py +0 -155
- package/python/scripts/test_index.py +0 -247
- package/python/scripts/test_jit.py +0 -231
- package/python/scripts/test_sparse.py +0 -32
- package/python/scripts/test_tooling.py +0 -133
- package/python/usearch/__init__.py +0 -0
- package/python/usearch/client.py +0 -124
- package/python/usearch/eval.py +0 -470
- package/python/usearch/index.py +0 -1401
- package/python/usearch/io.py +0 -113
- package/python/usearch/numba.py +0 -121
- package/python/usearch/server.py +0 -137
- package/rust/README.md +0 -66
- package/rust/lib.cpp +0 -136
- package/rust/lib.hpp +0 -69
- package/rust/lib.rs +0 -610
- package/simsimd/CMakeLists.txt +0 -67
- package/simsimd/cpp/bench.cxx +0 -206
- package/simsimd/package-ci.json +0 -10
- package/simsimd/setup.py +0 -86
- package/swift/Index+Sugar.swift +0 -153
- package/swift/README.md +0 -48
- package/swift/Test.swift +0 -37
- package/swift/USearch.swift +0 -8
- package/wasm/CMakeLists.txt +0 -7
- package/wasm/README.md +0 -13
- package/wasm/lib.cpp +0 -5
- package/wolfram/CMakeLists.txt +0 -18
- package/wolfram/README.md +0 -13
- package/wolfram/lib.cpp +0 -160
- package/wolfram/test.wls +0 -27
package/.vscode/launch.json
DELETED
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "0.2.0",
|
|
3
|
-
"configurations": [
|
|
4
|
-
{
|
|
5
|
-
"name": "Unit Test C++",
|
|
6
|
-
"type": "cppdbg",
|
|
7
|
-
"request": "launch",
|
|
8
|
-
"program": "${workspaceFolder}/build_debug/test_cpp",
|
|
9
|
-
"cwd": "${workspaceFolder}",
|
|
10
|
-
"environment": [
|
|
11
|
-
{
|
|
12
|
-
"name": "ASAN_OPTIONS",
|
|
13
|
-
"value": "detect_leaks=0:atexit=1:strict_init_order=1:strict_string_checks=1:abort_on_error=0"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"name": "LSAN_OPTIONS",
|
|
17
|
-
"value": "verbosity=1:log_threads=1"
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"stopAtEntry": false,
|
|
21
|
-
"linux": {
|
|
22
|
-
"preLaunchTask": "Linux Build Debug",
|
|
23
|
-
"MIMode": "gdb"
|
|
24
|
-
},
|
|
25
|
-
"osx": {
|
|
26
|
-
"preLaunchTask": "MacOS Build Debug",
|
|
27
|
-
"MIMode": "lldb"
|
|
28
|
-
},
|
|
29
|
-
"windows": {
|
|
30
|
-
"preLaunchTask": "Windows Build Debug",
|
|
31
|
-
"type": "cppvsdbg",
|
|
32
|
-
"program": "${workspaceFolder}/build_debug/test_cpp.exe"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "Unit Test C",
|
|
37
|
-
"type": "cppdbg",
|
|
38
|
-
"request": "launch",
|
|
39
|
-
"program": "${workspaceFolder}/build_debug/test_c",
|
|
40
|
-
"cwd": "${workspaceFolder}",
|
|
41
|
-
"environment": [
|
|
42
|
-
{
|
|
43
|
-
"name": "ASAN_OPTIONS",
|
|
44
|
-
"value": "detect_leaks=0:atexit=1:strict_init_order=1:strict_string_checks=1:abort_on_error=0"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"name": "LSAN_OPTIONS",
|
|
48
|
-
"value": "verbosity=1:log_threads=1"
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
"stopAtEntry": false,
|
|
52
|
-
"linux": {
|
|
53
|
-
"preLaunchTask": "Linux Build Debug",
|
|
54
|
-
"MIMode": "gdb"
|
|
55
|
-
},
|
|
56
|
-
"osx": {
|
|
57
|
-
"preLaunchTask": "MacOS Build Debug",
|
|
58
|
-
"MIMode": "lldb"
|
|
59
|
-
},
|
|
60
|
-
"windows": {
|
|
61
|
-
"preLaunchTask": "Windows Build Debug",
|
|
62
|
-
"type": "cppvsdbg",
|
|
63
|
-
"program": "${workspaceFolder}/build_debug/test_c.exe"
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"name": "Debug C++ on Wiki 1M @Cos",
|
|
68
|
-
"type": "cppdbg",
|
|
69
|
-
"request": "launch",
|
|
70
|
-
"program": "${workspaceFolder}/build_debug/bench_cpp",
|
|
71
|
-
"cwd": "${workspaceFolder}",
|
|
72
|
-
"args": [
|
|
73
|
-
"--vectors",
|
|
74
|
-
"datasets/wiki_1M/base.1M.fbin",
|
|
75
|
-
"--queries",
|
|
76
|
-
"datasets/wiki_1M/query.public.100K.fbin",
|
|
77
|
-
"--neighbors",
|
|
78
|
-
"datasets/wiki_1M/groundtruth.public.100K.ibin",
|
|
79
|
-
"--ip"
|
|
80
|
-
],
|
|
81
|
-
"environment": [
|
|
82
|
-
{
|
|
83
|
-
"name": "ASAN_OPTIONS",
|
|
84
|
-
"value": "detect_leaks=0:atexit=1:strict_init_order=1:strict_string_checks=1"
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
"stopAtEntry": false,
|
|
88
|
-
"linux": {
|
|
89
|
-
"preLaunchTask": "Linux Build Debug",
|
|
90
|
-
"MIMode": "gdb",
|
|
91
|
-
"environment": [
|
|
92
|
-
{
|
|
93
|
-
"name": "MALLOC_CHECK_",
|
|
94
|
-
"value": "2"
|
|
95
|
-
}
|
|
96
|
-
]
|
|
97
|
-
},
|
|
98
|
-
"osx": {
|
|
99
|
-
"preLaunchTask": "MacOS Build Debug",
|
|
100
|
-
"MIMode": "lldb"
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"name": "Debug C++ on Text-to-Image 1B @Cos",
|
|
105
|
-
"type": "cppdbg",
|
|
106
|
-
"request": "launch",
|
|
107
|
-
"program": "${workspaceFolder}/build_debug/bench_cpp",
|
|
108
|
-
"cwd": "${workspaceFolder}",
|
|
109
|
-
"args": [
|
|
110
|
-
"--vectors",
|
|
111
|
-
"datasets/t2i_1B/base.1B.fbin",
|
|
112
|
-
"--queries",
|
|
113
|
-
"datasets/t2i_1B/query.public.100K.fbin",
|
|
114
|
-
"--neighbors",
|
|
115
|
-
"datasets/t2i_1B/groundtruth.public.100K.ibin",
|
|
116
|
-
"--cos"
|
|
117
|
-
],
|
|
118
|
-
"environment": [
|
|
119
|
-
{
|
|
120
|
-
"name": "ASAN_OPTIONS",
|
|
121
|
-
"value": "detect_leaks=0:atexit=1:strict_init_order=1:strict_string_checks=1"
|
|
122
|
-
}
|
|
123
|
-
],
|
|
124
|
-
"stopAtEntry": false,
|
|
125
|
-
"linux": {
|
|
126
|
-
"preLaunchTask": "Linux Build Debug",
|
|
127
|
-
"MIMode": "gdb"
|
|
128
|
-
},
|
|
129
|
-
"osx": {
|
|
130
|
-
"preLaunchTask": "MacOS Build Debug",
|
|
131
|
-
"MIMode": "lldb"
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"name": "Run C++ on Text-to-Image 1M @Cos",
|
|
136
|
-
"type": "cppdbg",
|
|
137
|
-
"request": "launch",
|
|
138
|
-
"program": "${workspaceFolder}/build_release/bench_cpp",
|
|
139
|
-
"cwd": "${workspaceFolder}",
|
|
140
|
-
"args": [
|
|
141
|
-
"--vectors",
|
|
142
|
-
"datasets/t2i_1M/base.1M.fbin",
|
|
143
|
-
"--queries",
|
|
144
|
-
"datasets/t2i_1M/query.public.100K.fbin",
|
|
145
|
-
"--neighbors",
|
|
146
|
-
"datasets/t2i_1M/groundtruth.public.100K.ibin",
|
|
147
|
-
],
|
|
148
|
-
"stopAtEntry": false,
|
|
149
|
-
"preLaunchTask": "Linux Build Release",
|
|
150
|
-
"MIMode": "gdb"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"name": "Debug PyTest",
|
|
154
|
-
"type": "python",
|
|
155
|
-
"request": "launch",
|
|
156
|
-
"module": "pytest",
|
|
157
|
-
"console": "internalConsole",
|
|
158
|
-
"args": [
|
|
159
|
-
"${file}"
|
|
160
|
-
],
|
|
161
|
-
"justMyCode": true
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
"name": "Debug Python Benchmark",
|
|
165
|
-
"type": "python",
|
|
166
|
-
"request": "launch",
|
|
167
|
-
"program": "python/scripts/bench.py",
|
|
168
|
-
"console": "internalConsole",
|
|
169
|
-
"args": [
|
|
170
|
-
"speed",
|
|
171
|
-
"--vectors",
|
|
172
|
-
"datasets/wiki_1M/base.1M.fbin",
|
|
173
|
-
"--queries",
|
|
174
|
-
"datasets/wiki_1M/query.public.100K.fbin",
|
|
175
|
-
"--neighbors",
|
|
176
|
-
"datasets/wiki_1M/groundtruth.public.100K.ibin",
|
|
177
|
-
],
|
|
178
|
-
"justMyCode": true
|
|
179
|
-
}
|
|
180
|
-
]
|
|
181
|
-
}
|
package/.vscode/settings.json
DELETED
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"files.associations": {
|
|
3
|
-
"array": "cpp",
|
|
4
|
-
"atomic": "cpp",
|
|
5
|
-
"hash_map": "cpp",
|
|
6
|
-
"hash_set": "cpp",
|
|
7
|
-
"barrier": "cpp",
|
|
8
|
-
"bit": "cpp",
|
|
9
|
-
"*.tcc": "cpp",
|
|
10
|
-
"bitset": "cpp",
|
|
11
|
-
"cctype": "cpp",
|
|
12
|
-
"chrono": "cpp",
|
|
13
|
-
"cinttypes": "cpp",
|
|
14
|
-
"clocale": "cpp",
|
|
15
|
-
"cmath": "cpp",
|
|
16
|
-
"codecvt": "cpp",
|
|
17
|
-
"compare": "cpp",
|
|
18
|
-
"complex": "cpp",
|
|
19
|
-
"concepts": "cpp",
|
|
20
|
-
"condition_variable": "cpp",
|
|
21
|
-
"csignal": "cpp",
|
|
22
|
-
"cstdarg": "cpp",
|
|
23
|
-
"cstddef": "cpp",
|
|
24
|
-
"cstdint": "cpp",
|
|
25
|
-
"cstdio": "cpp",
|
|
26
|
-
"cstdlib": "cpp",
|
|
27
|
-
"cstring": "cpp",
|
|
28
|
-
"ctime": "cpp",
|
|
29
|
-
"cwchar": "cpp",
|
|
30
|
-
"cwctype": "cpp",
|
|
31
|
-
"deque": "cpp",
|
|
32
|
-
"forward_list": "cpp",
|
|
33
|
-
"list": "cpp",
|
|
34
|
-
"map": "cpp",
|
|
35
|
-
"set": "cpp",
|
|
36
|
-
"string": "cpp",
|
|
37
|
-
"unordered_map": "cpp",
|
|
38
|
-
"unordered_set": "cpp",
|
|
39
|
-
"vector": "cpp",
|
|
40
|
-
"exception": "cpp",
|
|
41
|
-
"algorithm": "cpp",
|
|
42
|
-
"functional": "cpp",
|
|
43
|
-
"iterator": "cpp",
|
|
44
|
-
"memory": "cpp",
|
|
45
|
-
"memory_resource": "cpp",
|
|
46
|
-
"numeric": "cpp",
|
|
47
|
-
"optional": "cpp",
|
|
48
|
-
"random": "cpp",
|
|
49
|
-
"ratio": "cpp",
|
|
50
|
-
"regex": "cpp",
|
|
51
|
-
"string_view": "cpp",
|
|
52
|
-
"system_error": "cpp",
|
|
53
|
-
"tuple": "cpp",
|
|
54
|
-
"type_traits": "cpp",
|
|
55
|
-
"utility": "cpp",
|
|
56
|
-
"fstream": "cpp",
|
|
57
|
-
"initializer_list": "cpp",
|
|
58
|
-
"iomanip": "cpp",
|
|
59
|
-
"iosfwd": "cpp",
|
|
60
|
-
"iostream": "cpp",
|
|
61
|
-
"istream": "cpp",
|
|
62
|
-
"limits": "cpp",
|
|
63
|
-
"mutex": "cpp",
|
|
64
|
-
"new": "cpp",
|
|
65
|
-
"numbers": "cpp",
|
|
66
|
-
"ostream": "cpp",
|
|
67
|
-
"semaphore": "cpp",
|
|
68
|
-
"sstream": "cpp",
|
|
69
|
-
"stdexcept": "cpp",
|
|
70
|
-
"stop_token": "cpp",
|
|
71
|
-
"streambuf": "cpp",
|
|
72
|
-
"thread": "cpp",
|
|
73
|
-
"typeindex": "cpp",
|
|
74
|
-
"typeinfo": "cpp",
|
|
75
|
-
"valarray": "cpp",
|
|
76
|
-
"variant": "cpp",
|
|
77
|
-
"__bit_reference": "cpp",
|
|
78
|
-
"__bits": "cpp",
|
|
79
|
-
"__config": "cpp",
|
|
80
|
-
"__debug": "cpp",
|
|
81
|
-
"__errc": "cpp",
|
|
82
|
-
"__hash_table": "cpp",
|
|
83
|
-
"__locale": "cpp",
|
|
84
|
-
"__mutex_base": "cpp",
|
|
85
|
-
"__node_handle": "cpp",
|
|
86
|
-
"__nullptr": "cpp",
|
|
87
|
-
"__split_buffer": "cpp",
|
|
88
|
-
"__string": "cpp",
|
|
89
|
-
"__threading_support": "cpp",
|
|
90
|
-
"__tree": "cpp",
|
|
91
|
-
"__tuple": "cpp",
|
|
92
|
-
"any": "cpp",
|
|
93
|
-
"ios": "cpp",
|
|
94
|
-
"locale": "cpp",
|
|
95
|
-
"queue": "cpp",
|
|
96
|
-
"stack": "cpp",
|
|
97
|
-
"__memory": "cpp",
|
|
98
|
-
"filesystem": "cpp",
|
|
99
|
-
"__availability": "cpp",
|
|
100
|
-
"version": "cpp",
|
|
101
|
-
"future": "cpp",
|
|
102
|
-
"__verbose_abort": "cpp",
|
|
103
|
-
"shared_mutex": "cpp",
|
|
104
|
-
"ranges": "cpp",
|
|
105
|
-
"span": "cpp",
|
|
106
|
-
"format": "cpp",
|
|
107
|
-
"charconv": "cpp"
|
|
108
|
-
},
|
|
109
|
-
"cSpell.words": [
|
|
110
|
-
"allclose",
|
|
111
|
-
"arange",
|
|
112
|
-
"astype",
|
|
113
|
-
"Availible",
|
|
114
|
-
"bidict",
|
|
115
|
-
"BLAS",
|
|
116
|
-
"Cdecl",
|
|
117
|
-
"cflags",
|
|
118
|
-
"cibuildwheel",
|
|
119
|
-
"citerator",
|
|
120
|
-
"downcasted",
|
|
121
|
-
"Downcasting",
|
|
122
|
-
"dtype",
|
|
123
|
-
"DUSEARCH",
|
|
124
|
-
"emcmake",
|
|
125
|
-
"equi",
|
|
126
|
-
"equidimensional",
|
|
127
|
-
"FAISS",
|
|
128
|
-
"fbin",
|
|
129
|
-
"groundtruth",
|
|
130
|
-
"hashable",
|
|
131
|
-
"HNSW",
|
|
132
|
-
"hnswlib",
|
|
133
|
-
"ibin",
|
|
134
|
-
"jaccard",
|
|
135
|
-
"libusearch",
|
|
136
|
-
"linalg",
|
|
137
|
-
"longlong",
|
|
138
|
-
"memmap",
|
|
139
|
-
"Napi",
|
|
140
|
-
"ndarray",
|
|
141
|
-
"ndim",
|
|
142
|
-
"Numba",
|
|
143
|
-
"numpy",
|
|
144
|
-
"OPENMP",
|
|
145
|
-
"preprocess",
|
|
146
|
-
"Println",
|
|
147
|
-
"pytest",
|
|
148
|
-
"Quickstart",
|
|
149
|
-
"rtype",
|
|
150
|
-
"SIMD",
|
|
151
|
-
"simsimd",
|
|
152
|
-
"SLOC",
|
|
153
|
-
"Sonatype",
|
|
154
|
-
"sorensen",
|
|
155
|
-
"Struct",
|
|
156
|
-
"tanimoto",
|
|
157
|
-
"tqdm",
|
|
158
|
-
"uninitialize",
|
|
159
|
-
"unumusearch",
|
|
160
|
-
"usearch",
|
|
161
|
-
"usecases",
|
|
162
|
-
"Vardanian",
|
|
163
|
-
"vectorize",
|
|
164
|
-
"Xunit"
|
|
165
|
-
],
|
|
166
|
-
"autoDocstring.docstringFormat": "sphinx",
|
|
167
|
-
"java.configuration.updateBuildConfiguration": "interactive",
|
|
168
|
-
"python.testing.pytestArgs": ["python"],
|
|
169
|
-
"python.analysis.diagnosticSeverityOverrides": {
|
|
170
|
-
"reportMissingImports": "none"
|
|
171
|
-
},
|
|
172
|
-
"python.testing.unittestEnabled": false,
|
|
173
|
-
"python.testing.pytestEnabled": true,
|
|
174
|
-
"[go]": {
|
|
175
|
-
"editor.insertSpaces": true,
|
|
176
|
-
"editor.formatOnSave": true,
|
|
177
|
-
"editor.defaultFormatter": "golang.go"
|
|
178
|
-
},
|
|
179
|
-
"dotnet.defaultSolution": "csharp/Cloud.Unum.USearch.sln"
|
|
180
|
-
}
|
package/.vscode/tasks.json
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "2.0.0",
|
|
3
|
-
"tasks": [
|
|
4
|
-
{
|
|
5
|
-
"label": "Linux Build Debug",
|
|
6
|
-
"command": "cmake -DCMAKE_CXX_COMPILER=gcc-12 -DCMAKE_CXX_COMPILER=g++-12 -DUSEARCH_BUILD_LIB_C=1 -DUSEARCH_BUILD_TEST_C=1 -DCMAKE_BUILD_TYPE=Debug -B ./build_debug && cmake --build ./build_debug --config Debug",
|
|
7
|
-
"args": [],
|
|
8
|
-
"type": "shell",
|
|
9
|
-
"problemMatcher": [
|
|
10
|
-
"$gcc"
|
|
11
|
-
]
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"label": "Linux Build Release",
|
|
15
|
-
"command": "cmake -DCMAKE_CXX_COMPILER=gcc-12 -DCMAKE_CXX_COMPILER=g++-12 -DUSEARCH_BUILD_LIB_C=1 -DUSEARCH_BUILD_TEST_C=1 -DCMAKE_BUILD_TYPE=Release -B ./build_release && cmake --build ./build_release --config RelWithDebInfo",
|
|
16
|
-
"args": [],
|
|
17
|
-
"type": "shell",
|
|
18
|
-
"problemMatcher": [
|
|
19
|
-
"$gcc"
|
|
20
|
-
]
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"label": "MacOS Build Debug",
|
|
24
|
-
"command": "cmake -DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++ -DUSEARCH_BUILD_LIB_C=1 -DUSEARCH_BUILD_TEST_C=1 -DCMAKE_BUILD_TYPE=Debug -B ./build_debug && cmake --build ./build_debug --config Debug",
|
|
25
|
-
"args": [],
|
|
26
|
-
"type": "shell",
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"label": "MacOS Build Release",
|
|
30
|
-
"command": "cmake -DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++ -DUSEARCH_BUILD_LIB_C=1 -DUSEARCH_BUILD_TEST_C=1 -DCMAKE_BUILD_TYPE=Release -B ./build_release && cmake --build ./build_release --config RelWithDebInfo",
|
|
31
|
-
"args": [],
|
|
32
|
-
"type": "shell"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"label": "Windows Build Debug",
|
|
36
|
-
"command": "cmake -DUSEARCH_BUILD_LIB_C=1 -DUSEARCH_BUILD_TEST_C=1 -DCMAKE_BUILD_TYPE=Debug -B ./build_debug && cmake --build ./build_debug --config Debug",
|
|
37
|
-
"args": [],
|
|
38
|
-
"type": "shell",
|
|
39
|
-
"problemMatcher": [
|
|
40
|
-
"$msCompile"
|
|
41
|
-
],
|
|
42
|
-
"options": {
|
|
43
|
-
"shell": {
|
|
44
|
-
"executable": "cmd.exe",
|
|
45
|
-
"args": [
|
|
46
|
-
"/d",
|
|
47
|
-
"/c"
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"label": "Windows Build Release",
|
|
54
|
-
"command": "cmake -DUSEARCH_BUILD_LIB_C=1 -DUSEARCH_BUILD_TEST_C=1 -DCMAKE_BUILD_TYPE=Release -B ./build_release && cmake --build ./build_release --config RelWithDebInfo",
|
|
55
|
-
"args": [],
|
|
56
|
-
"type": "shell",
|
|
57
|
-
"problemMatcher": [
|
|
58
|
-
"$msCompile"
|
|
59
|
-
],
|
|
60
|
-
"options": {
|
|
61
|
-
"shell": {
|
|
62
|
-
"executable": "cmd.exe",
|
|
63
|
-
"args": [
|
|
64
|
-
"/d",
|
|
65
|
-
"/c"
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
]
|
|
71
|
-
}
|
package/Package.swift
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// swift-tools-version:5.3
|
|
2
|
-
|
|
3
|
-
import PackageDescription
|
|
4
|
-
|
|
5
|
-
let package = Package(
|
|
6
|
-
name: "USearch",
|
|
7
|
-
products: [
|
|
8
|
-
.library(
|
|
9
|
-
name: "USearch",
|
|
10
|
-
targets: ["USearchObjective", "USearch"]
|
|
11
|
-
)
|
|
12
|
-
],
|
|
13
|
-
dependencies: [],
|
|
14
|
-
targets: [
|
|
15
|
-
.target(
|
|
16
|
-
name: "USearchObjective",
|
|
17
|
-
path: "objc",
|
|
18
|
-
sources: ["USearchObjective.mm"],
|
|
19
|
-
cxxSettings: [
|
|
20
|
-
.headerSearchPath("../include/"),
|
|
21
|
-
.headerSearchPath("../fp16/include/"),
|
|
22
|
-
.headerSearchPath("../simismd/include/")
|
|
23
|
-
]
|
|
24
|
-
),
|
|
25
|
-
.target(
|
|
26
|
-
name: "USearch",
|
|
27
|
-
dependencies: ["USearchObjective"],
|
|
28
|
-
path: "swift",
|
|
29
|
-
exclude: ["README.md", "Test.swift"],
|
|
30
|
-
sources: ["USearch.swift", "Index+Sugar.swift"]
|
|
31
|
-
),
|
|
32
|
-
.testTarget(
|
|
33
|
-
name: "USearchTests",
|
|
34
|
-
dependencies: ["USearch"],
|
|
35
|
-
path: "swift",
|
|
36
|
-
exclude: ["USearch.swift", "Index+Sugar.swift", "README.md"],
|
|
37
|
-
sources: ["Test.swift"]
|
|
38
|
-
)
|
|
39
|
-
],
|
|
40
|
-
cxxLanguageStandard: CXXLanguageStandard.cxx11
|
|
41
|
-
)
|