# 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 = "insights"
version = "0.16.0-dev.12"
authors = ["Voxel <travelsizedlions@gmail.com>"]
build = false
exclude = [
    "shell/",
    ".forgejo/",
    ".envrc",
    "lefthook.yml",
    "manifest.json",
    "ops.lock",
    "tarpaulin.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Knowledge management and insight storage system"
readme = "README.md"
keywords = [
    "knowledge-management",
    "cli",
    "search",
    "embeddings",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT"
repository = "https://creature-workshop.kernelle-soft.com/kernelle-soft/insights"

[features]
default = []
download-onnx-binaries = ["ort?/download-binaries"]
ml-features = [
    "dep:lancedb",
    "dep:arrow",
    "dep:arrow-json",
    "dep:ort",
    "dep:ndarray",
    "dep:tokenizers",
    "dep:hf-hub",
    "dep:safetensors",
]

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

[[bin]]
name = "insights"
path = "src/main.rs"

[[bin]]
name = "insights_server"
path = "src/bin/insights_server.rs"

[[bin]]
name = "install_insights_cuda_dependencies"
path = "src/bin/install_insights_cuda_dependencies.rs"

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

[dependencies.anyhow]
version = "1.0"

[dependencies.arrow]
version = "58"
features = ["json"]
optional = true

[dependencies.arrow-json]
version = "58"
optional = true

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

[dependencies.axum]
version = "0.8"
features = ["macros"]

[dependencies.bentley]
version = "0.14"
features = [
    "daemon-logs",
    "schemars",
]

[dependencies.blizz]
version = "2.0.1"

[dependencies.chrono]
version = "0.4"
features = [
    "now",
    "serde",
    "std",
]
default-features = false

[dependencies.clap]
version = "4.5"
features = [
    "derive",
    "env",
]

[dependencies.colored]
version = "3.0"

[dependencies.dirs]
version = "6.0"

[dependencies.futures]
version = "0.3"

[dependencies.hf-hub]
version = "0.5"
features = ["tokio"]
optional = true
default-features = false

[dependencies.lancedb]
version = "0.27.0"
optional = true
default-features = false

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

[dependencies.once_cell]
version = "1.17"

[dependencies.ort]
version = "2.0.0-rc.10"
features = [
    "fetch-models",
    "cuda",
    "coreml",
    "ndarray",
    "std",
]
optional = true
default-features = false

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

[dependencies.safetensors]
version = "0.7"
optional = true

[dependencies.schemars]
version = "1.2"
features = [
    "uuid1",
    "chrono04",
]

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

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

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

[dependencies.tower]
version = "0.5"

[dependencies.tower-http]
version = "0.6"
features = [
    "cors",
    "trace",
]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dependencies.url]
version = "2.5"

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

[dev-dependencies.assert_cmd]
version = "2.0"

[dev-dependencies.assert_fs]
version = "1.1"

[dev-dependencies.mockall]
version = "0.14"

[dev-dependencies.predicates]
version = "3.1"

[dev-dependencies.serial_test]
version = "3.2"

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

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(tarpaulin_include)"]
