# 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 = "codelens-mcp"
version = "1.12.1"
build = "build.rs"
exclude = [
    "src/integration_tests/**",
    "src/server/http_tests/**",
    "src/server/http_tests.rs",
    "src/cli/startup_tests.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Harness-native Rust MCP server for code intelligence with generated surface governance, hybrid retrieval, and mutation-gated workflows"
homepage = "https://github.com/mupozg823/codelens-mcp-plugin"
readme = "README.md"
keywords = [
    "mcp",
    "code-intelligence",
    "tree-sitter",
    "lsp",
    "ai",
]
categories = [
    "development-tools",
    "command-line-utilities",
]
license = "Apache-2.0"
repository = "https://github.com/mupozg823/codelens-mcp-plugin"
resolver = "2"

[features]
coreml = [
    "semantic",
    "codelens-engine/coreml",
]
default = []
http = [
    "dep:axum",
    "dep:axum-server",
    "dep:tokio",
    "dep:uuid",
    "dep:tokio-stream",
    "dep:jsonwebtoken",
    "dep:ureq",
    "dep:rustls",
]
model-bakeoff = [
    "semantic",
    "codelens-engine/model-bakeoff",
]
otel = [
    "dep:opentelemetry",
    "dep:opentelemetry_sdk",
    "dep:opentelemetry-otlp",
    "dep:tracing-opentelemetry",
    "dep:tokio",
]
scip-backend = ["codelens-engine/scip-backend"]
semantic = ["codelens-engine/semantic"]

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

[dependencies.anyhow]
version = "1.0"

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

[dependencies.axum-server]
version = "0.8"
features = ["tls-rustls"]
optional = true

[dependencies.codelens-engine]
version = "=1.12.1"
default-features = false

[dependencies.jsonwebtoken]
version = "9"
optional = true

[dependencies.opentelemetry]
version = "0.28"
features = ["trace"]
optional = true
default-features = false

[dependencies.opentelemetry-otlp]
version = "0.28"
features = [
    "trace",
    "grpc-tonic",
]
optional = true
default-features = false

[dependencies.opentelemetry_sdk]
version = "0.28"
features = [
    "trace",
    "rt-tokio",
]
optional = true
default-features = false

[dependencies.rayon]
version = "1.10"

[dependencies.rusqlite]
version = "0.32"
features = ["bundled"]

[dependencies.rustls]
version = "0.23"
features = ["aws_lc_rs"]
optional = true
default-features = false

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

[dependencies.serde_json]
version = "1.0"
features = ["preserve_order"]

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2"

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

[dependencies.tokio-stream]
version = "0.1"
optional = true

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-opentelemetry]
version = "0.29"
optional = true

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

[dependencies.ureq]
version = "2.12"
optional = true

[dependencies.url]
version = "2.5"

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

[dev-dependencies.base64]
version = "0.22"

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

[dev-dependencies.http-body-util]
version = "0.1"

[dev-dependencies.native-tls]
version = "0.2"

[dev-dependencies.rcgen]
version = "0.13"

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

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

[dev-dependencies.tower]
version = "0.5"
features = ["util"]
