# 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 = "rtk-context-index"
version = "2.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "RTK — code graph indexing, symbols navigation, and blast radius impact analyzer"
readme = false
license = "Apache-2.0"
repository = "https://github.com/andreafinazziinfo/rust-context-engine"

[features]
default = []
embeddings = [
    "dep:tract-onnx",
    "dep:tokenizers",
    "dep:ndarray",
]
onnx-coreml = [
    "embeddings",
    "ort",
    "ort/coreml",
]
onnx-cuda = [
    "embeddings",
    "ort",
    "ort/cuda",
]
onnx-directml = [
    "embeddings",
    "ort",
    "ort/directml",
]
ort = ["dep:ort"]

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

[dependencies.anyhow]
version = "1"

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

[dependencies.ort]
version = "2.0.0-rc.9"
optional = true
default-features = false

[dependencies.petgraph]
version = "0.6"

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

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

[dependencies.serde_json]
version = "1"

[dependencies.tokenizers]
version = "0.19.1"
optional = true

[dependencies.tract-onnx]
version = "0.21.8"
optional = true

[dependencies.tree-sitter]
version = "0.22"

[dependencies.tree-sitter-go]
version = "0.21"

[dependencies.tree-sitter-javascript]
version = "0.21"

[dependencies.tree-sitter-python]
version = "0.21"

[dependencies.tree-sitter-rust]
version = "0.21"

[dependencies.tree-sitter-typescript]
version = "0.21"
