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 CHANGED
@@ -5,7 +5,7 @@ authors:
5
5
  given-names: "Ash"
6
6
  orcid: "https://orcid.org/0000-0002-4882-1815"
7
7
  title: "USearch by Unum Cloud"
8
- version: 2.3.1
8
+ version: 2.3.2
9
9
  doi: 10.5281/zenodo.7949416
10
10
  date-released: 2022-06-12
11
11
  url: "https://github.com/unum-cloud/usearch"
package/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "usearch"
3
- version = "2.3.1"
3
+ version = "2.3.2"
4
4
  authors = ["Ash Vardanian <1983160+ashvardanian@users.noreply.github.com>"]
5
5
  description = "Smaller & Faster Single-File Vector Search Engine from Unum"
6
6
  edition = "2021"
package/README.md CHANGED
@@ -392,7 +392,7 @@ doi = {10.5281/zenodo.7949416},
392
392
  author = {Vardanian, Ash},
393
393
  title = {{USearch by Unum Cloud}},
394
394
  url = {https://github.com/unum-cloud/usearch},
395
- version = {2.3.1},
395
+ version = {2.3.2},
396
396
  year = {2022},
397
397
  month = jun,
398
398
  }
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.1'
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'
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
2
  <Project>
3
3
  <PropertyGroup>
4
- <Version Condition="'$(Version)' == ''">2.3.1</Version>
4
+ <Version Condition="'$(Version)' == ''">2.3.2</Version>
5
5
 
6
6
  <Authors>Unum</Authors>
7
7
  <Company>Unum</Company>
@@ -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 1
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "usearch",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "description": "Smaller & Faster Single-File Vector Search Engine from Unum",
5
5
  "author": "Ash Vardanian",
6
6
  "license": "Apache 2.0",
package/wasmer.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name="unum/usearch"
3
- version="2.3.1"
3
+ version="2.3.2"
4
4
  description="Smaller & Faster Single-File Vector Search Engine from Unum"
5
5
  license="Apache-2.0"
6
6
  readme="README.md"