# 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"
rust-version = "1.88.0"
name = "ripvec-mcp"
version = "0.10.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "MCP server for ripvec — gives AI editors semantic code search and PageRank repo maps"
readme = "README.md"
keywords = [
    "mcp",
    "semantic-search",
    "code-search",
    "embeddings",
    "language-model",
]
categories = [
    "development-tools",
    "text-processing",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/fnordpig/ripvec"
resolver = "2"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/ripvec-v{ version }-{ target }.tar.gz"
bin-dir = "ripvec-v{ version }-{ target }/{ bin }{ binary-ext }"
pkg-fmt = "tgz"

[features]
cuda = ["ripvec-core/cuda"]
default = []
metal = ["ripvec-core/metal"]
mlx = ["ripvec-core/mlx"]

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

[dependencies.anyhow]
version = "1.0"

[dependencies.notify]
version = "8.2.0"

[dependencies.ripvec-core]
version = "0.10.1"

[dependencies.rmcp]
version = "1.3"
features = [
    "server",
    "transport-io",
    "macros",
]

[dependencies.schemars]
version = "1.0"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.tokenizers]
version = "0.22.2"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tracing]
version = "0.1"

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

[target.'cfg(not(target_os = "macos"))'.dependencies.ripvec-core]
version = "0.10.1"
features = ["cpu"]

[target.'cfg(target_os = "macos")'.dependencies.ripvec-core]
version = "0.10.1"
features = [
    "metal",
    "mlx",
    "cpu-accelerate",
]

[lints.clippy]
cast_precision_loss = "allow"
doc_markdown = "allow"
many_single_char_names = "allow"
map_unwrap_or = "allow"
missing_errors_doc = "allow"
module_name_repetitions = "allow"
similar_names = "allow"
too_many_arguments = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "warn"
