usearch 2.3.1 → 2.3.2
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/Cargo.toml +1 -1
- package/README.md +1 -1
- package/conanfile.py +1 -1
- package/csharp/nuget/nuget-package.props +1 -1
- package/include/usearch/index.hpp +3 -3
- package/include/usearch/index_dense.hpp +6 -2
- package/package.json +1 -1
- package/wasmer.toml +1 -1
package/CITATION.cff
CHANGED
package/Cargo.toml
CHANGED
package/README.md
CHANGED
package/conanfile.py
CHANGED
|
@@ -4,7 +4,7 @@ from conans import ConanFile
|
|
|
4
4
|
class USearchConan(ConanFile):
|
|
5
5
|
|
|
6
6
|
name = 'USearch'
|
|
7
|
-
version = '2.3.
|
|
7
|
+
version = '2.3.2'
|
|
8
8
|
license = 'Apache 2.0'
|
|
9
9
|
url = 'https://github.com/unum-cloud/usearch'
|
|
10
10
|
description = 'Smaller & Faster Single-File Vector Search Engine from Unum'
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
#define USEARCH_VERSION_MAJOR 2
|
|
13
13
|
#define USEARCH_VERSION_MINOR 3
|
|
14
|
-
#define USEARCH_VERSION_PATCH
|
|
14
|
+
#define USEARCH_VERSION_PATCH 2
|
|
15
15
|
|
|
16
16
|
// Inferring C++ version
|
|
17
17
|
// https://stackoverflow.com/a/61552074
|
|
@@ -1362,7 +1362,7 @@ class output_file_t {
|
|
|
1362
1362
|
serialization_result_t result;
|
|
1363
1363
|
std::size_t written = std::fwrite(begin, length, 1, file_);
|
|
1364
1364
|
if (!written)
|
|
1365
|
-
result.failed(std::strerror(errno));
|
|
1365
|
+
return result.failed(std::strerror(errno));
|
|
1366
1366
|
return result;
|
|
1367
1367
|
}
|
|
1368
1368
|
void close() noexcept {
|
|
@@ -1404,7 +1404,7 @@ class input_file_t {
|
|
|
1404
1404
|
serialization_result_t result;
|
|
1405
1405
|
std::size_t read = std::fread(begin, length, 1, file_);
|
|
1406
1406
|
if (!read)
|
|
1407
|
-
result.failed(std::feof(file_) ? "End of file reached!" : std::strerror(errno));
|
|
1407
|
+
return result.failed(std::feof(file_) ? "End of file reached!" : std::strerror(errno));
|
|
1408
1408
|
return result;
|
|
1409
1409
|
}
|
|
1410
1410
|
void close() noexcept {
|
|
@@ -1041,8 +1041,10 @@ class index_dense_gt {
|
|
|
1041
1041
|
},
|
|
1042
1042
|
config, std::forward<progress_at>(progress));
|
|
1043
1043
|
|
|
1044
|
-
if (!stream_result)
|
|
1044
|
+
if (!stream_result) {
|
|
1045
|
+
io_result.error.release();
|
|
1045
1046
|
return stream_result;
|
|
1047
|
+
}
|
|
1046
1048
|
return io_result;
|
|
1047
1049
|
}
|
|
1048
1050
|
|
|
@@ -1093,8 +1095,10 @@ class index_dense_gt {
|
|
|
1093
1095
|
},
|
|
1094
1096
|
config, std::forward<progress_at>(progress));
|
|
1095
1097
|
|
|
1096
|
-
if (!stream_result)
|
|
1098
|
+
if (!stream_result) {
|
|
1099
|
+
io_result.error.release();
|
|
1097
1100
|
return stream_result;
|
|
1101
|
+
}
|
|
1098
1102
|
return io_result;
|
|
1099
1103
|
}
|
|
1100
1104
|
|
package/package.json
CHANGED