# 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 = "2021"
name = "leash-harness"
version = "0.1.1"
build = false
include = [
    "Cargo.toml",
    "Cargo.lock",
    "LICENSE",
    "README.md",
    "docs/**",
    "examples/**",
    "scripts/**",
    "src/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Composable local-LLM and robotics harness with MCP, CLI, and safe robot adapters"
homepage = "https://github.com/specdog/leash"
documentation = "https://docs.rs/leash-harness"
readme = "README.md"
keywords = [
    "mcp",
    "robotics",
    "local-llm",
    "harness",
    "telemetry",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/specdog/leash"

[features]
bridge-compat = ["http"]
cuda = []
default = [
    "sim",
    "http",
    "mcp",
]
http = [
    "dep:axum",
    "dep:futures-util",
    "dep:tower-http",
]
mcp = [
    "dep:rmcp",
    "dep:schemars",
]
sim = []
waveshare-ugv = ["dep:serialport"]

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

[[bin]]
name = "leash"
path = "src/bin/leash.rs"

[dependencies.anyhow]
version = "1.0"

[dependencies.axum]
version = "0.7"
features = ["ws"]
optional = true

[dependencies.clap]
version = "4.5"
features = [
    "derive",
    "env",
]

[dependencies.futures-util]
version = "0.3"
optional = true

[dependencies.parking_lot]
version = "0.12"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
default-features = false

[dependencies.rmcp]
version = "1.7"
features = [
    "server",
    "macros",
    "transport-io",
]
optional = true
default-features = false

[dependencies.schemars]
version = "1.0"
features = ["derive"]
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serialport]
version = "4.6"
optional = true

[dependencies.sha2]
version = "0.10"

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

[dependencies.tower-http]
version = "0.6"
features = ["cors"]
optional = true

[dependencies.tracing]
version = "0.1"

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

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