# 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"
rust-version = "1.89"
name = "rag-rat-core"
version = "0.4.0"
authors = ["Kristaps Karlsons"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Repository evidence engine for source chunks, symbols, graph edges, Git history, GitHub rationale, and source-bound memories."
readme = "README.md"
keywords = [
    "rag",
    "mcp",
    "code-search",
    "tree-sitter",
    "embeddings",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/cq27-dev/rag-rat"

[features]
default = [
    "fastembed",
    "model2vec",
]
fastembed = ["dep:fastembed"]
model2vec = ["dep:model2vec-rs"]

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

[[bench]]
name = "index_time"
path = "benches/index_time.rs"
harness = false

[[bench]]
name = "rag_pipeline"
path = "benches/rag_pipeline.rs"
harness = false

[dependencies.anyhow]
version = "1.0"

[dependencies.fastembed]
version = "5.1.0"
features = [
    "hf-hub-rustls-tls",
    "ort-download-binaries-rustls-tls",
]
optional = true
default-features = false

[dependencies.gix]
version = "0.84.0"
features = [
    "status",
    "parallel",
    "sha1",
]
default-features = false

[dependencies.model2vec-rs]
version = "0.2.1"
features = [
    "hf-hub",
    "fancy-regex",
]
optional = true
default-features = false

[dependencies.notify]
version = "8.2.0"

[dependencies.rayon]
version = "1.11"

[dependencies.regex]
version = "1.11"

[dependencies.rusqlite]
version = "0.40"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.11"

[dependencies.thiserror]
version = "2.0"

[dependencies.toml]
version = "1.1"

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

[dependencies.tree-sitter-c]
version = "=0.24.2"

[dependencies.tree-sitter-cpp]
version = "=0.23.4"

[dependencies.tree-sitter-kotlin]
version = "1.1.0"
package = "tree-sitter-kotlin-ng"

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

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

[dev-dependencies.criterion]
version = "0.5"
default-features = false

[dev-dependencies.iai-callgrind]
version = "0.16"

[target."cfg(unix)".dependencies.libc]
version = "0.2"
