knot 1.3.13

Codebase Graph + Vector RAG Indexer for Java, TypeScript, JavaScript, Kotlin, Rust, Python, Groovy, C/C++, Build Systems, and HTML/CSS codebases
Documentation
[package]
name = "knot"
version = "1.3.13"
edition = "2024"
description = "Codebase Graph + Vector RAG Indexer for Java, TypeScript, JavaScript, Kotlin, Rust, Python, Groovy, C/C++, Build Systems, and HTML/CSS codebases"
authors = ["Raul Tovar <raultov@protonmail.com>"]
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"]
only-clients = []

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

[dependencies]
# --- Async Runtime ---
tokio = { version = "1", features = ["full"] }

# --- CPU-bound Parallelism ---
rayon = "1"

# --- Filesystem Traversal ---
ignore = "0.4"
walkdir = "2"
notify = "6.1.1"
notify-debouncer-mini = "0.4.1"

# --- Tree-sitter Parsing ---
tree-sitter = "0.26"
tree-sitter-java = "0.23"
tree-sitter-typescript = "0.23"
tree-sitter-javascript = "0.23"
tree-sitter-kotlin-ng = "1.1.0"
tree-sitter-html = "0.23"
tree-sitter-css = "0.23"
tree-sitter-scss = "1.0"
tree-sitter-rust = "0.24"
tree-sitter-python = "0.23"
tree-sitter-groovy = "0.1.2"
tree-sitter-c = "0.23"
tree-sitter-cpp = "0.23"

# --- Local Embeddings ---
fastembed = { version = "5", default-features = false, features = ["ort-download-binaries", "hf-hub-native-tls", "image-models"], optional = true }
ort = { version = "2.0.0-rc.11", features = ["download-binaries", "copy-dylibs", "ndarray"], optional = true }

# --- Vector Database ---
qdrant-client = "1"

# --- Graph Database ---
neo4rs = "0.9.0-rc.9"

# --- Unique Identifiers ---
uuid = { version = "1", features = ["v4", "v5", "serde"] }

# --- Cryptographic Hashing ---
sha2 = "0.10"

# --- Configuration & CLI ---
clap = { version = "4", features = ["derive", "env"] }
dotenvy = "0.15"

# --- Output Formatting ---
comfy-table = "7.1"
colored = "2.1"

# --- Serialization ---
serde = { version = "1", features = ["derive"] }
serde_json = "1"

# --- XML Parsing (Maven pom.xml) ---
roxmltree = "0.21"

# --- TOML Parsing (Cargo.toml) ---
toml = "0.8"

# --- YAML Parsing (Config, Helm, K8s) ---
serde_yaml = "0.9"

# --- Error Handling ---
anyhow = "1"

# --- Streaming iterator ---
streaming-iterator = "0.1"

# --- Logging & Tracing ---
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] }

# --- MCP Server SDK ---
rust-mcp-sdk = "0.8.3"
async-trait = "0.1"

[dev-dependencies]
tempfile = "3.10"
criterion = "0.4"

[[bench]]
name = "token_tree_bench"
harness = false

[[bench]]
name = "pipeline_bench"
harness = false

[[bench]]
name = "graph_upsert_bench"
harness = false

[[bench]]
name = "channel_backpressure_bench"
harness = false

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

# The profile that 'dist' will build with
[profile.dist]
inherits = "release"
lto = "thin"