# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.94"
name = "nodedb-vector"
version = "0.0.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared vector engine (HNSW index + distance functions) for NodeDB Origin and Lite"
homepage = "https://nodedb.dev"
readme = "README.md"
license = "BUSL-1.1"
repository = "https://github.com/NodeDB-Lab/nodedb"
resolver = "2"

[features]
collection = [
    "simd",
    "ivf",
    "dep:memmap2",
    "dep:libc",
]
default = []
ivf = []
simd = []

[lib]
name = "nodedb_vector"
path = "src/lib.rs"

[dependencies.libc]
version = "0.2"
optional = true

[dependencies.memmap2]
version = "0.9"
optional = true

[dependencies.nodedb-types]
version = "0"

[dependencies.rkyv]
version = "0.8"
features = ["alloc"]

[dependencies.roaring]
version = "0.11"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.thiserror]
version = "2.0"

[dependencies.tracing]
version = "0.1"

[dependencies.zerompk]
version = "0.3"
features = [
    "std",
    "derive",
]

[dev-dependencies.rand]
version = "0.9"

[dev-dependencies.tempfile]
version = "3"
