# 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"
name = "sapphire-retrieve"
version = "0.9.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Document retrieval and semantic search library with SQLite (FTS5/sqlite-vec) and LanceDB backends"
readme = "README.md"
keywords = [
    "search",
    "retrieval",
    "embeddings",
    "sqlite",
    "lancedb",
]
categories = ["database"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/fluo10/sapphire-workspace"

[features]
default = [
    "sqlite-store",
    "lancedb-store",
    "fastembed-embed",
]
fastembed-embed = ["dep:fastembed"]
lancedb-store = [
    "dep:lancedb",
    "dep:arrow-array",
    "dep:arrow-schema",
    "dep:futures",
]
sqlite-store = [
    "dep:rusqlite",
    "dep:sqlite-vec",
]

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

[dependencies.arrow-array]
version = "57"
optional = true

[dependencies.arrow-schema]
version = "57"
optional = true

[dependencies.fastembed]
version = "5.13"
optional = true

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

[dependencies.lancedb]
version = "0.27"
optional = true

[dependencies.rusqlite]
version = "0.39"
features = ["bundled"]
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.sqlite-vec]
version = "0.1"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["rt-multi-thread"]

[dependencies.ureq]
version = "3.3"
features = ["json"]
