# 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 = "skardi"
version = "0.3.0"
authors = ["btnokami"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High performance query engine for both offline compute and online serving"
homepage = "https://github.com/SkardiLabs/skardi"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/SkardiLabs/skardi"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
candle = [
    "dep:candle-core",
    "dep:candle-nn",
    "dep:candle-transformers",
    "dep:tokenizers",
]
default = []
embedding = [
    "onnx",
    "candle",
    "gguf",
    "remote-embed",
]
gguf = ["dep:llama-cpp-4"]
onnx = [
    "dep:ort",
    "dep:ndarray",
    "dep:num_cpus",
]
remote-embed = ["dep:reqwest"]

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

[dependencies.anyhow]
version = "1.0.98"

[dependencies.arrow]
version = "57.0.1"
features = [
    "prettyprint",
    "chrono-tz",
]

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

[dependencies.candle-core]
version = "0.8"
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.datafusion]
version = "52.1.0"
features = [
    "nested_expressions",
    "datetime_expressions",
    "regex_expressions",
    "string_expressions",
    "unicode_expressions",
    "compression",
    "parquet",
    "recursive_protection",
    "sql",
]
default-features = false

[dependencies.datafusion-common]
version = "52.1.0"

[dependencies.datafusion-federation]
version = "=0.5.1"

[dependencies.datafusion-table-providers]
version = "0.10.0"
features = [
    "postgres",
    "mysql",
]
default-features = false

[dependencies.derivative]
version = "2.2.0"

[dependencies.futures]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.iceberg]
version = "0.9.0"

[dependencies.iceberg-datafusion]
version = "0.9.0"

[dependencies.iceberg-storage-opendal]
version = "0.9.0"

[dependencies.lance]
version = "4.0.0"
default-features = false

[dependencies.lance-index]
version = "4.0.0"

[dependencies.llama-cpp-4]
version = "0.2"
optional = true

[dependencies.log]
version = "0.4.27"

[dependencies.mongodb]
version = "3.1"

[dependencies.mysql_async]
version = "0.36"

[dependencies.ndarray]
version = "0.17"
optional = true

[dependencies.num_cpus]
version = "1.17.0"
optional = true

[dependencies.ort]
version = "2.0.0-rc.12"
features = [
    "std",
    "ndarray",
    "download-binaries",
    "tls-rustls",
]
optional = true
default-features = false

[dependencies.percent-encoding]
version = "2.3"

[dependencies.pgvector]
version = "0.4"
features = ["sqlx"]

[dependencies.redis]
version = "1.0.0-rc.2"
features = ["cluster"]
default-features = false

[dependencies.regex]
version = "1.8"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
optional = true
default-features = false

[dependencies.secrecy]
version = "0.10"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.sqlparser]
version = "0.53"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "tls-rustls",
    "postgres",
]
default-features = false

[dependencies.thiserror]
version = "2.0"

[dependencies.tokenizers]
version = "0.21"
features = ["onig"]
optional = true
default-features = false

[dependencies.tokio]
version = "1.44.2"
features = [
    "macros",
    "rt",
    "sync",
]

[dependencies.tokio-rusqlite]
version = "0.7"
features = [
    "bundled",
    "load_extension",
]

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2.5.4"

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

[dev-dependencies.gguf-rs-lib]
version = "0.2"

[dev-dependencies.redis-test]
version = "0.13.0"

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

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