# 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"
version = "0.17.0"
build = false
exclude = [
    ".claude/",
    ".githooks/",
    ".github/",
    "scripts/",
    "AGENTS.md",
    "crates/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "LLM runner library — wraps 12 AI CLI tools as pluggable LLM providers with agent loop, guardrails, and cost tracking"
homepage = "https://github.com/dravr-ai/dravr-embacle"
documentation = "https://docs.rs/embacle"
readme = "README.md"
keywords = [
    "llm",
    "cli",
    "ai",
    "mcp",
    "openai",
]
categories = [
    "command-line-utilities",
    "api-bindings",
]
license = "Apache-2.0"
repository = "https://github.com/dravr-ai/dravr-embacle"

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

[features]
agui = []
config-file = [
    "dep:toml",
    "dep:dirs",
]
copilot-headless = [
    "dep:agent-client-protocol-schema",
    "tokio/sync",
]
default = []
ffi = ["copilot-headless"]
openai-api = [
    "dep:reqwest",
    "tokio/sync",
]
otel = [
    "dep:opentelemetry",
    "dep:opentelemetry_sdk",
]
web-ui = [
    "dep:dravr-browser",
    "dep:toml",
    "tokio/sync",
]

[lib]
name = "embacle"
crate-type = [
    "lib",
    "staticlib",
]
path = "src/lib.rs"

[[example]]
name = "test_claude_e2e"
path = "examples/test_claude_e2e.rs"

[[example]]
name = "web_login"
path = "examples/web_login.rs"
required-features = ["web-ui"]

[[example]]
name = "web_query"
path = "examples/web_query.rs"
required-features = ["web-ui"]

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

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

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

[dependencies.agent-client-protocol-schema]
version = "0.12"
optional = true

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

[dependencies.base64]
version = "0.22"

[dependencies.bitflags]
version = "2"
features = ["serde"]

[dependencies.dirs]
version = "6"
optional = true

[dependencies.dravr-browser]
version = "0.1"
optional = true

[dependencies.opentelemetry]
version = "0.32"
optional = true

[dependencies.opentelemetry_sdk]
version = "0.32"
optional = true

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

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

[dependencies.serde_json]
version = "1.0"

[dependencies.tempfile]
version = "3"

[dependencies.tokio]
version = "1.45"
features = [
    "process",
    "io-util",
    "time",
    "rt",
    "rt-multi-thread",
    "macros",
    "fs",
]

[dependencies.tokio-stream]
version = "0.1"
features = ["io-util"]

[dependencies.toml]
version = "1.1"
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1.22"
features = [
    "v4",
    "serde",
]

[dependencies.which]
version = "7"

[dev-dependencies.serde_json]
version = "1.0"

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

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

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

[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"

[profile.release]
lto = "thin"
codegen-units = 1
panic = "abort"
strip = true
