# 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 = "aagt-qmd"
version = "0.2.2"
authors = ["AAGT Team"]
build = false
exclude = [
    "models",
    "*.db",
    "*.onnx",
    "*.safetensors",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "QMD-inspired hybrid search engine for AAGT - SQLite FTS5 + Vector + Content-Addressable Storage"
readme = false
license = "MIT OR Apache-2.0"

[features]
cuda = [
    "candle-core/cuda",
    "candle-nn/cuda",
]
default = ["fts"]
fts = []
full = [
    "fts",
    "vector",
]
metal = [
    "candle-core/metal",
    "candle-nn/metal",
]
vector = [
    "tokenizers",
    "hnsw_rs",
    "bincode",
    "candle-core",
    "candle-nn",
    "candle-transformers",
]

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.async-trait]
version = "0.1"

[dependencies.bincode]
version = "1.3"
optional = true

[dependencies.candle-core]
version = "0.8"
features = []
optional = true

[dependencies.candle-nn]
version = "0.8"
optional = true

[dependencies.candle-transformers]
version = "0.8"
optional = true

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.glob]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.hnsw_rs]
version = "0.3"
optional = true

[dependencies.rusqlite]
version = "0.31"
features = [
    "bundled",
    "hooks",
]

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "1.0"

[dependencies.tokenizers]
version = "0.19"
features = ["onig"]
optional = true

[dependencies.tokio]
version = "1.35"
features = ["full"]

[dependencies.tracing]
version = "0.1"

[dependencies.ureq]
version = "=2.10.1"

[dependencies.uuid]
version = "1.6"
features = [
    "v4",
    "serde",
]

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

[dev-dependencies.tokio-test]
version = "0.4"

[dev-dependencies.tracing-subscriber]
version = "0.3"
