# 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.88"
name = "brainwires-rag"
version = "0.1.0"
authors = ["Brainwires"]
build = false
exclude = [
    ".github/",
    ".cache/",
    "docs/adr/",
    "CLAUDE.md",
    "CONTRIBUTING.md",
    "TESTING.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "RAG-based codebase indexing and semantic search library for the Brainwires Agent Framework"
homepage = "https://github.com/Brainwires/brainwires-framework"
documentation = "https://docs.rs/brainwires-rag"
readme = "README.md"
keywords = [
    "mcp",
    "rag",
    "embeddings",
    "semantic-search",
    "code-analysis",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Brainwires/brainwires-framework"
resolver = "2"

[features]
alt-folder-name = []
default = [
    "native",
    "lancedb-backend",
    "tree-sitter-languages",
]
documents = [
    "dep:brainwires-core",
    "dep:zip",
    "dep:uuid",
]
lancedb-backend = []
native = [
    "dep:rmcp",
    "dep:schemars",
    "dep:lancedb",
    "dep:arrow-array",
    "dep:arrow-schema",
    "dep:futures",
    "dep:fastembed",
    "dep:tantivy",
    "dep:git2",
    "dep:async-trait",
    "dep:walkdir",
    "dep:dirs",
    "dep:sha2",
    "dep:ignore",
    "dep:globset",
    "dep:tree-sitter",
    "dep:tracing-subscriber",
    "dep:toml",
    "pdf-extract",
    "dep:rayon",
    "dep:tokio-util",
    "dep:fs2",
    "tokio/full",
    "documents",
]
pdf-extract = ["dep:pdf-extract"]
qdrant-backend = ["qdrant-client"]
stack-graphs = []
tree-sitter-languages = [
    "dep:tree-sitter",
    "dep:tree-sitter-rust",
    "dep:tree-sitter-python",
    "dep:tree-sitter-javascript",
    "dep:tree-sitter-typescript",
    "dep:tree-sitter-go",
    "dep:tree-sitter-java",
    "dep:tree-sitter-swift",
    "dep:tree-sitter-c",
    "dep:tree-sitter-cpp",
    "dep:tree-sitter-c-sharp",
    "dep:tree-sitter-ruby",
    "dep:tree-sitter-php",
]
wasm = []

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

[[example]]
name = "advanced_search"
path = "examples/advanced_search.rs"
required-features = ["native"]

[[example]]
name = "basic_indexing"
path = "examples/basic_indexing.rs"
required-features = ["native"]

[[example]]
name = "git_search"
path = "examples/git_search.rs"
required-features = ["native"]

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.arrow-array]
version = "56.2"
optional = true

[dependencies.arrow-schema]
version = "56.2"
optional = true

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

[dependencies.brainwires-core]
version = "0.1.0"
optional = true

[dependencies.chrono]
version = "0.4"

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

[dependencies.dirs]
version = "6"
optional = true

[dependencies.fastembed]
version = "5.1"
optional = true

[dependencies.fs2]
version = "0.4"
optional = true

[dependencies.futures]
version = "0.3"
optional = true

[dependencies.git2]
version = "0.19"
optional = true

[dependencies.globset]
version = "0.4"
optional = true

[dependencies.ignore]
version = "0.4"
optional = true

[dependencies.lancedb]
version = "0.23"
optional = true

[dependencies.pdf-extract]
version = "0.7"
optional = true

[dependencies.qdrant-client]
version = "1.15"
optional = true

[dependencies.rayon]
version = "1.10"
optional = true

[dependencies.regex]
version = "1.10"

[dependencies.rmcp]
version = "0.8"
features = [
    "server",
    "transport-io",
    "macros",
]
optional = true

[dependencies.schemars]
version = "1.0"
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.tantivy]
version = "0.22"
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.43"
features = [
    "sync",
    "time",
]

[dependencies.tokio-util]
version = "0.7"
optional = true

[dependencies.toml]
version = "0.8"
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
optional = true

[dependencies.tree-sitter]
version = "0.25"
optional = true

[dependencies.tree-sitter-c]
version = "0.24"
optional = true

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

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

[dependencies.tree-sitter-go]
version = "0.23"
optional = true

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

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

[dependencies.tree-sitter-php]
version = "0.24"
optional = true

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

[dependencies.tree-sitter-ruby]
version = "0.23"
optional = true

[dependencies.tree-sitter-rust]
version = "0.23"
optional = true

[dependencies.tree-sitter-swift]
version = "0.7"
optional = true

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

[dependencies.uuid]
version = "1"
features = ["v4"]
optional = true

[dependencies.walkdir]
version = "2.5"
optional = true

[dependencies.zip]
version = "8"
optional = true

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

[dev-dependencies.filetime]
version = "0.2"

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