# 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.2.1"
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"
documentation = "https://docs.rs/nodedb-vector"
readme = "README.md"
keywords = [
    "vector",
    "hnsw",
    "vamana",
    "ann",
    "similarity-search",
]
categories = [
    "algorithms",
    "science",
]
license = "Apache-2.0"
repository = "https://github.com/NodeDB-Lab/nodedb"
resolver = "2"

[features]
acorn-baseline = []
default = []

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

[[test]]
name = "collection_bitmap_filter"
path = "tests/collection_bitmap_filter.rs"

[[test]]
name = "collection_checkpoint_tombstones"
path = "tests/collection_checkpoint_tombstones.rs"

[[test]]
name = "collection_compact_doc_map"
path = "tests/collection_compact_doc_map.rs"

[[test]]
name = "collection_pq_config"
path = "tests/collection_pq_config.rs"

[[test]]
name = "hnsw_checkpoint_encryption"
path = "tests/hnsw_checkpoint_encryption.rs"

[[test]]
name = "hnsw_layer_cap"
path = "tests/hnsw_layer_cap.rs"

[[test]]
name = "mmap_segment_madvise"
path = "tests/mmap_segment_madvise.rs"

[[test]]
name = "quantize_kmeans_distribution"
path = "tests/quantize_kmeans_distribution.rs"

[[test]]
name = "simd_length_safety"
path = "tests/simd_length_safety.rs"

[dependencies.arc-swap]
version = "1"

[dependencies.crc32c]
version = "0.6"

[dependencies.libc]
version = "0.2"

[dependencies.memmap2]
version = "0.9"

[dependencies.nodedb-codec]
version = "0.2"

[dependencies.nodedb-mem]
version = "0.2"

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

[dependencies.nodedb-wal]
version = "0.2"

[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.5"
features = [
    "std",
    "derive",
]

[dev-dependencies.libc]
version = "0.2"

[dev-dependencies.nodedb-wal]
version = "0.2"

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

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