# 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 = "lspz"
version = "0.10.9"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "AI-friendly LSP compression proxy"
readme = "README.md"
keywords = [
    "lsp",
    "proxy",
    "compression",
    "ai",
    "agent",
]
categories = ["development-tools"]
license = "MIT"
repository = "https://github.com/straydragon/lspz"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
agent-sdk = ["mcp"]
cli = [
    "dep:clap",
    "dep:tracing-subscriber",
]
default = ["cli"]
mcp = [
    "dep:rmcp",
    "dep:anyhow",
]
transport-tcp = []
transport-websocket = [
    "dep:tokio-tungstenite",
    "dep:futures-util",
]

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

[[bin]]
name = "lspz"
path = "src/main.rs"
required-features = ["cli"]

[[example]]
name = "bench-report"
path = "examples/bench-report.rs"

[[example]]
name = "compress-demo"
path = "examples/compress-demo.rs"

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

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

[[bench]]
name = "compression"
path = "benches/compression.rs"
harness = false

[dependencies.anyhow]
version = "1.0"
optional = true

[dependencies.async-trait]
version = "0.1"

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]
optional = true

[dependencies.dirs]
version = "6"

[dependencies.futures-util]
version = "0.3"
features = [
    "sink",
    "std",
]
optional = true
default-features = false

[dependencies.notify]
version = "8"

[dependencies.rmcp]
version = "1"
features = [
    "server",
    "transport-io",
]
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.shell-words]
version = "1.1"

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2"

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

[dependencies.tokio-tungstenite]
version = "0.26"
features = ["connect"]
optional = true
default-features = false

[dependencies.toml]
version = "1"

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]

[dev-dependencies.tiktoken-rs]
version = "0.11"
