# 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 = "rmcp-actix-web"
version = "0.8.16"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "actix-web transport implementations for RMCP (Rust Model Context Protocol)"
homepage = "https://gitlab.com/lx-industries/rmcp-actix-web"
readme = "README.md"
keywords = [
    "mcp",
    "actix",
    "actix-web",
    "protocol",
    "llm",
]
categories = [
    "network-programming",
    "web-programming",
]
license = "MIT"
repository = "https://gitlab.com/lx-industries/rmcp-actix-web"

[features]
authorization-token-passthrough = []
default = ["transport-streamable-http"]
transport-sse = ["rmcp/transport-sse-server"]
transport-streamable-http = ["rmcp/transport-streamable-http-server"]

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.actix-rt]
version = "2"

[dependencies.actix-web]
version = "4"

[dependencies.async-stream]
version = "0.3"

[dependencies.bon]
version = "3.7.1"

[dependencies.bytes]
version = "1"

[dependencies.futures]
version = "0.3"

[dependencies.http]
version = "1"

[dependencies.rmcp]
version = "0.9.0"
features = [
    "base64",
    "server",
]

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

[dependencies.serde_json]
version = "1.0"
features = ["preserve_order"]

[dependencies.sse-stream]
version = "0.2"

[dependencies.tokio]
version = "1"
features = [
    "sync",
    "macros",
    "rt",
    "time",
    "process",
]

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

[dependencies.tokio-util]
version = "0.7"

[dependencies.tracing]
version = "0.1"

[dev-dependencies.anyhow]
version = "1"

[dev-dependencies.chrono]
version = "0.4"

[dev-dependencies.insta]
version = "1.41"
features = ["json"]

[dev-dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "stream",
]

[dev-dependencies.rmcp]
version = "0.9.0"
features = [
    "base64",
    "macros",
    "server",
    "transport-sse-server",
    "transport-streamable-http-server",
]
default-features = false

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