# 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 = "dapz"
version = "0.0.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "AI-friendly DAP compression proxy — token-efficient Debug Adapter Protocol proxy"
readme = "README.md"
keywords = [
    "dap",
    "proxy",
    "compression",
    "ai",
    "agent",
]
categories = ["development-tools"]
license = "MIT"
repository = "https://github.com/StrayDragon/dapz"

[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 = "dapz"
path = "src/lib.rs"

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

[[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.futures-util]
version = "0.3"
features = [
    "sink",
    "std",
]
optional = true
default-features = false

[dependencies.notify]
version = "7"

[dependencies.rmcp]
version = "0.16"
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.thiserror]
version = "1.0"

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

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

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

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

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

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

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