# 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 = "alcove"
version = "0.11.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A quiet place for your project docs. MCP server that gives AI agents scoped access to private documentation."
homepage = "https://github.com/epicsagas/alcove"
readme = "README.md"
keywords = [
    "mcp",
    "documentation",
    "ai",
    "cli",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "Apache-2.0"
repository = "https://github.com/epicsagas/alcove"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ target }.tar.xz"
pkg-fmt = "txz"
bin-dir = "{ name }-{ target }/{ bin }"

[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"
bin-dir = "{ bin }.exe"

[features]
alcove-server = [
    "axum",
    "tokio",
    "tower-http",
    "socket2",
]
core = [
    "rusqlite",
    "alcove-server",
    "lang-rust",
]
default = ["core"]
embed-candle = [
    "candle-transformers",
    "candle-nn",
    "candle-core",
    "hf-hub",
    "tokenizers",
]
full = ["full-cross"]
full-cross = [
    "core",
    "embed-candle",
    "vector",
    "office",
    "alcove-server",
    "lang-all",
]
full-macos = [
    "core",
    "embed-candle",
    "vector",
    "pdf",
    "office",
    "alcove-server",
    "lang-all",
]
lang-all = [
    "lang-rust",
    "lang-python",
    "lang-typescript",
    "lang-javascript",
    "lang-go",
    "lang-java",
    "lang-kotlin",
    "lang-c",
    "lang-cpp",
    "lang-swift",
    "lang-ruby",
    "lang-csharp",
]
lang-c = ["dep:tree-sitter-c"]
lang-cpp = ["dep:tree-sitter-cpp"]
lang-csharp = ["dep:tree-sitter-c-sharp"]
lang-go = ["dep:tree-sitter-go"]
lang-java = ["dep:tree-sitter-java"]
lang-javascript = ["dep:tree-sitter-javascript"]
lang-kotlin = ["dep:tree-sitter-kotlin-ng"]
lang-python = ["dep:tree-sitter-python"]
lang-ruby = ["dep:tree-sitter-ruby"]
lang-rust = ["dep:tree-sitter-rust"]
lang-swift = ["dep:tree-sitter-swift"]
lang-typescript = ["dep:tree-sitter-typescript"]
office = [
    "zip",
    "quick-xml",
    "calamine",
]
pdf = ["pdf-extract"]
transpile = ["dep:llm-transpile"]
vector = ["hnsw_rs"]

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

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

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

[dependencies.anyhow]
version = "1"

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

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

[dependencies.candle-core]
version = "0.10"
optional = true

[dependencies.candle-nn]
version = "0.10"
optional = true

[dependencies.candle-transformers]
version = "0.10"
optional = true

[dependencies.chrono]
version = "0.4"
features = ["clock"]

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

[dependencies.console]
version = "0.16"

[dependencies.dialoguer]
version = "0.12"
features = ["fuzzy-select"]

[dependencies.dirs]
version = "6"

[dependencies.hf-hub]
version = "0.4"
features = ["ureq"]
optional = true
default-features = false

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

[dependencies.indexmap]
version = "2"

[dependencies.indicatif]
version = "0.18"

[dependencies.libc]
version = "0.2"

[dependencies.llm-transpile]
version = "0.2.4"
optional = true

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

[dependencies.quick-xml]
version = "0.39"
optional = true

[dependencies.rand]
version = "0.10"

[dependencies.rayon]
version = "1"

[dependencies.regex]
version = "1"

[dependencies.rusqlite]
version = "0.39"
features = ["bundled"]
optional = true

[dependencies.rust-i18n]
version = "4"

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

[dependencies.serde_json]
version = "1"

[dependencies.socket2]
version = "0.5"
optional = true

[dependencies.sys-locale]
version = "0.3.2"

[dependencies.tantivy]
version = "0.26"

[dependencies.thiserror]
version = "2"

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

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
]
optional = true

[dependencies.toml]
version = "1"

[dependencies.tower-http]
version = "0.6"
features = ["cors"]
optional = true

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

[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.25"
optional = true

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

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

[dependencies.tree-sitter-kotlin-ng]
version = "1.1"
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-swift]
version = "0.7"
optional = true

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

[dependencies.ureq]
version = "3"

[dependencies.walkdir]
version = "2"

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

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

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

[profile.dev]
opt-level = 0
debug = 1

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

[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
panic = "abort"
strip = "symbols"

[profile.release.package."*"]
opt-level = 3
codegen-units = 4
