# 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"
rust-version = "1.90"
name = "tower-mcp"
version = "0.8.5"
authors = ["Josh Rotenberg <joshrotenberg@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tower-native Model Context Protocol (MCP) implementation"
homepage = "https://github.com/joshrotenberg/tower-mcp"
documentation = "https://docs.rs/tower-mcp"
readme = "README.md"
keywords = [
    "mcp",
    "tower",
    "json-rpc",
    "ai",
    "llm",
]
categories = [
    "network-programming",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/joshrotenberg/tower-mcp"

[features]
childproc = []
default = []
dynamic-tools = []
full = [
    "http",
    "websocket",
    "childproc",
    "oauth",
    "jwks",
    "testing",
    "dynamic-tools",
    "http-client",
    "oauth-client",
    "proxy",
    "macros",
]
http = [
    "dep:axum",
    "dep:hyper",
    "dep:http",
    "dep:http-body-util",
    "dep:tokio-stream",
    "dep:uuid",
]
http-client = ["dep:reqwest"]
jwks = [
    "oauth",
    "dep:reqwest",
]
macros = ["dep:tower-mcp-macros"]
oauth = [
    "dep:jsonwebtoken",
    "http",
]
oauth-client = ["http-client"]
proxy = []
testing = []
websocket = [
    "dep:axum",
    "dep:uuid",
]

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

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

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

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

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

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

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

[dependencies.axum]
version = "0.8"
features = [
    "json",
    "ws",
]
optional = true

[dependencies.base64]
version = "0.22.1"

[dependencies.futures]
version = "0.3"

[dependencies.http]
version = "1"
optional = true

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

[dependencies.hyper]
version = "1"
optional = true

[dependencies.jsonwebtoken]
version = "10"
features = [
    "aws_lc_rs",
    "use_pem",
]
optional = true
default-features = false

[dependencies.pin-project-lite]
version = "0.2"

[dependencies.regex]
version = "1"

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

[dependencies.schemars]
version = "1.2"

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

[dependencies.serde_json]
version = "1.0"

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

[dependencies.tokio-stream]
version = "0.1"
features = ["sync"]
optional = true

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

[dependencies.tower-mcp-macros]
version = "0.8"
optional = true

[dependencies.tower-mcp-types]
version = "0.8"

[dependencies.tower-service]
version = "0.3"

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1"
features = ["v4"]
optional = true

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

[dev-dependencies.jsonschema]
version = "0.45"

[dev-dependencies.reqwest]
version = "0.13"
features = [
    "rustls",
    "json",
    "stream",
]
default-features = false

[dev-dependencies.tokio-test]
version = "0.4"

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

[dev-dependencies.tower-resilience]
version = "0.9"
features = [
    "bulkhead",
    "ratelimiter",
    "coalesce",
    "coalesce",
]
default-features = false

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