# 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 = "aether-mcp-utils"
version = "0.5.21"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "MCP client and server utilities for the Aether AI agent framework"
readme = "README.md"
keywords = [
    "mcp",
    "aether",
    "agent",
    "tools",
]
categories = [
    "api-bindings",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/contextbridge/aether"

[package.metadata.dist]
dist = false

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

[features]
client = [
    "dep:aether-auth",
    "aether-auth/mcp",
    "dep:llm",
    "dep:reqwest",
    "dep:thiserror",
    "rmcp/transport-streamable-http-client-reqwest",
    "rmcp/transport-child-process",
]
default = ["client"]

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

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

[dependencies.aether-auth]
version = "0.1.6"
optional = true

[dependencies.futures]
version = "^0.3.32"

[dependencies.llm]
version = "0.7.16"
optional = true
package = "aether-llm"

[dependencies.regex]
version = "^1.12.4"

[dependencies.reqwest]
version = "^0.13.4"
features = [
    "json",
    "query",
    "rustls",
    "http2",
    "stream",
]
optional = true
default-features = false

[dependencies.rmcp]
version = "^1.7.0"
features = [
    "client",
    "server",
    "macros",
    "schemars",
    "auth",
    "elicitation",
    "transport-io",
]

[dependencies.schemars]
version = "^1.2.1"
features = ["derive"]

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

[dependencies.serde_json]
version = "1.0.150"

[dependencies.thiserror]
version = "2.0"
optional = true

[dependencies.tokio]
version = "^1.52.3"
features = ["full"]

[dependencies.tracing]
version = "0.1.44"

[dependencies.utils]
version = "0.2.8"
package = "aether-utils"

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

[dev-dependencies.tracing-subscriber]
version = "0.3.23"
features = [
    "env-filter",
    "json",
]

[lints.clippy]
absolute_paths = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
must_use_candidate = "allow"
pub_underscore_fields = "allow"
return_self_not_must_use = "allow"

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

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