[package]
name = "zvec"
version = "0.1.0"
edition = "2021"
rust-version = "1.75"
license = "Apache-2.0"
description = "Rust bindings to zvec, an in-process vector database by Alibaba."
repository = "https://github.com/oly-wan-kenobi/zvec-rs"
documentation = "https://docs.rs/zvec"
homepage = "https://github.com/oly-wan-kenobi/zvec-rs"
readme = "README.md"
keywords = ["vector", "database", "embedding", "ann", "ffi"]
categories = ["api-bindings", "database"]
links = "zvec_c_api"
exclude = [
"/.github",
"/target",
"/zvec-derive/target",
"/CHANGELOG.md",
"/PUBLISHING.md",
"/scripts",
]
[workspace]
members = [".", "zvec-derive"]
[features]
default = []
pkg-config = ["dep:pkg-config"]
bundled = ["dep:ureq", "dep:zip", "dep:sha2"]
serde-json = ["dep:serde_json"]
half = ["dep:half"]
tokio = ["dep:tokio"]
derive = ["dep:zvec-derive"]
[dependencies]
serde_json = { version = "1", optional = true }
half = { version = "2", optional = true }
tokio = { version = "1", default-features = false, features = ["rt"], optional = true }
zvec-derive = { version = "0.1", path = "zvec-derive", optional = true }
[dev-dependencies]
tokio = { version = "1", default-features = false, features = ["rt-multi-thread", "macros"] }
[build-dependencies]
bindgen = "0.70"
pkg-config = { version = "0.3", optional = true }
ureq = { version = "2.10", default-features = false, features = ["tls"], optional = true }
zip = { version = "2.2", default-features = false, features = ["deflate"], optional = true }
sha2 = { version = "0.10", optional = true }
[[example]]
name = "version"
path = "examples/version.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "semantic_search"
path = "examples/semantic_search.rs"
[[example]]
name = "hybrid_search"
path = "examples/hybrid_search.rs"
[[example]]
name = "json_ingest"
path = "examples/json_ingest.rs"
required-features = ["serde-json"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]