docs.rs failed to build zvec-bindings-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
zvec-bindings
Idiomatic Rust bindings for zvec, an open-source in-process vector database built on Alibaba's Proxima engine.
Features
- Full API coverage matching the Python bindings
- Safe Rust API with proper error handling (
Result<T, Error>) - Support for dense and sparse vectors
- HNSW, IVF, and FLAT index types
- Static linking for easy deployment
- Optional thread-safe API via
syncfeature
Installation
Add to your Cargo.toml:
[]
= "0.1"
Prerequisites
- Linux x86_64 or macOS ARM64
- CMake 3.13+
- C++17 compiler (GCC 9+ or Clang 10+)
- Rust 1.70+
Usage
Basic Example
use ;
Thread-Safe Usage (Feature: sync)
For multi-threaded applications, enable the sync feature:
[]
= { = "0.1", = ["sync"] }
Feature Flags
| Feature | Description |
|---|---|
sync |
Enables SharedCollection for thread-safe multi-threaded access |
static |
Statically links the zvec C++ library |
API Coverage
- Collection operations:
create_and_open,open,flush,destroy - DML:
insert,upsert,update,delete,delete_by_filter - DQL:
query,group_by_query,fetch - DDL:
create_index,drop_index,optimize - Index types: HNSW, IVF, FLAT, INVERT
- Data types: scalar types, dense vectors, sparse vectors
License
Apache-2.0