# 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.8.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."
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.gz"
bin-dir = "{ name }{ binary-ext }"
pkg-fmt = "tgz"

[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"

[features]
alcove-full = [
    "fastembed",
    "rusqlite",
    "hnsw_rs",
    "pdf-extract",
    "zip",
    "quick-xml",
    "calamine",
]
alcove-server = [
    "axum",
    "tokio",
    "tower-http",
]
default = ["full"]
full = [
    "alcove-full",
    "alcove-server",
]

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

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

[dependencies.anyhow]
version = "1"

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

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

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

[dependencies.console]
version = "0.16"

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

[dependencies.dirs]
version = "6"

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

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

[dependencies.indexmap]
version = "2"

[dependencies.indicatif]
version = "0.18"

[dependencies.libc]
version = "0.2"

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

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

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

[dependencies.serde_json]
version = "1"

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

[dependencies.tantivy]
version = "0.26"

[dependencies.thiserror]
version = "2"

[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.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.release]
opt-level = 3
lto = "thin"
codegen-units = 1
strip = "symbols"

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