# 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 = "2021"
name = "next-plaid"
version = "1.0.7"
authors = ["Raphael Sourty, LightOn"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CPU-based PLAID implementation for multi-vector search using ndarray"
homepage = "https://github.com/lightonai/next-plaid"
documentation = "https://docs.rs/next-plaid"
readme = "README.md"
keywords = [
    "search",
    "multi-vector",
    "plaid",
    "colbert",
    "ndarray",
]
categories = [
    "science",
    "algorithms",
]
license = "Apache-2.0"
repository = "https://github.com/lightonai/next-plaid"

[features]
accelerate = [
    "blas-src",
    "accelerate-src",
    "ndarray/blas",
    "fastkmeans-rs/accelerate",
]
cuda = [
    "fastkmeans-rs/cuda",
    "dep:cudarc",
]
default = []
openblas = [
    "blas-src",
    "openblas-src",
    "ndarray/blas",
    "fastkmeans-rs/openblas",
]

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

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

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

[dependencies.accelerate-src]
version = "0.3"
optional = true

[dependencies.blas-src]
version = "0.14"
optional = true

[dependencies.byteorder]
version = "1.5"

[dependencies.cudarc]
version = "0.12"
features = [
    "cuda-version-from-build-system",
    "cublas",
    "dynamic-linking",
]
optional = true

[dependencies.fastkmeans-rs]
version = "0.1.7"

[dependencies.fs2]
version = "0.4"

[dependencies.half]
version = "2.4"

[dependencies.memmap2]
version = "0.9"

[dependencies.ndarray]
version = "0.16"
features = ["rayon"]

[dependencies.ndarray-npy]
version = "0.9.1"

[dependencies.ndarray-rand]
version = "0.15"

[dependencies.num-traits]
version = "0.2"

[dependencies.openblas-src]
version = "0.10"
features = [
    "cblas",
    "system",
]
optional = true

[dependencies.rand]
version = "0.8"

[dependencies.rand_chacha]
version = "0.3"

[dependencies.rayon]
version = "1.10"

[dependencies.regex]
version = "1.11"

[dependencies.rusqlite]
version = "0.38"
features = [
    "bundled",
    "functions",
]

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dev-dependencies.approx]
version = "0.5"

[dev-dependencies.criterion]
version = "0.8.1"
features = ["html_reports"]

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