# 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"
name = "heliosdb-codekb-mcp"
version = "0.2.6"
build = false
exclude = [
    "bench/__pycache__/**",
    "docs/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Local MCP server for code+docs knowledge bases, embedding HeliosDB-Nano as a library."
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/HeliosDatabase/HeliosDB-CodeKB-MCP"

[features]
default = ["native-binary-docs"]
docling = []
native-binary-docs = [
    "dep:pdf-extract",
    "dep:docx-rs",
    "dep:calamine",
]
wrappers-semantic = []

[[bin]]
name = "heliosdb-codekb-mcp"
path = "src/main.rs"

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.axum]
version = "0.7"

[dependencies.calamine]
version = "0.24"
optional = true

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

[dependencies.directories]
version = "5"

[dependencies.docx-rs]
version = "0.4"
optional = true

[dependencies.globset]
version = "0.4"

[dependencies.heliosdb-nano]
version = ">=3.22.2, <4"
features = [
    "code-graph",
    "graph-rag",
    "mcp-endpoint",
    "code-embed",
]

[dependencies.ignore]
version = "0.4"

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

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

[dependencies.serde_json]
version = "1"

[dependencies.tempfile]
version = "3"

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "io-std",
    "sync",
    "net",
    "signal",
]

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

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

[dependencies.ureq]
version = "2"
features = ["json"]
default-features = false

[dev-dependencies]

[target.'cfg(target_os = "linux")'.dependencies.openssl-sys]
version = "0.9"
features = ["vendored"]

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

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