Skip to content

Commit d87a65d

Browse files
authored
Merge branch 'main' into main-dev
2 parents bd5e579 + b3da759 commit d87a65d

15 files changed

+23
-19
lines changed

CITATION.cff

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors:
55
given-names: "Ash"
66
orcid: "https://orcid.org/0000-0002-4882-1815"
77
title: "USearch by Unum Cloud"
8-
version: 2.15.1
8+
version: 2.15.2
99
doi: 10.5281/zenodo.7949416
1010
date-released: 2023-10-22
1111
url: "https://github.com/unum-cloud/usearch"

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
cmake_minimum_required(VERSION 3.1)
44
project(
55
usearch
6-
VERSION 2.15.1
6+
VERSION 2.15.2
77
LANGUAGES C CXX
88
DESCRIPTION "Smaller & Faster Single-File Vector Search Engine from Unum"
99
HOMEPAGE_URL "https://github.com/unum-cloud/usearch"

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "usearch"
3-
version = "2.15.1"
3+
version = "2.15.2"
44
authors = ["Ash Vardanian <[email protected]>"]
55
description = "Smaller & Faster Single-File Vector Search Engine from Unum"
66
edition = "2021"

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Spatial • Binary • Probabilistic • User-Defined Metrics
3232
<a href="https://unum-cloud.github.io/usearch/golang">GoLang</a> •
3333
<a href="https://unum-cloud.github.io/usearch/wolfram">Wolfram</a>
3434
<br/>
35-
Linux • MacOS • Windows • iOS • WebAssembly •
35+
Linux • MacOS • Windows • iOS • Android • WebAssembly •
3636
<a href="https://unum-cloud.github.io/usearch/sqlite">SQLite3</a>
3737
</p>
3838

@@ -544,7 +544,7 @@ doi = {10.5281/zenodo.7949416},
544544
author = {Vardanian, Ash},
545545
title = {{USearch by Unum Cloud}},
546546
url = {https://github.com/unum-cloud/usearch},
547-
version = {2.15.1},
547+
version = {2.15.2},
548548
year = {2023},
549549
month = oct,
550550
}

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.15.1
1+
2.15.2

build.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -60,23 +60,24 @@ fn main() {
6060
build.define("USEARCH_USE_SIMSIMD", "0");
6161
}
6262

63+
let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap();
6364
// Conditional compilation depending on the target operating system.
64-
if cfg!(target_os = "linux") {
65+
if target_os == "linux" || target_os == "android" {
6566
build
6667
.flag_if_supported("-std=c++17")
6768
.flag_if_supported("-O3")
6869
.flag_if_supported("-ffast-math")
6970
.flag_if_supported("-fdiagnostics-color=always")
7071
.flag_if_supported("-g1"); // Simplify debugging
71-
} else if cfg!(target_os = "macos") {
72+
} else if target_os == "macos" {
7273
build
7374
.flag_if_supported("-mmacosx-version-min=10.15")
7475
.flag_if_supported("-std=c++17")
7576
.flag_if_supported("-O3")
7677
.flag_if_supported("-ffast-math")
7778
.flag_if_supported("-fcolor-diagnostics")
7879
.flag_if_supported("-g1"); // Simplify debugging
79-
} else if cfg!(target_os = "windows") {
80+
} else if target_os == "windows" {
8081
build
8182
.flag_if_supported("/std:c++17")
8283
.flag_if_supported("/O2")

conanfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class USearchConan(ConanFile):
88

99
name = "usearch"
10-
version = "2.15.1"
10+
version = "2.15.2"
1111
license = "Apache-2.0"
1212
description = "Smaller & Faster Single-File Vector Search Engine from Unum"
1313
homepage = "https://github.com/unum-cloud/usearch"

csharp/nuget/nuget-package.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project>
33
<PropertyGroup>
4-
<Version Condition="'$(Version)' == ''">2.15.1</Version>
4+
<Version Condition="'$(Version)' == ''">2.15.2</Version>
55

66
<Authors>Unum</Authors>
77
<Company>Unum</Company>

include/usearch/index.hpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#define USEARCH_VERSION_MAJOR 2
1111
#define USEARCH_VERSION_MINOR 15
12-
#define USEARCH_VERSION_PATCH 1
12+
#define USEARCH_VERSION_PATCH 2
1313

1414
// Inferring C++ version
1515
// https://stackoverflow.com/a/61552074
@@ -27,6 +27,9 @@
2727
#define USEARCH_DEFINED_APPLE
2828
#elif defined(__linux__)
2929
#define USEARCH_DEFINED_LINUX
30+
#if defined(__ANDROID_API__)
31+
#define USEARCH_DEFINED_ANDROID
32+
#endif
3033
#endif
3134

3235
// Inferring the compiler: Clang vs GCC

include/usearch/index_plugins.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -796,9 +796,9 @@ class aligned_allocator_gt {
796796
std::size_t alignment = alignment_ak;
797797
#if defined(USEARCH_DEFINED_WINDOWS)
798798
return (pointer)_aligned_malloc(length_bytes, alignment);
799-
#elif defined(USEARCH_DEFINED_APPLE)
799+
#elif defined(USEARCH_DEFINED_APPLE) || defined(USEARCH_DEFINED_ANDROID)
800800
// Apple Clang keeps complaining that `aligned_alloc` is only available
801-
// with macOS 10.15 and newer, so let's use `posix_memalign` there.
801+
// with macOS 10.15 and newer or Android API >= 28, so let's use `posix_memalign` there.
802802
void* result = nullptr;
803803
int status = posix_memalign(&result, alignment, length_bytes);
804804
return status == 0 ? (pointer)result : nullptr;

java/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<dependency>
77
<groupId>cloud.unum</groupId>
88
<artifactId>usearch</artifactId>
9-
<version>2.15.1</version>
9+
<version>2.15.2</version>
1010
</dependency>
1111
```
1212

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "usearch",
3-
"version": "2.15.1",
3+
"version": "2.15.2",
44
"description": "Smaller & Faster Single-File Vector Search Engine from Unum",
55
"author": "Ash Vardanian (https://ashvardanian.com/)",
66
"license": "Apache 2.0",

wasmer.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "unum/usearch"
3-
version = "2.15.1"
3+
version = "2.15.2"
44
description = "Smaller & Faster Single-File Vector Search Engine from Unum"
55
license = "Apache-2.0"
66
readme = "README.md"

0 commit comments

Comments
 (0)