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 --releaseStructs§
- Individual
Search Request - Individual search request within a batch.
- Mobile
Collection Stats - Public statistics snapshot for a collection.
- Mobile
Graph Edge - A graph edge representing a relationship.
- Mobile
Graph Node - A graph node for knowledge graph construction.
- Mobile
Graph Store - In-memory graph store for mobile knowledge graphs.
- Mobile
Index Info - Metadata and graph index details.
- PqTrain
Config - Configuration for Product Quantization training.
- Search
Result - A search result containing an ID and similarity score.
- Traversal
Result - Traversal result from BFS.
- Veles
Collection - A collection of vectors with associated metadata.
- Veles
Database - VelesDB database instance.
- Veles
Point - A point to insert into the database.
- Veles
Sparse Vector - A sparse vector represented as parallel arrays of indices and values.
Enums§
- Distance
Metric - Distance metric for vector similarity.
- Fusion
Strategy - Fusion strategy for combining results from multiple vector searches.
- Storage
Mode - Storage mode for vector quantization (IoT/Edge optimization).
- Veles
Error - Errors that can occur when using VelesDB on mobile.