# 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 = "embacle-server"
version = "0.19.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unified OpenAI-compatible REST API + MCP server for embacle LLM runners"
readme = "README.md"
keywords = [
    "openai",
    "llm",
    "mcp",
    "ai",
    "rest",
]
categories = [
    "command-line-utilities",
    "web-programming::http-server",
]
license = "Apache-2.0"
repository = "https://github.com/dravr-ai/dravr-embacle"

[features]
default = [
    "mcp-tools",
    "web-ui",
]
mcp-tools = ["dep:rmcp"]
web-ui = ["embacle/web-ui"]

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

[[bin]]
name = "embacle-server"
path = "src/main.rs"

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

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

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

[dependencies.axum]
version = "0.8"

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.dravr-tronc]
version = "0.5.3"
features = ["notifications"]

[dependencies.embacle]
version = "0.19.4"
features = [
    "config-file",
    "copilot-headless",
    "otel",
]

[dependencies.embacle-mcp]
version = "0.19.4"

[dependencies.futures]
version = "0.3"

[dependencies.opentelemetry]
version = "0.32"

[dependencies.opentelemetry_sdk]
version = "0.32"

[dependencies.rmcp]
version = "1.7"
features = [
    "client",
    "transport-child-process",
]
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.subtle]
version = "2"

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

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

[dependencies.tracing]
version = "0.1"

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

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

[dev-dependencies.tokio]
version = "1.45"
features = [
    "full",
    "test-util",
]

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

[dev-dependencies.which]
version = "7.0"

[lints.clippy]
absolute_paths = "deny"
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
expect_used = "deny"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
panic = "deny"
redundant_pub_crate = "allow"
return_self_not_must_use = "allow"
significant_drop_tightening = "allow"
str_to_string = "deny"
unnecessary_literal_bound = "allow"
unwrap_used = "deny"

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

[lints.clippy.nursery]
level = "deny"
priority = -1

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

[lints.rust]
unsafe_code = "deny"
