# 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 = "knot"
version = "1.4.8"
authors = ["Raul Tovar <raultov@protonmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Codebase Graph + Vector RAG Indexer for Java, TypeScript, JavaScript, Kotlin, Rust, Python, Groovy, C/C++, Build Systems, and HTML/CSS codebases"
readme = "README.md"
license = "MIT"
repository = "https://github.com/raultov/knot"

[package.metadata.wix]
upgrade-guid = "92E1E683-D44D-4270-A4E6-4332677DC7B1"
path-guid = "577497D8-48AD-474A-B0C7-FF85F4EB383E"
license = false
eula = false

[features]
default = ["indexer"]
indexer = [
    "dep:fastembed",
    "dep:ort",
]

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

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

[[bin]]
name = "knot-indexer"
path = "src/bin/knot-indexer.rs"
required-features = ["indexer"]

[[bin]]
name = "knot-mcp"
path = "src/bin/knot-mcp.rs"

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

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

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

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

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

[dependencies.anyhow]
version = "1"

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

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

[dependencies.colored]
version = "2.1"

[dependencies.comfy-table]
version = "7.1"

[dependencies.dotenvy]
version = "0.15"

[dependencies.fastembed]
version = "5"
features = [
    "ort-download-binaries",
    "hf-hub-native-tls",
    "image-models",
]
optional = true
default-features = false

[dependencies.ignore]
version = "0.4"

[dependencies.neo4rs]
version = "0.9.0-rc.9"

[dependencies.notify]
version = "6.1.1"

[dependencies.notify-debouncer-mini]
version = "0.4.1"

[dependencies.ort]
version = "2.0.0-rc.11"
features = [
    "download-binaries",
    "copy-dylibs",
    "ndarray",
]
optional = true

[dependencies.qdrant-client]
version = "1"

[dependencies.rayon]
version = "1"

[dependencies.roxmltree]
version = "0.21"

[dependencies.rust-mcp-sdk]
version = "0.8.3"

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.sha2]
version = "0.10"

[dependencies.streaming-iterator]
version = "0.1"

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

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

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

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

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

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

[dependencies.tree-sitter-css]
version = "0.23"

[dependencies.tree-sitter-groovy]
version = "0.1.2"

[dependencies.tree-sitter-html]
version = "0.23"

[dependencies.tree-sitter-java]
version = "0.23"

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

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

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

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

[dependencies.tree-sitter-scss]
version = "1.0"

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

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

[dependencies.walkdir]
version = "2"

[dev-dependencies.criterion]
version = "0.4"

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

[profile.dist]
lto = "thin"
inherits = "release"

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
