# 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"
rust-version = "1.93"
name = "cqs"
version = "0.19.0"
build = false
exclude = [
    ".claude/",
    ".githooks/",
    "CLAUDE.md",
    "PROJECT_CONTINUITY.md",
    "ROADMAP.md",
    "docs/AUDIT_*",
    "docs/DESIGN_SPEC_*",
    "docs/notes.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Code intelligence and RAG for AI agents. Semantic search, call graphs, impact analysis, type dependencies, and smart context assembly — in single tool calls. 20 languages, 90.9% Recall@1, 0.951 NDCG@10. Local ML, GPU-accelerated."
homepage = "https://github.com/jamie8johnson/cqs"
readme = "README.md"
keywords = [
    "code-intelligence",
    "rag",
    "code-search",
    "call-graph",
    "embeddings",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/jamie8johnson/cqs"

[features]
convert = [
    "dep:fast_html2md",
    "dep:walkdir",
]
default = [
    "lang-rust",
    "lang-python",
    "lang-typescript",
    "lang-javascript",
    "lang-go",
    "lang-c",
    "lang-cpp",
    "lang-java",
    "lang-csharp",
    "lang-fsharp",
    "lang-powershell",
    "lang-scala",
    "lang-ruby",
    "lang-bash",
    "lang-hcl",
    "lang-kotlin",
    "lang-swift",
    "lang-objc",
    "lang-sql",
    "lang-markdown",
    "convert",
]
encrypt = ["keyring"]
gpu-index = [
    "cuvs",
    "ndarray_015",
]
lang-all = [
    "lang-rust",
    "lang-python",
    "lang-typescript",
    "lang-javascript",
    "lang-go",
    "lang-c",
    "lang-cpp",
    "lang-java",
    "lang-csharp",
    "lang-fsharp",
    "lang-powershell",
    "lang-scala",
    "lang-ruby",
    "lang-bash",
    "lang-hcl",
    "lang-kotlin",
    "lang-swift",
    "lang-objc",
    "lang-sql",
    "lang-markdown",
]
lang-bash = ["dep:tree-sitter-bash"]
lang-c = ["dep:tree-sitter-c"]
lang-cpp = ["dep:tree-sitter-cpp"]
lang-csharp = ["dep:tree-sitter-c-sharp"]
lang-fsharp = ["dep:tree-sitter-fsharp"]
lang-go = ["dep:tree-sitter-go"]
lang-hcl = ["dep:tree-sitter-hcl"]
lang-java = ["dep:tree-sitter-java"]
lang-javascript = ["dep:tree-sitter-javascript"]
lang-kotlin = ["dep:tree-sitter-kotlin"]
lang-markdown = []
lang-objc = ["dep:tree-sitter-objc"]
lang-powershell = ["dep:tree-sitter-powershell"]
lang-python = ["dep:tree-sitter-python"]
lang-ruby = ["dep:tree-sitter-ruby"]
lang-rust = ["dep:tree-sitter-rust"]
lang-scala = ["dep:tree-sitter-scala"]
lang-sql = ["dep:tree-sitter-sql"]
lang-swift = ["dep:tree-sitter-swift"]
lang-typescript = ["dep:tree-sitter-typescript"]

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

[[bin]]
name = "cqs"
path = "src/main.rs"

[[example]]
name = "bench_embed"
path = "examples/bench_embed.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.blake3]
version = "1"

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

[dependencies.chrono]
version = "0.4"

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

[dependencies.clap_complete]
version = "4"

[dependencies.colored]
version = "3"

[dependencies.crossbeam-channel]
version = "0.5"

[dependencies.ctrlc]
version = "3"

[dependencies.cuvs]
version = "26.2"
optional = true

[dependencies.dirs]
version = "6"

[dependencies.dunce]
version = "1"

[dependencies.fast_html2md]
version = "0.0"
optional = true

[dependencies.globset]
version = "0.4"

[dependencies.hf-hub]
version = "0.4.3"

[dependencies.hnsw_rs]
version = "0.3"

[dependencies.ignore]
version = "0.4"

[dependencies.indicatif]
version = "0.18"

[dependencies.keyring]
version = "3"
optional = true

[dependencies.lru]
version = "0.16"

[dependencies.ndarray]
version = "0.17"

[dependencies.ndarray_015]
version = "0.15"
optional = true
package = "ndarray"

[dependencies.notify]
version = "8"
features = ["serde"]

[dependencies.once_cell]
version = "1"

[dependencies.ort]
version = "2.0.0-rc.11"
features = [
    "cuda",
    "tensorrt",
]

[dependencies.rand]
version = "0.10"

[dependencies.rayon]
version = "1"

[dependencies.regex]
version = "1"

[dependencies.self_cell]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.shell-words]
version = "1"

[dependencies.simsimd]
version = "6"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "sqlite",
]
default-features = false

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2"

[dependencies.tokenizers]
version = "0.22"
features = ["http"]

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "time",
]

[dependencies.toml]
version = "1.0"

[dependencies.tracing]
version = "0.1"

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

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

[dependencies.tree-sitter-bash]
version = "0.23"
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-fsharp]
version = "0.1"
optional = true

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

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

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

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

[dependencies.tree-sitter-kotlin]
version = "1.1"
optional = true
package = "tree-sitter-kotlin-ng"

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

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

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

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

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

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

[dependencies.tree-sitter-sql]
version = "0.4"
optional = true
package = "tree-sitter-sequel-tsql"

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

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

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

[dev-dependencies.assert_cmd]
version = "2"

[dev-dependencies.insta]
version = "1"

[dev-dependencies.predicates]
version = "3"

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.serial_test]
version = "3"

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

[profile.release]
lto = "thin"
codegen-units = 1
panic = "abort"
strip = true
