Skip to main content

Crate velesdb_mobile

Crate velesdb_mobile 

Source
Expand description

VelesDB Mobile - Native bindings for iOS and Android

This crate provides UniFFI bindings for VelesDB, enabling native integration with Swift (iOS) and Kotlin (Android) applications.

§Architecture

  • iOS: Generates Swift bindings + XCFramework (arm64 device, arm64/x86_64 simulator)
  • Android: Generates Kotlin bindings + AAR (arm64-v8a, armeabi-v7a, x86_64)

§Build Commands

# iOS
cargo build --release --target aarch64-apple-ios
cargo build --release --target aarch64-apple-ios-sim

# Android (requires NDK)
cargo ndk -t arm64-v8a -t armeabi-v7a -t x86_64 build --release

Structs§

IndividualSearchRequest
Individual search request within a batch.
MobileCollectionStats
Public statistics snapshot for a collection.
MobileGraphEdge
A graph edge representing a relationship.
MobileGraphNode
A graph node for knowledge graph construction.
MobileGraphStore
In-memory graph store for mobile knowledge graphs.
MobileIndexInfo
Metadata and graph index details.
PqTrainConfig
Configuration for Product Quantization training.
SearchResult
A search result containing an ID and similarity score.
TraversalResult
Traversal result from BFS.
VelesCollection
A collection of vectors with associated metadata.
VelesDatabase
VelesDB database instance.
VelesPoint
A point to insert into the database.
VelesSparseVector
A sparse vector represented as parallel arrays of indices and values.

Enums§

DistanceMetric
Distance metric for vector similarity.
FusionStrategy
Fusion strategy for combining results from multiple vector searches.
StorageMode
Storage mode for vector quantization (IoT/Edge optimization).
VelesError
Errors that can occur when using VelesDB on mobile.