Skip to content

Commit

Permalink
Merge branch 'main' into main-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian authored Oct 9, 2024
2 parents bd5e579 + b3da759 commit d87a65d
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 19 deletions.
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors:
given-names: "Ash"
orcid: "https://orcid.org/0000-0002-4882-1815"
title: "USearch by Unum Cloud"
version: 2.15.1
version: 2.15.2
doi: 10.5281/zenodo.7949416
date-released: 2023-10-22
url: "https://github.com/unum-cloud/usearch"
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
cmake_minimum_required(VERSION 3.1)
project(
usearch
VERSION 2.15.1
VERSION 2.15.2
LANGUAGES C CXX
DESCRIPTION "Smaller & Faster Single-File Vector Search Engine from Unum"
HOMEPAGE_URL "https://github.com/unum-cloud/usearch"
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "usearch"
version = "2.15.1"
version = "2.15.2"
authors = ["Ash Vardanian <[email protected]>"]
description = "Smaller & Faster Single-File Vector Search Engine from Unum"
edition = "2021"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Spatial • Binary • Probabilistic • User-Defined Metrics
<a href="https://unum-cloud.github.io/usearch/golang">GoLang</a> •
<a href="https://unum-cloud.github.io/usearch/wolfram">Wolfram</a>
<br/>
Linux • MacOS • Windows • iOS • WebAssembly •
Linux • MacOS • Windows • iOS • Android • WebAssembly •
<a href="https://unum-cloud.github.io/usearch/sqlite">SQLite3</a>
</p>

Expand Down Expand Up @@ -544,7 +544,7 @@ doi = {10.5281/zenodo.7949416},
author = {Vardanian, Ash},
title = {{USearch by Unum Cloud}},
url = {https://github.com/unum-cloud/usearch},
version = {2.15.1},
version = {2.15.2},
year = {2023},
month = oct,
}
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.15.1
2.15.2
7 changes: 4 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,24 @@ fn main() {
build.define("USEARCH_USE_SIMSIMD", "0");
}

let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap();
// Conditional compilation depending on the target operating system.
if cfg!(target_os = "linux") {
if target_os == "linux" || target_os == "android" {
build
.flag_if_supported("-std=c++17")
.flag_if_supported("-O3")
.flag_if_supported("-ffast-math")
.flag_if_supported("-fdiagnostics-color=always")
.flag_if_supported("-g1"); // Simplify debugging
} else if cfg!(target_os = "macos") {
} else if target_os == "macos" {
build
.flag_if_supported("-mmacosx-version-min=10.15")
.flag_if_supported("-std=c++17")
.flag_if_supported("-O3")
.flag_if_supported("-ffast-math")
.flag_if_supported("-fcolor-diagnostics")
.flag_if_supported("-g1"); // Simplify debugging
} else if cfg!(target_os = "windows") {
} else if target_os == "windows" {
build
.flag_if_supported("/std:c++17")
.flag_if_supported("/O2")
Expand Down
2 changes: 1 addition & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class USearchConan(ConanFile):

name = "usearch"
version = "2.15.1"
version = "2.15.2"
license = "Apache-2.0"
description = "Smaller & Faster Single-File Vector Search Engine from Unum"
homepage = "https://github.com/unum-cloud/usearch"
Expand Down
2 changes: 1 addition & 1 deletion csharp/nuget/nuget-package.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<Version Condition="'$(Version)' == ''">2.15.1</Version>
<Version Condition="'$(Version)' == ''">2.15.2</Version>

<Authors>Unum</Authors>
<Company>Unum</Company>
Expand Down
5 changes: 4 additions & 1 deletion include/usearch/index.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#define USEARCH_VERSION_MAJOR 2
#define USEARCH_VERSION_MINOR 15
#define USEARCH_VERSION_PATCH 1
#define USEARCH_VERSION_PATCH 2

// Inferring C++ version
// https://stackoverflow.com/a/61552074
Expand All @@ -27,6 +27,9 @@
#define USEARCH_DEFINED_APPLE
#elif defined(__linux__)
#define USEARCH_DEFINED_LINUX
#if defined(__ANDROID_API__)
#define USEARCH_DEFINED_ANDROID
#endif
#endif

// Inferring the compiler: Clang vs GCC
Expand Down
4 changes: 2 additions & 2 deletions include/usearch/index_plugins.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -796,9 +796,9 @@ class aligned_allocator_gt {
std::size_t alignment = alignment_ak;
#if defined(USEARCH_DEFINED_WINDOWS)
return (pointer)_aligned_malloc(length_bytes, alignment);
#elif defined(USEARCH_DEFINED_APPLE)
#elif defined(USEARCH_DEFINED_APPLE) || defined(USEARCH_DEFINED_ANDROID)
// Apple Clang keeps complaining that `aligned_alloc` is only available
// with macOS 10.15 and newer, so let's use `posix_memalign` there.
// with macOS 10.15 and newer or Android API >= 28, so let's use `posix_memalign` there.
void* result = nullptr;
int status = posix_memalign(&result, alignment, length_bytes);
return status == 0 ? (pointer)result : nullptr;
Expand Down
2 changes: 1 addition & 1 deletion java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<dependency>
<groupId>cloud.unum</groupId>
<artifactId>usearch</artifactId>
<version>2.15.1</version>
<version>2.15.2</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "usearch",
"version": "2.15.1",
"version": "2.15.2",
"description": "Smaller & Faster Single-File Vector Search Engine from Unum",
"author": "Ash Vardanian (https://ashvardanian.com/)",
"license": "Apache 2.0",
Expand Down
2 changes: 1 addition & 1 deletion wasmer.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "unum/usearch"
version = "2.15.1"
version = "2.15.2"
description = "Smaller & Faster Single-File Vector Search Engine from Unum"
license = "Apache-2.0"
readme = "README.md"
Expand Down

0 comments on commit d87a65d

Please sign in to comment.