# 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.96"
name = "nidus"
version = "0.16.0"
build = false
exclude = [
    ".beads/",
    ".claude/",
    ".github/",
    "AGENTS.md",
    "justfile",
    "benchmarks/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A small, pure-Rust embeddable vector store: brute-force or ANN cosine search over a single append-only directory, with pluggable persistence (local files, S3, GCS). No SQL, no query engine; builds in seconds."
readme = "README.md"
keywords = [
    "vector",
    "embeddings",
    "search",
    "embedded",
    "database",
]
categories = [
    "database-implementations",
    "data-structures",
]
license = "MIT"
repository = "https://github.com/duckedup/nidus"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/nidus-{ target }{ archive-suffix }"
bin-dir = "nidus{ binary-ext }"
pkg-fmt = "tgz"

[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"

[features]
cli = [
    "dep:clap",
    "dep:tokio",
    "dep:axum",
    "dep:tower",
    "dep:serde_json",
    "dep:tar",
    "dep:flate2",
]

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

[[bin]]
name = "nidus"
path = "src/bin/nidus.rs"
required-features = ["cli"]

[[example]]
name = "demo"
path = "examples/demo.rs"

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

[dependencies.anyhow]
version = "1"

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.bincode]
version = "1"

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.crc32fast]
version = "1"

[dependencies.flate2]
version = "1"
features = ["rust_backend"]
optional = true
default-features = false

[dependencies.http]
version = "1"

[dependencies.redis]
version = "1"
features = ["tls-rustls"]
default-features = false

[dependencies.rusty-s3]
version = "0.9"

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

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.tame-gcs]
version = "0.14"

[dependencies.tame-oauth]
version = "0.10"

[dependencies.tar]
version = "0.4"
optional = true

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "net",
    "signal",
]
optional = true

[dependencies.tower]
version = "0.5"
optional = true

[dependencies.ureq]
version = "3"

[dependencies.url]
version = "2"

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

[profile.release]
lto = "thin"
codegen-units = 1
